def ShowHighlight(self, infos, start, end, highlight_type): config_name = self.Controler.GetProjectMainConfigurationName() if config_name is not None and infos[0] == ComputeConfigurationName(config_name): self.CTR._OpenView() selected = self.ActiveChild if selected and isinstance(selected.Children[0], Viewer): viewer = selected viewer.AddHighlight(infos[1:], start, end, highlight_type) else: IDEFrame.ShowHighlight(self, infos, start, end, highlight_type)
def ShowHighlight(self, infos, start, end, highlight_type): config_name = self.Controler.GetProjectMainConfigurationName() if config_name is not None and infos[0] == ComputeConfigurationName( config_name): self.CTR._OpenView() selected = self.TabsOpened.GetSelection() if selected != -1: viewer = self.TabsOpened.GetPage(selected) viewer.AddHighlight(infos[1:], start, end, highlight_type) else: IDEFrame.ShowHighlight(self, infos, start, end, highlight_type)
def __init__(self, parent, controler, window): configuration = controler.GetProjectMainConfigurationName() if configuration is not None: tagname = ComputeConfigurationName(configuration) else: tagname = "" ConfTreeNodeEditor.__init__(self, parent, controler, window, tagname) buttons_sizer = self.GenerateMethodButtonSizer() self.MainSizer.InsertSizer(0, buttons_sizer, 0, border=5, flag=wx.ALL) self.MainSizer.Layout() self.VariableEditor = self.VariableEditorPanel
def SetPouType(self, tagname, pou_instance=None): if self.Controller is not None: if tagname == "Project": config_name = self.Controller.GetProjectMainConfigurationName() if config_name is not None: tagname = ComputeConfigurationName(config_name) if pou_instance is not None: self.PouInstance = pou_instance if self.PouTagName != tagname: self.PouTagName = tagname self.RefreshView() else: self.RefreshInstanceChoice() else: self.RefreshView()