UI/UserInterface.py

changeset 128
13e96bd0f5a5
parent 97
c4086afea02b
child 137
9b3f3e8fc798
equal deleted inserted replaced
127:003f568ac4a0 128:13e96bd0f5a5
167 """ 167 """
168 maxFilePathLen = 100 168 maxFilePathLen = 100
169 maxSbFilePathLen = 150 169 maxSbFilePathLen = 150
170 maxMenuFilePathLen = 75 170 maxMenuFilePathLen = 75
171 171
172 def __init__(self, locale, splash, plugin, noOpenAtStartup, restartArguments): 172 def __init__(self, app, locale, splash, plugin, noOpenAtStartup, restartArguments):
173 """ 173 """
174 Constructor 174 Constructor
175 175
176 @param app reference to the application object (E5Application)
176 @param locale locale to be used by the UI (string) 177 @param locale locale to be used by the UI (string)
177 @param splash reference to the splashscreen (UI.SplashScreen.SplashScreen) 178 @param splash reference to the splashscreen (UI.SplashScreen.SplashScreen)
178 @param plugin filename of a plugin to be loaded (used for plugin development) 179 @param plugin filename of a plugin to be loaded (used for plugin development)
179 @param noOpenAtStartup flag indicating that the open at startup option 180 @param noOpenAtStartup flag indicating that the open at startup option
180 should not be executed (boolean) 181 should not be executed (boolean)
253 logging.debug("Creating Shortcuts Dialog...") 254 logging.debug("Creating Shortcuts Dialog...")
254 self.shortcutsDialog = ShortcutsDialog(self, 'Shortcuts') 255 self.shortcutsDialog = ShortcutsDialog(self, 'Shortcuts')
255 256
256 # now setup the connections 257 # now setup the connections
257 splash.showMessage(self.trUtf8("Setting up connections...")) 258 splash.showMessage(self.trUtf8("Setting up connections..."))
259 self.connect(app, SIGNAL("focusChanged(QWidget*, QWidget*)"),
260 self.viewmanager.appFocusChanged)
258 self.connect(self.browser, SIGNAL('sourceFile'), 261 self.connect(self.browser, SIGNAL('sourceFile'),
259 self.viewmanager.openSourceFile) 262 self.viewmanager.openSourceFile)
260 self.connect(self.browser, SIGNAL('designerFile'), 263 self.connect(self.browser, SIGNAL('designerFile'),
261 self.__designer) 264 self.__designer)
262 self.connect(self.browser, SIGNAL('linguistFile'), 265 self.connect(self.browser, SIGNAL('linguistFile'),

eric ide

mercurial