merge
authorb.taylor@willowglen.ca
Wed, 02 Sep 2009 08:39:18 -0600
changeset 416 897ba122460e
parent 414 8d9e7edc0195 (current diff)
parent 415 d3d8f8f0b678 (diff)
child 417 218142afdb53
merge
GraphicViewer.py
PLCOpenEditor.py
Viewer.py
--- a/GraphicViewer.py	Wed Sep 02 08:30:34 2009 -0600
+++ b/GraphicViewer.py	Wed Sep 02 08:39:18 2009 -0600
@@ -144,12 +144,11 @@
         
         self._init_sizers()
 
-    def __init__(self, parent, window, controler, instancepath = ""):
+    def __init__(self, parent, window, producer, instancepath = ""):
         self._init_ctrls(parent)
-        DebugViewer.__init__(self, controler, True, False)
+        DebugViewer.__init__(self, producer, True, False)
         
         self.ParentWindow = window
-        self.Controler = controler
         self.InstancePath = instancepath
 
         self.Datas = []
--- a/PLCOpenEditor.py	Wed Sep 02 08:30:34 2009 -0600
+++ b/PLCOpenEditor.py	Wed Sep 02 08:39:18 2009 -0600
@@ -572,7 +572,7 @@
                         self.OnPageDragged)
                 self.AUIManager.AddPane(self.TabsOpened, wx.aui.AuiPaneInfo().CentrePane())
                 
-                self.DebugVariablePanel = DebugVariablePanel(self, self.Controler)
+                self.DebugVariablePanel = DebugVariablePanel(self, self.Controler.DataProducer)
                 self.AUIManager.AddPane(self.DebugVariablePanel, wx.aui.AuiPaneInfo().Caption(_("Variables")).Right().Layer(0).BestSize(wx.Size(250, 600)).CloseButton(False))
             else:
                 self.SecondSplitter = wx.SplitterWindow(id=ID_PLCOPENEDITORSECONDSPLITTER,
@@ -592,7 +592,7 @@
                     wx.EVT_NOTEBOOK_PAGE_CHANGED(self.TabsOpened, ID_PLCOPENEDITORTABSOPENED,
                         self.OnPouSelectedChanged)
                 
-                self.DebugVariablePanel = DebugVariablePanel(self.SecondSplitter, self.Controler)
+                self.DebugVariablePanel = DebugVariablePanel(self.SecondSplitter, self.Controler.DataProducer)
                 
                 self.SecondSplitter.SplitVertically(self.TabsOpened, self.DebugVariablePanel, -250)
         else:
@@ -2008,7 +2008,7 @@
         event.Skip()
 
     def OpenGraphicViewer(self, var_path):
-        new_window = GraphicViewer(self.TabsOpened, self, self.Controler, var_path)
+        new_window = GraphicViewer(self.TabsOpened, self, self.Controler.DataProducer, var_path)
         self.AddPage(new_window, "")
         new_window.SetFocus()
         self.RefreshPageTitles()
@@ -4874,10 +4874,9 @@
         
         self._init_sizers()
     
-    def __init__(self, parent, controler):
+    def __init__(self, parent, producer):
         self._init_ctrls(parent)
-        DebugViewer.__init__(self, controler, True)
-        self.Controler = controler
+        DebugViewer.__init__(self, producer, True)
         self.HasNewData = False
         
         self.Table = DebugVariableTable(self, [], GetDebugVariablesTableColnames())
--- a/Viewer.py	Wed Sep 02 08:30:34 2009 -0600
+++ b/Viewer.py	Wed Sep 02 08:39:18 2009 -0600
@@ -452,7 +452,7 @@
     def __init__(self, parent, tagname, window, controler, debug = False, instancepath = ""):
         wx.ScrolledWindow.__init__(self, parent, pos=wx.Point(0, 0), size=wx.Size(0, 0), 
             style=wx.HSCROLL | wx.VSCROLL | wx.ALWAYS_SHOW_SB)
-        DebugViewer.__init__(self, controler, debug)
+        DebugViewer.__init__(self, controler.DataProducer, debug)
         self._init_menus()
         # Adding a rubberband to Viewer
         self.rubberBand = RubberBand(drawingSurface=self)