Fixing bug in RessourceEditor with highlighting
authorlaurent
Tue, 11 Oct 2011 12:07:04 +0200
changeset 573 0a6b2e1f8ce3
parent 572 1af3cc2b207c
child 574 8c525217ef1f
Fixing bug in RessourceEditor with highlighting
RessourceEditor.py
--- a/RessourceEditor.py	Mon Oct 10 10:14:24 2011 +0200
+++ b/RessourceEditor.py	Tue Oct 11 12:07:04 2011 +0200
@@ -71,7 +71,7 @@
     def RefreshScaling(self, refresh=True):
         pass
 
-    def ClearErrors(self):
+    def ClearHighlights(self):
         pass
 
 #-------------------------------------------------------------------------------
@@ -691,26 +691,13 @@
         event.Skip()
 
 #-------------------------------------------------------------------------------
-#                      Search result showing functions
-#-------------------------------------------------------------------------------
-
-    def AddShownSearchResult(self, infos, start, end):
-        if infos[0] == "task":
-            self.TasksTable.AddSearchResult(infos[1:])
-        elif infos[0] == "instance":
-            self.InstancesTable.AddSearchResult(infos[1:])
-
-    def ClearSearchResults(self):
-        self.TasksTable.ClearSearchResults()
-        self.InstancesTable.ClearSearchResults()
-        self.TasksTable.ResetView(self.TasksGrid)
-        self.InstancesTable.ResetView(self.InstancesGrid)
-
-
-#-------------------------------------------------------------------------------
 #                        Highlights showing functions
 #-------------------------------------------------------------------------------
-
+    
+    def OnRefreshHighlightsTimer(self, event):
+        self.RefreshView()
+        event.Skip()
+    
     def AddHighlight(self, infos, start, end, highlight_type):
         if infos[0] == "task":
             self.TasksTable.AddHighlight(infos[1:], highlight_type)