39 |
|
|
40 |
import_indent = 0 |
import_indent = 0 |
41 |
|
|
42 |
|
import __builtin__ |
43 |
|
__builtin__.__dict__['StartupStatus'] = lambda string:string |
44 |
|
|
45 |
class MyModuleLoader(ihooks.ModuleLoader): |
class MyModuleLoader(ihooks.ModuleLoader): |
46 |
|
|
47 |
def load_module(self, name, stuff): |
def load_module(self, name, stuff): |
92 |
USAGE = GClientApp.USAGE + " [file] [file] ..." |
USAGE = GClientApp.USAGE + " [file] [file] ..." |
93 |
|
|
94 |
def __init__(self): |
def __init__(self): |
95 |
|
GClientApp.__init__(self, application="forms",defaults=ConfigOptions) |
96 |
|
self.mru = MRUManager.MRUManager(self) |
97 |
|
self._instances = [] |
98 |
|
|
99 |
|
self.configurationManager.loadApplicationConfig(section="designer",defaults=DesignerConfigOptions) |
100 |
|
self.configurationManager.registerAlias('gConfigNav', 'navigator') |
101 |
|
self.configurationManager.registerAlias('gConfigForms', 'forms') |
102 |
|
self.configurationManager.registerAlias('gConfigReports', 'reports') |
103 |
|
|
104 |
|
self.getConnectionManager().setLoginHandler(UILoginHandler()) |
105 |
|
self.loadModuleInformation() |
106 |
|
|
107 |
wxApp.__init__(self,0) |
wxApp.__init__(self,0) |
108 |
|
|
109 |
|
|
118 |
self.startup = Startup() |
self.startup = Startup() |
119 |
StartupStatus(_('Initializing Client Library')) |
StartupStatus(_('Initializing Client Library')) |
120 |
|
|
|
self.mru = MRUManager.MRUManager(self) |
|
|
self._instances = [] |
|
|
|
|
|
|
|
|
GClientApp.__init__(self, application="forms",defaults=ConfigOptions) |
|
|
self.configurationManager.loadApplicationConfig(section="designer",defaults=DesignerConfigOptions) |
|
|
self.configurationManager.registerAlias('gConfigNav', 'navigator') |
|
|
self.configurationManager.registerAlias('gConfigForms', 'forms') |
|
|
self.configurationManager.registerAlias('gConfigReports', 'reports') |
|
|
|
|
|
self.getConnectionManager().setLoginHandler(UILoginHandler()) |
|
|
self.loadModuleInformation() |
|
|
|
|
121 |
if len(self.ARGUMENTS): |
if len(self.ARGUMENTS): |
122 |
for arg in self.ARGUMENTS: |
for arg in self.ARGUMENTS: |
123 |
self.SetTopWindow(self.load(arg)) |
self.SetTopWindow(self.load(arg)) |
135 |
# TODO: or, restore the session to the way it was (same files, etc) |
# TODO: or, restore the session to the way it was (same files, etc) |
136 |
|
|
137 |
self.SetTopWindow(self.newInstance('forms')) |
self.SetTopWindow(self.newInstance('forms')) |
138 |
|
|
139 |
self.startup.pauseAndClose() |
self.startup.pauseAndClose() |
140 |
return 1 |
return 1 |
141 |
|
|