Project/Project.py

changeset 476
121633976eca
parent 461
34528aaedf1c
child 486
e4711a55e482
equal deleted inserted replaced
475:94b3fdd34c60 476:121633976eca
110 @signal showMenu(string, QMenu) emitted when a menu is about to be shown. The name 110 @signal showMenu(string, QMenu) emitted when a menu is about to be shown. The name
111 of the menu and a reference to the menu are given. 111 of the menu and a reference to the menu are given.
112 @signal lexerAssociationsChanged() emitted after the lexer associations have been 112 @signal lexerAssociationsChanged() emitted after the lexer associations have been
113 changed 113 changed
114 """ 114 """
115 sourceFile = pyqtSignal(str)
116
115 keynames = [ 117 keynames = [
116 "PROGLANGUAGE", "MIXEDLANGUAGE", "PROJECTTYPE", 118 "PROGLANGUAGE", "MIXEDLANGUAGE", "PROJECTTYPE",
117 "SPELLLANGUAGE", "SPELLWORDS", "SPELLEXCLUDES", 119 "SPELLLANGUAGE", "SPELLWORDS", "SPELLEXCLUDES",
118 "DESCRIPTION", "VERSION", "HASH", 120 "DESCRIPTION", "VERSION", "HASH",
119 "AUTHOR", "EMAIL", 121 "AUTHOR", "EMAIL",
2812 self.ui.taskViewer.setProjectOpen(True) 2814 self.ui.taskViewer.setProjectOpen(True)
2813 2815
2814 if restoreSession: 2816 if restoreSession:
2815 # open the main script 2817 # open the main script
2816 if len(self.pdata["MAINSCRIPT"]) == 1: 2818 if len(self.pdata["MAINSCRIPT"]) == 1:
2817 self.emit(SIGNAL('sourceFile'), 2819 self.sourceFile.emit(
2818 os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0])) 2820 os.path.join(self.ppath, self.pdata["MAINSCRIPT"][0]))
2819 2821
2820 # open a project session file being quiet about errors 2822 # open a project session file being quiet about errors
2821 if reopen: 2823 if reopen:
2822 self.__readSession(quiet = True, indicator = "_tmp") 2824 self.__readSession(quiet = True, indicator = "_tmp")

eric ide

mercurial