237 self.replaceFilesDialog = None |
237 self.replaceFilesDialog = None |
238 self.__notification = None |
238 self.__notification = None |
239 |
239 |
240 # now setup the connections |
240 # now setup the connections |
241 splash.showMessage(self.trUtf8("Setting up connections...")) |
241 splash.showMessage(self.trUtf8("Setting up connections...")) |
242 app.focusChanged.connect( |
|
243 self.viewmanager.appFocusChanged) |
|
244 self.browser.sourceFile[str].connect( |
242 self.browser.sourceFile[str].connect( |
245 self.viewmanager.openSourceFile) |
243 self.viewmanager.openSourceFile) |
246 self.browser.sourceFile[str, int].connect( |
244 self.browser.sourceFile[str, int].connect( |
247 self.viewmanager.openSourceFile) |
245 self.viewmanager.openSourceFile) |
248 self.browser.sourceFile[str, int, str].connect( |
246 self.browser.sourceFile[str, int, str].connect( |
451 splash.showMessage(self.trUtf8("Initializing Toolbars...")) |
449 splash.showMessage(self.trUtf8("Initializing Toolbars...")) |
452 self.__initToolbars() |
450 self.__initToolbars() |
453 splash.showMessage(self.trUtf8("Initializing Statusbar...")) |
451 splash.showMessage(self.trUtf8("Initializing Statusbar...")) |
454 self.__initStatusbar() |
452 self.__initStatusbar() |
455 |
453 |
456 # Initialise the instance variables. |
454 # connect the appFocusChanged signal after all actions are ready |
|
455 app.focusChanged.connect(self.viewmanager.appFocusChanged) |
|
456 |
|
457 # Initialize the instance variables. |
457 self.currentProg = None |
458 self.currentProg = None |
458 self.isProg = False |
459 self.isProg = False |
459 self.utEditorOpen = False |
460 self.utEditorOpen = False |
460 self.utProjectOpen = False |
461 self.utProjectOpen = False |
461 |
462 |
1010 else: |
1011 else: |
1011 argChars = ['-'] |
1012 argChars = ['-'] |
1012 |
1013 |
1013 for arg in args: |
1014 for arg in args: |
1014 # handle a request to start with last session |
1015 # handle a request to start with last session |
1015 if arg == '--start-session': |
1016 if arg == '--start-file': |
|
1017 self.__openOnStartup("File") |
|
1018 # ignore all further arguments |
|
1019 return |
|
1020 elif arg == '--start-multi': |
|
1021 self.__openOnStartup("MultiProject") |
|
1022 # ignore all further arguments |
|
1023 return |
|
1024 elif arg == '--start-project': |
|
1025 self.__openOnStartup("Project") |
|
1026 # ignore all further arguments |
|
1027 return |
|
1028 elif arg == '--start-session': |
1016 self.__openOnStartup("Session") |
1029 self.__openOnStartup("Session") |
1017 # ignore all further arguments |
1030 # ignore all further arguments |
1018 return |
1031 return |
1019 |
1032 |
1020 if arg == '--' and not ddseen: |
1033 if arg == '--' and not ddseen: |