controler (PLCControler) and debug data producer (PluginsRoot) are no longer the same thing
--- a/GraphicViewer.py Mon Jul 06 11:24:37 2009 -0600
+++ b/GraphicViewer.py Mon Aug 10 11:29:53 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 Mon Jul 06 11:24:37 2009 -0600
+++ b/PLCOpenEditor.py Mon Aug 10 11:29:53 2009 -0600
@@ -454,7 +454,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,
@@ -474,7 +474,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:
@@ -1992,7 +1992,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()
@@ -4780,10 +4780,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, [], ["Variable", "Value"])
--- a/Viewer.py Mon Jul 06 11:24:37 2009 -0600
+++ b/Viewer.py Mon Aug 10 11:29:53 2009 -0600
@@ -344,7 +344,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)