ConfTreeNodeEditor.py
changeset 744 bdab45f96aa0
parent 742 41a4a560406c
parent 743 4645a3a398ad
child 746 2e09777a40d3
equal deleted inserted replaced
742:41a4a560406c 744:bdab45f96aa0
   235                                    self.ConfNodeEditor, 
   235                                    self.ConfNodeEditor, 
   236                                    min(min_size.height, 200))
   236                                    min(min_size.height, 200))
   237         else:
   237         else:
   238             self.Editor.Initialize(self.ParamsEditor)
   238             self.Editor.Initialize(self.ParamsEditor)
   239     
   239     
   240     def __init__(self, parent, tagname, controler, window):
   240     def __init__(self, parent, controler, window, tagname=""):
   241         EditorPanel.__init__(self, parent, tagname, window, controler)
   241         EditorPanel.__init__(self, parent, tagname, window, controler)
   242     
   242         
   243         self.SetIcon(wx.Bitmap(self.Controler.GetIconPath(), wx.BITMAP_TYPE_PNG))
   243         icon_path = self.Controler.GetIconPath()
       
   244         if icon_path is None:
       
   245             icon_path = opjimg("Extension")
       
   246         self.SetIcon(wx.Bitmap(icon_path, wx.BITMAP_TYPE_PNG))
   244     
   247     
   245     def __del__(self):
   248     def __del__(self):
   246         self.Controler.OnCloseEditor(self)
   249         self.Controler.OnCloseEditor(self)
   247     
   250     
   248     def GetTagName(self):
   251     def GetTagName(self):
   254             return "~%s~" % fullname
   257             return "~%s~" % fullname
   255         return fullname
   258         return fullname
   256     
   259     
   257     def HasNoModel(self):
   260     def HasNoModel(self):
   258         return False
   261         return False
       
   262     
       
   263     def GetBufferState(self):
       
   264         return False, False
       
   265     
       
   266     def Undo(self):
       
   267         pass
       
   268     
       
   269     def Redo(self):
       
   270         pass
   259     
   271     
   260     def EnableScrolling(self, enable):
   272     def EnableScrolling(self, enable):
   261         self.ScrollingEnabled = enable
   273         self.ScrollingEnabled = enable
   262     
   274     
   263     def RefreshIECChannelControlsState(self):
   275     def RefreshIECChannelControlsState(self):