80 self.__projectAct.setWhatsThis(self.trUtf8( |
80 self.__projectAct.setWhatsThis(self.trUtf8( |
81 """<b>Check Indentations...</b>""" |
81 """<b>Check Indentations...</b>""" |
82 """<p>This checks Python files""" |
82 """<p>This checks Python files""" |
83 """ for bad indentations using tabnanny.</p>""" |
83 """ for bad indentations using tabnanny.</p>""" |
84 )) |
84 )) |
85 self.__projectAct.triggered.connect(self.__projectTabnanny) |
85 self.__projectAct.triggered[()].connect(self.__projectTabnanny) |
86 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
86 e5App().getObject("Project").addE5Actions([self.__projectAct]) |
87 menu.addAction(self.__projectAct) |
87 menu.addAction(self.__projectAct) |
88 |
88 |
89 self.__editorAct = E5Action(self.trUtf8('Check Indentations'), |
89 self.__editorAct = E5Action(self.trUtf8('Check Indentations'), |
90 self.trUtf8('&Indentations...'), 0, 0, |
90 self.trUtf8('&Indentations...'), 0, 0, |
92 self.__editorAct.setWhatsThis(self.trUtf8( |
92 self.__editorAct.setWhatsThis(self.trUtf8( |
93 """<b>Check Indentations...</b>""" |
93 """<b>Check Indentations...</b>""" |
94 """<p>This checks Python files""" |
94 """<p>This checks Python files""" |
95 """ for bad indentations using tabnanny.</p>""" |
95 """ for bad indentations using tabnanny.</p>""" |
96 )) |
96 )) |
97 self.__editorAct.triggered.connect(self.__editorTabnanny) |
97 self.__editorAct.triggered[()].connect(self.__editorTabnanny) |
98 |
98 |
99 self.connect(e5App().getObject("Project"), SIGNAL("showMenu"), |
99 self.connect(e5App().getObject("Project"), SIGNAL("showMenu"), |
100 self.__projectShowMenu) |
100 self.__projectShowMenu) |
101 self.connect(e5App().getObject("ProjectBrowser").getProjectBrowser("sources"), |
101 self.connect(e5App().getObject("ProjectBrowser").getProjectBrowser("sources"), |
102 SIGNAL("showMenu"), self.__projectBrowserShowMenu) |
102 SIGNAL("showMenu"), self.__projectBrowserShowMenu) |
169 self.__projectBrowserAct.setWhatsThis(self.trUtf8( |
169 self.__projectBrowserAct.setWhatsThis(self.trUtf8( |
170 """<b>Check Indentations...</b>""" |
170 """<b>Check Indentations...</b>""" |
171 """<p>This checks Python files""" |
171 """<p>This checks Python files""" |
172 """ for bad indentations using tabnanny.</p>""" |
172 """ for bad indentations using tabnanny.</p>""" |
173 )) |
173 )) |
174 self.__projectBrowserAct.triggered.connect(self.__projectBrowserTabnanny) |
174 self.__projectBrowserAct.triggered[()].connect(self.__projectBrowserTabnanny) |
175 if not self.__projectBrowserAct in menu.actions(): |
175 if not self.__projectBrowserAct in menu.actions(): |
176 menu.addAction(self.__projectBrowserAct) |
176 menu.addAction(self.__projectBrowserAct) |
177 |
177 |
178 def __projectTabnanny(self): |
178 def __projectTabnanny(self): |
179 """ |
179 """ |