dabo Commit
Revision 3668
Date: 2007-11-13 08:20:03 -0800 (Tue, 13 Nov 2007)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/3668

Changed:
U   trunk/ide/ClassDesignerEditor.py
U   trunk/ide/ClassDesignerFormMixin.py
U   trunk/ide/ClassDesignerPemForm.py
U   trunk/ide/PrefEditor.cdxml

Log:
Added default sizes and positions to the Class Designer windows.

Changed the PrefEditor to set focus to the filter textbox when the filter page 
is selected.


Diff:
Modified: trunk/ide/ClassDesignerEditor.py
===================================================================
--- trunk/ide/ClassDesignerEditor.py    2007-11-13 16:01:02 UTC (rev 3667)
+++ trunk/ide/ClassDesignerEditor.py    2007-11-13 16:20:03 UTC (rev 3668)
@@ -125,6 +125,11 @@
 
 class EditorForm(dui.dForm):
        def afterInit(self):
+               self._defaultLeft = 30
+               self._defaultTop = 620
+               self._defaultWidth = 800
+               self._defaultHeight = 260
+
                self._objHierarchy = []
                pnl = dabo.ui.dPanel(self)
                self.Sizer.append1x(pnl)

Modified: trunk/ide/ClassDesignerFormMixin.py
===================================================================
--- trunk/ide/ClassDesignerFormMixin.py 2007-11-13 16:01:02 UTC (rev 3667)
+++ trunk/ide/ClassDesignerFormMixin.py 2007-11-13 16:20:03 UTC (rev 3668)
@@ -49,6 +49,7 @@
                self._dragObjOffset = (0, 0)
                self._dragDrawPos = (0, 0)
                self._appNotifiedClose = False
+               self._savedState = {}
                # Need to store references to handles along with a reference
                # to the control they are enclosing
                self.handles = {}
@@ -74,16 +75,30 @@
                self.onActivate(None)
        
        
+       def afterInit(self):
+               self._defaultLeft = 30
+               self._defaultTop = 50
+               self._defaultWidth = 570
+               self._defaultHeight = 550
+
+       
        def afterInitAll(self):
                self.refresh()
+
                
        def bringToFront(self):
                super(ClassDesignerFormMixin, self).bringToFront()
-       
+
+
        def saveState(self):
                self._savedState = self._getSavedState()
-       
-       
+
+
+       def restoreSizeAndPosition(self):
+               super(ClassDesignerFormMixin, self).restoreSizeAndPosition()
+               self.saveState()
+
+
        def _getSavedState(self):
                if self._formMode:
                        # Save the whole form

Modified: trunk/ide/ClassDesignerPemForm.py
===================================================================
--- trunk/ide/ClassDesignerPemForm.py   2007-11-13 16:01:02 UTC (rev 3667)
+++ trunk/ide/ClassDesignerPemForm.py   2007-11-13 16:20:03 UTC (rev 3668)
@@ -30,6 +30,11 @@
 
 
        def afterInit(self):
+               self._defaultLeft = 610
+               self._defaultTop = 50
+               self._defaultWidth = 370
+               self._defaultHeight = 580
+
                self.Caption = _("Object Info")
                pnl = dabo.ui.dPanel(self)
                self.Sizer.append1x(pnl)

Modified: trunk/ide/PrefEditor.cdxml
===================================================================
--- trunk/ide/PrefEditor.cdxml  2007-11-13 16:01:02 UTC (rev 3667)
+++ trunk/ide/PrefEditor.cdxml  2007-11-13 16:20:03 UTC (rev 3668)
@@ -249,6 +249,13 @@
                                                        </dSizer>
                                                </dPage>
                                                <dPage Caption="Filter" 
designerClass="controlMix" Name="dPage1">
+                                                       <code>
+                                                               
<onPageEnter><![CDATA[
+def onPageEnter(self, evt):
+       self.txtFilter.SetFocus()
+]]>
+                                                               </onPageEnter>
+                                                       </code>
                                                        <dSizer SlotCount="4" 
designerClass="LayoutSizer" Orientation="Vertical">
                                                                <dBorderSizer 
SlotCount="1" Caption="Filter Expression" sizerInfo="{'BorderSides': ['Right'], 
'Border': 200, 'Expand': True}" designerClass="LayoutBorderSizer" 
Orientation="Horizontal">
                                                                        
<dTextBox RegID="txtFilter" sizerInfo="{'Proportion': 1, 'VAlign': 'Middle', 
'Border': 3, 'Expand': True}" designerClass="controlMix" Name="txtFilter">




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to