Fixed bug when export all items values to clipboard in DebugVariablePanel
authorLaurent Bessard
Fri, 31 May 2013 10:38:46 +0200
changeset 1202 3d8c87ab2b5d
parent 1201 3907f10efcf4
child 1203 4399ddd024e5
Fixed bug when export all items values to clipboard in DebugVariablePanel
IDEFrame.py
controls/DebugVariablePanel/DebugVariableGraphicPanel.py
controls/DebugVariablePanel/DebugVariableTablePanel.py
controls/DebugVariablePanel/DebugVariableViewer.py
--- a/IDEFrame.py	Fri May 31 09:07:23 2013 +0200
+++ b/IDEFrame.py	Fri May 31 10:38:46 2013 +0200
@@ -2027,7 +2027,7 @@
                         editor.SubscribeAllDataConsumers()
                 elif editor.IsDebugging():
                     editor.SubscribeAllDataConsumers()
-            self.DebugVariablePanel.UnregisterObsoleteData()
+            self.DebugVariablePanel.UnsubscribeObsoleteData()
     
     def AddDebugVariable(self, iec_path, force=False):
         if self.EnableDebug:
--- a/controls/DebugVariablePanel/DebugVariableGraphicPanel.py	Fri May 31 09:07:23 2013 +0200
+++ b/controls/DebugVariablePanel/DebugVariableGraphicPanel.py	Fri May 31 10:38:46 2013 +0200
@@ -460,7 +460,7 @@
             self.TickTimeLabel.SetLabel("")
         self.TickSizer.Layout()
     
-    def UnregisterObsoleteData(self):
+    def UnsubscribeObsoleteData(self):
         self.SubscribeAllDataConsumers()
         
         if self.DataProducer is not None:
--- a/controls/DebugVariablePanel/DebugVariableTablePanel.py	Fri May 31 09:07:23 2013 +0200
+++ b/controls/DebugVariablePanel/DebugVariableTablePanel.py	Fri May 31 10:38:46 2013 +0200
@@ -244,7 +244,7 @@
         
         self.Thaw()
         
-    def UnregisterObsoleteData(self):
+    def UnsubscribeObsoleteData(self):
         self.SubscribeAllDataConsumers()
         
         items = [(idx, item) for idx, item in enumerate(self.Table.GetData())]
--- a/controls/DebugVariablePanel/DebugVariableViewer.py	Fri May 31 09:07:23 2013 +0200
+++ b/controls/DebugVariablePanel/DebugVariableViewer.py	Fri May 31 10:38:46 2013 +0200
@@ -101,7 +101,7 @@
         Return items displayed by Viewer
         @return: List of items displayed in Viewer
         """
-        return self.Items
+        return self.ItemsDict.values()
     
     def AddItem(self, item):
         """