equal
deleted
inserted
replaced
415 self.DefaultValue = { |
415 self.DefaultValue = { |
416 "Name" : "", |
416 "Name" : "", |
417 "Class" : "", |
417 "Class" : "", |
418 "Type" : "INT", |
418 "Type" : "INT", |
419 "Location" : "", |
419 "Location" : "", |
420 "Initial Value" : "", |
420 "Initial Value" : "", |
421 "Option" : "", |
421 "Option" : "", |
422 "Documentation" : "", |
422 "Documentation" : "", |
423 "Edit" : True |
423 "Edit" : True |
424 } |
424 } |
425 |
425 |
426 if element_type in ["config", "resource"]: |
426 if element_type in ["config", "resource"]: |
427 self.DefaultTypes = {"All" : "Global"} |
427 self.DefaultTypes = {"All" : "Global"} |
428 else: |
428 else: |
700 |
700 |
701 type_menu.AppendMenu(wx.NewId(), _("Base Types"), base_menu) |
701 type_menu.AppendMenu(wx.NewId(), _("Base Types"), base_menu) |
702 |
702 |
703 # build a submenu containing user-defined types |
703 # build a submenu containing user-defined types |
704 datatype_menu = wx.Menu(title='') |
704 datatype_menu = wx.Menu(title='') |
705 datatypes = self.Controler.GetDataTypes(basetypes = False) |
705 datatypes = self.Controler.GetDataTypes(basetypes = False, confnodetypes = False) |
706 for datatype in datatypes: |
706 for datatype in datatypes: |
707 new_id = wx.NewId() |
707 new_id = wx.NewId() |
708 AppendMenu(datatype_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=datatype) |
708 AppendMenu(datatype_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=datatype) |
709 self.Bind(wx.EVT_MENU, self.GetVariableTypeFunction(datatype), id=new_id) |
709 self.Bind(wx.EVT_MENU, self.GetVariableTypeFunction(datatype), id=new_id) |
710 |
710 |