Changeset 4063
- Timestamp:
- 05/04/08 11:37:34 (3 months ago)
- Files:
-
- branches/ed-ide/Studio.py (added)
- branches/ed-ide/components/ClassDesigner/ClassDesignerFormMixin.py (modified) (1 diff)
- branches/ed-ide/components/ClassDesigner/ClassDesignerTreeSheet.py (modified) (2 diffs)
- branches/ed-ide/components/ClassDesigner/__init__.py (added)
- branches/ed-ide/components/CxnEditor/__init__.py (added)
- branches/ed-ide/components/MenuDesigner/MenuDesignerForm.py (modified) (1 diff)
- branches/ed-ide/components/MenuDesigner/MenuDesignerPropForm.py (modified) (1 diff)
- branches/ed-ide/components/MenuDesigner/__init__.py (added)
- branches/ed-ide/components/ReportDesigner/ReportDesigner.py (modified) (1 diff)
- branches/ed-ide/components/ReportDesigner/__init__.py (added)
- branches/ed-ide/components/TextEditor/TextEditor.py (modified) (7 diffs)
- branches/ed-ide/components/TextEditor/__init__.py (added)
- branches/ed-ide/components/__init__.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/ed-ide/components/ClassDesigner/ClassDesignerFormMixin.py
r4061 r4063 14 14 import ClassDesignerMenu 15 15 from DragHandle import DragHandle 16 from wizards.QuickLayoutWizard import QuickLayoutWizard16 from QuickLayoutWizard import QuickLayoutWizard 17 17 from ClassDesignerComponents import LayoutPanel 18 18 from ClassDesignerComponents import LayoutBasePanel branches/ed-ide/components/ClassDesigner/ClassDesignerTreeSheet.py
r4061 r4063 13 13 from DragHandle import DragHandle 14 14 import ClassDesignerMenu 15 from MenuBarPanel import MenuBarPanel16 from MenuPanel import MenuPanel17 from MenuDesignerComponents import SeparatorPanel15 # from MenuBarPanel import MenuBarPanel 16 # from MenuPanel import MenuPanel 17 # from MenuDesignerComponents import SeparatorPanel 18 18 dui = dabo.ui 19 19 from dabo.ui import makeProxyProperty … … 362 362 childNode.Object = itm 363 363 364 if not isinstance(itm, (SeparatorPanel, MenuPanel, MenuBarPanel)):364 if not isinstance(itm, (SeparatorPanel, )): #MenuPanel, MenuBarPanel)): 365 365 if hasattr(itm, "Sizer") and itm.Sizer: 366 366 if isinstance(itm, dui.dialogs.WizardPage): branches/ed-ide/components/MenuDesigner/MenuDesignerForm.py
r4061 r4063 7 7 import dabo.dEvents as dEvents 8 8 import dabo.lib.xmltodict as xtd 9 from ClassDesignerExceptionsimport PropertyUpdateException9 from ..ClassDesigner import PropertyUpdateException 10 10 from MenuBarPanel import MenuBarPanel 11 11 from MenuPanel import MenuPanel branches/ed-ide/components/MenuDesigner/MenuDesignerPropForm.py
r4061 r4063 3 3 from dabo.dLocalize import _ 4 4 import dabo.dEvents as dEvents 5 from ClassDesignerPropSheet import PropSheet6 from ClassDesignerTreeSheet import TreeSheet5 from ..ClassDesigner.ClassDesignerPropSheet import PropSheet 6 from ..ClassDesigner.ClassDesignerTreeSheet import TreeSheet 7 7 8 8 if __name__ == "__main__": branches/ed-ide/components/ReportDesigner/ReportDesigner.py
r4061 r4063 5 5 dabo.ui.loadUI("wx") 6 6 import dabo.dEvents as dEvents 7 from dabo.dReportWriter import dReportWriter 8 from dabo.lib.reportWriter import * 7 try: 8 from dabo.dReportWriter import dReportWriter 9 from dabo.lib.reportWriter import * 10 except ImportError, e: 11 import inspect 12 if "Studio.py" not in inspect.stack()[-1][1]: 13 # Not being run as part of the Studio app 14 raise ImportError, e 9 15 from dabo.dLocalize import _ 10 16 from dabo.ui import dKeys 11 import ClassDesignerPropSheet17 from ..ClassDesigner import ClassDesignerPropSheet 12 18 13 19 branches/ed-ide/components/TextEditor/TextEditor.py
r4061 r4063 62 62 self.p = None 63 63 self.outputText = "" 64 self._outputSashExtra = self.Application.getUserSetting(" editorform.outputSashExtra", 100)64 self._outputSashExtra = self.Application.getUserSetting("texteditorform.outputSashExtra", 100) 65 65 66 66 … … 111 111 if self.splitter.SashPosition > 0: 112 112 self._outputSashExtra = self.Height - self.splitter.SashPosition 113 self.Application.setUserSetting(" editorform.outputSashExtra", self._outputSashExtra)113 self.Application.setUserSetting("texteditorform.outputSashExtra", self._outputSashExtra) 114 114 115 115 … … 295 295 296 296 297 class EditorForm(dabo.ui.dForm):297 class TextEditorForm(dabo.ui.dForm): 298 298 def __init__(self, *args, **kwargs): 299 super( EditorForm, self).__init__(*args, **kwargs)299 super(TextEditorForm, self).__init__(*args, **kwargs) 300 300 301 301 … … 307 307 pnl.Sizer = dabo.ui.dSizer("v") 308 308 self._lastPath = self.Application.getUserSetting("lastPath", os.getcwd()) 309 super( EditorForm, self).afterInit()309 super(TextEditorForm, self).afterInit() 310 310 self.Caption = _("Dabo Editor") 311 311 self.funcButton = dabo.ui.dImage(pnl, ScaleMode="Clip", Size=(22,22)) … … 691 691 self.pgfEditor.closeEditor(ed, False) 692 692 # Create a new editor form 693 frm = EditorForm()693 frm = TextEditorForm() 694 694 frm.onFileNew(None) 695 695 frm.openFile(fname) … … 726 726 if we bound the MRU action to an instance method, it 727 727 would barf. So we make this a classmethod, and pass 728 the call to the first EditorForm instance we can find.728 the call to the first TextEditorForm instance we can find. 729 729 """ 730 730 pth = " ".join(evt.prompt.split(" ")[1:]) 731 # Find the topmost form that is an EditorForm731 # Find the topmost form that is an TextEditorForm 732 732 app = dabo.dAppRef 733 733 try: 734 734 app.ActiveForm.openFile(pth) 735 735 except: 736 # Call the first available EditorForm736 # Call the first available TextEditorForm 737 737 edf = [frm for frm in app.uiForms 738 if isinstance(frm, EditorForm)][0]738 if isinstance(frm, TextEditorForm)][0] 739 739 edf.openFile(pth) 740 740 onMRUSelection = classmethod(onMRUSelection) … … 1043 1043 app.setup() 1044 1044 1045 frm = app.MainForm = EditorForm()1045 frm = app.MainForm = TextEditorForm() 1046 1046 frm.onFileNew(None) 1047 1047 for file in files:
