Changeset 4433

Show
Ignore:
Timestamp:
08/21/08 14:03:58 (3 months ago)
Author:
paul
Message:

Changed the name of dCheckListBox to dCheckList, which is consistent with
dRadioList. Deprecated the old name, and fixed all references.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/__init__.py

    r4386 r4433  
    7575from dCalendar import dExtendedCalendar 
    7676from dCheckBox import dCheckBox 
    77 from dCheckListBox import dCheckListBox 
     77from dCheckList import dCheckList 
    7878from dColorDialog import dColorDialog 
    7979from dComboBox import dComboBox 
     
    162162        warnings.warn(_("'dFoldPanelBar' is a deprecated name. Use 'dSlidePanelControl' instead"), DeprecationWarning) 
    163163        super(dFoldPanelBar, self).__init__(*args, **kwargs) 
     164 
    164165class dFoldPanel(dSlidePanel): 
    165166    def __init__(self, *args, **kwargs): 
     
    167168        super(dFoldPanel, self).__init__(*args, **kwargs) 
    168169 
     170class dCheckListBox(dCheckList): 
     171    def __init__(self, *args, **kwargs): 
     172        warnings.warn(_("'dCheckListBox' is a deprecated name. Use 'dCheckList' instead"), DeprecationWarning) 
     173        super(dCheckListBox, self).__init__(*args, **kwargs) 
    169174 
    170175artConstants = {} 
  • trunk/dabo/ui/uiwx/dCheckList.py

    r3303 r4433  
    99 
    1010 
    11 class dCheckListBox(dcm.dControlItemMixin, wx.CheckListBox): 
     11class dCheckList(dcm.dControlItemMixin, wx.CheckListBox): 
    1212    """Creates a listbox, allowing the user to choose one or more items 
    1313    by checking/unchecking each one. 
    1414    """ 
    1515    def __init__(self, parent, properties=None, attProperties=None, *args, **kwargs): 
    16         self._baseClass = dCheckListBox 
     16        self._baseClass = dCheckList 
    1717        self._choices = [] 
    1818        preClass = wx.PreCheckListBox 
     
    2222             
    2323    def _initEvents(self): 
    24         super(dCheckListBox, self)._initEvents() 
     24        super(dCheckList, self)._initEvents() 
    2525        self.Bind(wx.EVT_CHECKLISTBOX, self._onWxHit) 
    2626     
     
    7171 
    7272    MultipleSelect = property(_getMultipleSelect, None, None, 
    73             _("MultipleSelect for dCheckListBox is always True.")) 
     73            _("MultipleSelect for dCheckList is always True.")) 
    7474     
    7575     
    7676     
    77 class _dCheckListBox_test(dCheckListBox): 
     77class _dCheckList_test(dCheckList): 
    7878    def initProperties(self): 
    7979        # Simulate a database: 
     
    110110if __name__ == "__main__": 
    111111    import test 
    112     test.Test().runTest(_dCheckListBox_test) 
     112    test.Test().runTest(_dCheckList_test) 
    113113 
  • trunk/ide/ClassDesignerPropSheet.py

    r4425 r4433  
    569569                self.Sizer.append(lbl, halign="center") 
    570570                choices = ["All", "Top", "Bottom", "Left", "Right", "None"] 
    571                 self.editor = dabo.ui.dCheckListBox(self, Choices=choices, 
     571                self.editor = dabo.ui.dCheckList(self, Choices=choices, 
    572572                        ValueMode="String", Height=200) 
    573573                self.editor.bindEvent(dEvents.Hit, self.onSidesChanged) 
  • trunk/ide/wizards/AppWizard/AppWizard.py

    r3682 r4433  
    336336your application.""") 
    337337        lbl = dLabel(self, Caption=txt) 
    338         clb = self.addObject(dabo.ui.dCheckListBox, Name="clbTableSelection") 
     338        clb = self.addObject(dabo.ui.dCheckList, Name="clbTableSelection") 
    339339        self.Sizer.append(lbl) 
    340340        self.Sizer.append1x(clb)