16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2001-2002 Free Software Foundation |
# Copyright 2001-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# navigator/Instance.py |
# navigator/Instance.py |
28 |
# |
# |
29 |
|
|
30 |
from gnue.designer.navigator import properties as navProperties |
from gnue.designer.navigator import properties as navProperties |
31 |
from gnue.designer.Instance import BaseInstance |
from gnue.designer.base.Instance import BaseInstance |
32 |
|
from Incubator import Incubator |
33 |
|
|
34 |
# Tool support... |
# Tool support... |
35 |
from LayoutEditor import LayoutEditor |
from LayoutEditor import LayoutEditor |
47 |
class Instance(BaseInstance): |
class Instance(BaseInstance): |
48 |
|
|
49 |
def __init__(self, app, *args, **params): |
def __init__(self, app, *args, **params): |
50 |
|
self.incubator = Incubator(self) |
51 |
self.properties = navProperties |
self.properties = navProperties |
52 |
|
|
53 |
BaseInstance.__init__(self, app, *args, **params) |
BaseInstance.__init__(self, app, *args, **params) |
54 |
|
|
55 |
|
|
59 |
return object |
return object |
60 |
|
|
61 |
|
|
62 |
def loadEmpty(self): |
def loadEmpty(self, style=None): |
63 |
object = GNObjects.GNProcesses() |
object = GNObjects.GNProcesses() |
64 |
object.title = "Untitled Process" |
object.title = "Untitled Process" |
65 |
return object |
return object |
73 |
return LayoutEditor(self, self.rootObject, self) |
return LayoutEditor(self, self.rootObject, self) |
74 |
|
|
75 |
|
|
76 |
def addTools(self): |
def createTools(self): |
77 |
|
pass |
78 |
## self.addTool('propertyEditor','Property Inspector', PropertyEditor) |
## self.addTool('propertyEditor','Property Inspector', PropertyEditor) |
79 |
## self.addTool('treeEditor','Object Navigator', TreeView) |
## self.addTool('treeEditor','Object Navigator', TreeView) |
80 |
## self.addTool('triggerEditor','Event Editor', TriggerEditor) |
## self.addTool('triggerEditor','Event Editor', TriggerEditor) |
81 |
## self.addTool('datasourceEditor','Data Source Editor', DataSourceEditor) |
## self.addTool('datasourceEditor','Data Source Editor', DataSourceEditor) |
82 |
## self.addTool('schemaViewer','Schema Navigator', SchemaViewer) |
## self.addTool('schemaViewer','Schema Navigator', SchemaViewer) |
83 |
|
|
84 |
|
def createWizards(self): |
85 |
self.loadWizards(wizards) |
self.loadWizards(wizards) |
86 |
|
|
87 |
def preSave(self): |
def preSave(self): |