Changeset 4085

Show
Ignore:
Timestamp:
05/16/08 19:39:29 (6 months ago)
Author:
ed
Message:

For some reason dHtmlBox was never added to the Class Designer code. This commit corrects that omission.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4005 r4085  
    139139                {"name" : "DropdownList", "class" : dui.dDropdownList, "order" : 70}, 
    140140                {"name" : "EditBox", "class" : dui.dEditBox, "order" : 80}, 
     141                {"name" : "HtmlBox", "class" : dui.dHtmlBox, "order" : 85}, 
    141142                {"name" : "Gauge", "class" : dui.dGauge, "order" : 90}, 
    142143                {"name" : "Grid", "class" : dui.dGrid, "order" : 100}, 
     
    344345                "ListEvent", "MenuEvent", "MouseEvent", "SashEvent", 
    345346                "CalendarEvent", "TreeEvent") 
    346         classes = (dui.dBox, dui.dBitmap, dui.dBitmapButton, dui.dButton, dui.dCheckBox, 
    347                 dui.dComboBox, dui.dDateTextBox, dui.dDialog, dui.dDropdownList, 
    348                 dui.dEditBox, dui.dEditor, dui.dForm, dui.dDockForm, dui.dGauge, dui.dGrid, dui.dImage,  
    349                 dui.dLabel, dui.dLine, dui.dListBox, dui.dListControl, dui.dOkCancelDialog, 
    350                 dui.dPanel, dui.dPage, dui.dScrollPanel, dui.dPage, dui.dPageFrame, 
    351                 dui.dPageList, dui.dPageSelect, dui.dPageFrameNoTabs, dui.dRadioList, 
    352                 dui.dSlider, dui.dSpinner, dui.dSplitter, dui.dTextBox, dui.dToggleButton, 
    353                 dui.dTreeView, dlgs.Wizard, dlgs.WizardPage) 
     347        classes = (dui.dBox, dui.dBitmap, dui.dBitmapButton, dui.dButton, dui.dCheckBox,  
     348                dui.dComboBox, dui.dDateTextBox, dui.dDialog, dui.dDropdownList, dui.dEditBox,  
     349                dui.dEditor, dui.dForm, dui.dDockForm, dui.dGauge, dui.dGrid, dui.dHtmlBox, dui.dImage,  
     350                dui.dLabel, dui.dLine, dui.dListBox, dui.dListControl, dui.dOkCancelDialog, dui.dPanel,  
     351                dui.dPage, dui.dScrollPanel, dui.dPage, dui.dPageFrame, dui.dPageList, dui.dPageSelect, 
     352                dui.dPageFrameNoTabs, dui.dRadioList, dui.dSlider, dui.dSpinner, dui.dSplitter, dui.dTextBox,  
     353                dui.dToggleButton, dui.dTreeView, dlgs.Wizard, dlgs.WizardPage) 
    354354 
    355355        def evtsForClass(cls): 
     
    17111711                        "PageNoTabs", "Box", "Bitmap", "BitmapButton", "Button", "CheckBox", 
    17121712                        "ComboBox", "DateTextBox", "DropdownList", "EditBox", "Editor", 
    1713                         "Gauge", "Grid", "Image", "Label", "Line", "ListBox", "ListControl", "Page", 
     1713                        "Gauge", "Grid", "HtmlBox", "Image", "Label", "Line", "ListBox", "ListControl", "Page", 
    17141714                        "RadioList", "Slider", "Spinner", "Splitter", "TextBox", "ToggleButton", 
    17151715                        "TreeView"] 
     
    17191719                        dui.dBox, dui.dBitmap, dui.dBitmapButton, dui.dButton, dui.dCheckBox, 
    17201720                        dui.dComboBox, dui.dDateTextBox, dui.dDropdownList, dui.dEditBox, 
    1721                         dui.dEditor, dui.dGauge, dui.dGrid, dui.dImage, dui.dLabel, dui.dLine, 
     1721                        dui.dEditor, dui.dGauge, dui.dGrid, dui.dHtmlBox, dui.dImage, dui.dLabel, dui.dLine, 
    17221722                        dui.dListBox, dui.dListControl, dui.dPage, dui.dRadioList, dui.dSlider, 
    17231723                        dui.dSpinner, dui.dSplitter, dui.dTextBox, dui.dToggleButton, 
     
    28742874            pop.append(_("Add EditBox"), OnHit=self.onNewEditBox) 
    28752875            pop.append(_("Add Grid"), OnHit=self.onNewGrid) 
     2876            pop.append(_("Add HtmlBox"), OnHit=self.onNewHtmlBox) 
    28762877            pop.append(_("Add ListBox"), OnHit=self.onNewListBox) 
    28772878            pop.append(_("Add ListControl"), OnHit=self.onNewListControl) 
     
    30873088    def onNewGrid(self, evt): 
    30883089        dui.callAfter(self.addNewControl, None, dui.dGrid) 
     3090    def onNewHtmlBox(self, evt): 
     3091        dui.callAfter(self.addNewControl, None, dui.dHtmlBox) 
    30893092    def onNewImage(self, evt): 
    30903093        dui.callAfter(self.addNewControl, None, dui.dImage) 
     
    38693872                    (_("Gauge"), dui.dGauge), 
    38703873                    (_("Grid"), dui.dGrid), 
     3874                    (_("HtmlBox"), dui.dHtmlBox), 
    38713875                    (_("Image"), dui.dImage), 
    38723876                    (_("Label"), dui.dLabel), 
  • trunk/ide/ClassDesignerControlMixin.py

    r3964 r4085  
    775775                "Min": {"type" : int, "readonly" : False}, 
    776776                "ShowLabels" : {"type" : bool, "readonly" : False}} 
    777         splitterProps = {  "MinimumPanelSize": {"type" : int, "readonly" : False}, 
     777        splitterProps = {"MinimumPanelSize": {"type" : int, "readonly" : False}, 
    778778                "Orientation": {"type" : list, "readonly" : False, 
    779779                    "values" : ["Horizontal", "Vertical"]}, 
     
    792792                    "values" : ["Upper", "Lower", "Title", "None"]},         
    793793                "ReadOnly" : {"type" : bool, "readonly" : False}} 
     794        htmlTextProps = {"HorizontalScroll": {"type" : bool, "readonly" : False}, 
     795                "Page": {"type" : unicode, "readonly" : False}, 
     796                "RespondToLinks": {"type" : bool, "readonly" : False}, 
     797                "ShowScrollBars": {"type" : bool, "readonly" : False}, 
     798                "VerticalScroll": {"type" : bool, "readonly" : False}} 
    794799        treeProps = {"Editable" : {"type" : bool, "readonly" : False}, 
    795800                "MultipleSelect" : {"type" : bool, "readonly" : False}, 
     
    960965                ret.update({"PasswordEntry" : {"type" : bool, "readonly" : False}, 
    961966                        "TextLength" : {"type" : int, "readonly" : False}}) 
     967        elif isinstance(self, dabo.ui.dHtmlBox): 
     968            ret.update(htmlTextProps) 
    962969        elif isinstance(self, dabo.ui.dTimer): 
    963970            pass