diff -r 1cf72cb51dc9 -r d803ba077da0 Viewer.py --- a/Viewer.py Wed Mar 18 16:09:52 2009 +0100 +++ b/Viewer.py Wed Mar 18 16:42:12 2009 +0100 @@ -1731,6 +1731,8 @@ def AddNewConnection(self, bbox): dialog = ConnectionPropertiesDialog(self.ParentWindow, self.Controler) dialog.SetPreviewFont(self.GetFont()) + dialog.SetPouNames(self.Controler.GetProjectPouNames(self.Debug)) + dialog.SetPouElementNames(self.Controler.GetEditedElementVariables(self.TagName, self.Debug)) dialog.SetMinConnectionSize((bbox.width, bbox.height)) if dialog.ShowModal() == wx.ID_OK: id = self.GetNewId() @@ -2051,6 +2053,8 @@ def EditConnectionContent(self, connection): dialog = ConnectionPropertiesDialog(self.ParentWindow, self.Controler) dialog.SetPreviewFont(self.GetFont()) + dialog.SetPouNames(self.Controler.GetProjectPouNames(self.Debug)) + dialog.SetPouElementNames(self.Controler.GetEditedElementVariables(self.TagName, self.Debug)) dialog.SetMinConnectionSize(connection.GetSize()) values = {"name" : connection.GetName(), "type" : connection.GetType()} dialog.SetValues(values)