72 """ |
73 """ |
73 menu = e5App().getObject("Project").getMenu("Checks") |
74 menu = e5App().getObject("Project").getMenu("Checks") |
74 if menu: |
75 if menu: |
75 self.__projectAct = E5Action(self.trUtf8('Check Indentations'), |
76 self.__projectAct = E5Action(self.trUtf8('Check Indentations'), |
76 self.trUtf8('&Indentations...'), 0, 0, |
77 self.trUtf8('&Indentations...'), 0, 0, |
77 self,'project_check_indentations') |
78 self, 'project_check_indentations') |
78 self.__projectAct.setStatusTip( |
79 self.__projectAct.setStatusTip( |
79 self.trUtf8('Check indentations using tabnanny.')) |
80 self.trUtf8('Check indentations using tabnanny.')) |
80 self.__projectAct.setWhatsThis(self.trUtf8( |
81 self.__projectAct.setWhatsThis(self.trUtf8( |
81 """<b>Check Indentations...</b>""" |
82 """<b>Check Indentations...</b>""" |
82 """<p>This checks Python files""" |
83 """<p>This checks Python files""" |
133 |
134 |
134 self.__initialize() |
135 self.__initialize() |
135 |
136 |
136 def __projectShowMenu(self, menuName, menu): |
137 def __projectShowMenu(self, menuName, menu): |
137 """ |
138 """ |
138 Private slot called, when the the project menu or a submenu is |
139 Private slot called, when the the project menu or a submenu is |
139 about to be shown. |
140 about to be shown. |
140 |
141 |
141 @param menuName name of the menu to be shown (string) |
142 @param menuName name of the menu to be shown (string) |
142 @param menu reference to the menu (QMenu) |
143 @param menu reference to the menu (QMenu) |
143 """ |
144 """ |
146 e5App().getObject("Project").getProjectLanguage() in \ |
147 e5App().getObject("Project").getProjectLanguage() in \ |
147 ["Python3", "Python2", "Python"]) |
148 ["Python3", "Python2", "Python"]) |
148 |
149 |
149 def __projectBrowserShowMenu(self, menuName, menu): |
150 def __projectBrowserShowMenu(self, menuName, menu): |
150 """ |
151 """ |
151 Private slot called, when the the project browser context menu or a submenu is |
152 Private slot called, when the the project browser context menu or a submenu is |
152 about to be shown. |
153 about to be shown. |
153 |
154 |
154 @param menuName name of the menu to be shown (string) |
155 @param menuName name of the menu to be shown (string) |
155 @param menu reference to the menu (QMenu) |
156 @param menu reference to the menu (QMenu) |
156 """ |
157 """ |
227 except ValueError: |
228 except ValueError: |
228 pass |
229 pass |
229 |
230 |
230 def __editorShowMenu(self, menuName, menu, editor): |
231 def __editorShowMenu(self, menuName, menu, editor): |
231 """ |
232 """ |
232 Private slot called, when the the editor context menu or a submenu is |
233 Private slot called, when the the editor context menu or a submenu is |
233 about to be shown. |
234 about to be shown. |
234 |
235 |
235 @param menuName name of the menu to be shown (string) |
236 @param menuName name of the menu to be shown (string) |
236 @param menu reference to the menu (QMenu) |
237 @param menu reference to the menu (QMenu) |
237 @param editor reference to the editor |
238 @param editor reference to the editor |