81 self.__projectAct.setWhatsThis(self.tr( |
81 self.__projectAct.setWhatsThis(self.tr( |
82 """<b>Check Indentations...</b>""" |
82 """<b>Check Indentations...</b>""" |
83 """<p>This checks Python files""" |
83 """<p>This checks Python files""" |
84 """ for bad indentations using tabnanny.</p>""" |
84 """ for bad indentations using tabnanny.</p>""" |
85 )) |
85 )) |
86 self.__projectAct.triggered[()].connect(self.__projectTabnanny) |
86 self.__projectAct.triggered.connect(self.__projectTabnanny) |
87 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
87 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
88 menu.addAction(self.__projectAct) |
88 menu.addAction(self.__projectAct) |
89 |
89 |
90 self.__editorAct = E5Action( |
90 self.__editorAct = E5Action( |
91 self.tr('Check Indentations'), |
91 self.tr('Check Indentations'), |
94 self.__editorAct.setWhatsThis(self.tr( |
94 self.__editorAct.setWhatsThis(self.tr( |
95 """<b>Check Indentations...</b>""" |
95 """<b>Check Indentations...</b>""" |
96 """<p>This checks Python files""" |
96 """<p>This checks Python files""" |
97 """ for bad indentations using tabnanny.</p>""" |
97 """ for bad indentations using tabnanny.</p>""" |
98 )) |
98 )) |
99 self.__editorAct.triggered[()].connect(self.__editorTabnanny) |
99 self.__editorAct.triggered.connect(self.__editorTabnanny) |
100 |
100 |
101 e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) |
101 e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) |
102 e5App().getObject("ProjectBrowser").getProjectBrowser("sources")\ |
102 e5App().getObject("ProjectBrowser").getProjectBrowser("sources")\ |
103 .showMenu.connect(self.__projectBrowserShowMenu) |
103 .showMenu.connect(self.__projectBrowserShowMenu) |
104 e5App().getObject("ViewManager").editorOpenedEd.connect( |
104 e5App().getObject("ViewManager").editorOpenedEd.connect( |
174 self.__projectBrowserAct.setWhatsThis(self.tr( |
174 self.__projectBrowserAct.setWhatsThis(self.tr( |
175 """<b>Check Indentations...</b>""" |
175 """<b>Check Indentations...</b>""" |
176 """<p>This checks Python files""" |
176 """<p>This checks Python files""" |
177 """ for bad indentations using tabnanny.</p>""" |
177 """ for bad indentations using tabnanny.</p>""" |
178 )) |
178 )) |
179 self.__projectBrowserAct.triggered[()].connect( |
179 self.__projectBrowserAct.triggered.connect( |
180 self.__projectBrowserTabnanny) |
180 self.__projectBrowserTabnanny) |
181 if not self.__projectBrowserAct in menu.actions(): |
181 if not self.__projectBrowserAct in menu.actions(): |
182 menu.addAction(self.__projectBrowserAct) |
182 menu.addAction(self.__projectBrowserAct) |
183 |
183 |
184 def __projectTabnanny(self): |
184 def __projectTabnanny(self): |