controls/EditorPanel.py
changeset 738 1ccd08cfae0c
parent 733 c4424d8eebb0
child 761 996515c4b394
equal deleted inserted replaced
737:85a4bc7dc31e 738:1ccd08cfae0c
   128     def Redo(self):
   128     def Redo(self):
   129         if self.Controler is not None:
   129         if self.Controler is not None:
   130             self.Controler.LoadNext()
   130             self.Controler.LoadNext()
   131             self.RefreshView()
   131             self.RefreshView()
   132     
   132     
       
   133     def Find(self, direction, search_params):
       
   134         pass
       
   135         
   133     def HasNoModel(self):
   136     def HasNoModel(self):
   134         return False
   137         return False
   135     
   138     
   136     def RefreshView(self, variablepanel=True):
   139     def RefreshView(self, variablepanel=True):
   137         if variablepanel:
   140         if variablepanel:
   155 
   158 
   156     def AddHighlight(self, infos, start, end, highlight_type):
   159     def AddHighlight(self, infos, start, end, highlight_type):
   157         if self.VariableEditor is not None and infos[0] in ["var_local", "var_input", "var_output", "var_inout"]:
   160         if self.VariableEditor is not None and infos[0] in ["var_local", "var_input", "var_output", "var_inout"]:
   158             self.VariableEditor.AddVariableHighlight(infos[1:], highlight_type)
   161             self.VariableEditor.AddVariableHighlight(infos[1:], highlight_type)
   159 
   162 
       
   163     def RemoveHighlight(self, infos, start, end, highlight_type):
       
   164         if self.VariableEditor is not None and infos[0] in ["var_local", "var_input", "var_output", "var_inout"]:
       
   165             self.VariableEditor.RemoveVariableHighlight(infos[1:], highlight_type)
       
   166         
   160     def ClearHighlights(self, highlight_type=None):
   167     def ClearHighlights(self, highlight_type=None):
   161         if self.VariableEditor is not None:
   168         if self.VariableEditor is not None:
   162             self.VariableEditor.ClearHighlights(highlight_type)
   169             self.VariableEditor.ClearHighlights(highlight_type)