85 self.__projectAct.setWhatsThis(self.tr( |
85 self.__projectAct.setWhatsThis(self.tr( |
86 """<b>Check Code Style...</b>""" |
86 """<b>Check Code Style...</b>""" |
87 """<p>This checks Python files for compliance to the""" |
87 """<p>This checks Python files for compliance to the""" |
88 """ code style conventions given in various PEPs.</p>""" |
88 """ code style conventions given in various PEPs.</p>""" |
89 )) |
89 )) |
90 self.__projectAct.triggered[()].connect( |
90 self.__projectAct.triggered.connect( |
91 self.__projectCodeStyleCheck) |
91 self.__projectCodeStyleCheck) |
92 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
92 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
93 menu.addAction(self.__projectAct) |
93 menu.addAction(self.__projectAct) |
94 |
94 |
95 self.__editorAct = E5Action( |
95 self.__editorAct = E5Action( |
99 self.__editorAct.setWhatsThis(self.tr( |
99 self.__editorAct.setWhatsThis(self.tr( |
100 """<b>Check Code Style...</b>""" |
100 """<b>Check Code Style...</b>""" |
101 """<p>This checks Python files for compliance to the""" |
101 """<p>This checks Python files for compliance to the""" |
102 """ code style conventions given in various PEPs.</p>""" |
102 """ code style conventions given in various PEPs.</p>""" |
103 )) |
103 )) |
104 self.__editorAct.triggered[()].connect(self.__editorCodeStyleCheck) |
104 self.__editorAct.triggered.connect(self.__editorCodeStyleCheck) |
105 |
105 |
106 e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) |
106 e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) |
107 e5App().getObject("ProjectBrowser").getProjectBrowser("sources")\ |
107 e5App().getObject("ProjectBrowser").getProjectBrowser("sources")\ |
108 .showMenu.connect(self.__projectBrowserShowMenu) |
108 .showMenu.connect(self.__projectBrowserShowMenu) |
109 e5App().getObject("ViewManager").editorOpenedEd.connect( |
109 e5App().getObject("ViewManager").editorOpenedEd.connect( |
179 self.__projectBrowserAct.setWhatsThis(self.tr( |
179 self.__projectBrowserAct.setWhatsThis(self.tr( |
180 """<b>Check Code Style...</b>""" |
180 """<b>Check Code Style...</b>""" |
181 """<p>This checks Python files for compliance to the""" |
181 """<p>This checks Python files for compliance to the""" |
182 """ code style conventions given in various PEPs.</p>""" |
182 """ code style conventions given in various PEPs.</p>""" |
183 )) |
183 )) |
184 self.__projectBrowserAct.triggered[()].connect( |
184 self.__projectBrowserAct.triggered.connect( |
185 self.__projectBrowserCodeStyleCheck) |
185 self.__projectBrowserCodeStyleCheck) |
186 if not self.__projectBrowserAct in menu.actions(): |
186 if not self.__projectBrowserAct in menu.actions(): |
187 menu.addAction(self.__projectBrowserAct) |
187 menu.addAction(self.__projectBrowserAct) |
188 |
188 |
189 def __projectCodeStyleCheck(self): |
189 def __projectCodeStyleCheck(self): |