67 |
67 |
68 def __initAction(self): |
68 def __initAction(self): |
69 """ |
69 """ |
70 Private method to initialize the action. |
70 Private method to initialize the action. |
71 """ |
71 """ |
72 self.action = E5Action(self.trUtf8('QFileDialog Wizard'), |
72 self.action = E5Action( |
73 self.trUtf8('Q&FileDialog Wizard...'), 0, 0, self, |
73 self.trUtf8('QFileDialog Wizard'), |
74 'wizards_qfiledialog') |
74 self.trUtf8('Q&FileDialog Wizard...'), 0, 0, self, |
|
75 'wizards_qfiledialog') |
75 self.action.setStatusTip(self.trUtf8('QFileDialog Wizard')) |
76 self.action.setStatusTip(self.trUtf8('QFileDialog Wizard')) |
76 self.action.setWhatsThis(self.trUtf8( |
77 self.action.setWhatsThis(self.trUtf8( |
77 """<b>QFileDialog Wizard</b>""" |
78 """<b>QFileDialog Wizard</b>""" |
78 """<p>This wizard opens a dialog for entering all the parameters""" |
79 """<p>This wizard opens a dialog for entering all the parameters""" |
79 """ needed to create a QFileDialog. The generated code is""" |
80 """ needed to create a QFileDialog. The generated code is""" |
117 Private method to handle the wizards action. |
118 Private method to handle the wizards action. |
118 """ |
119 """ |
119 editor = e5App().getObject("ViewManager").activeWindow() |
120 editor = e5App().getObject("ViewManager").activeWindow() |
120 |
121 |
121 if editor == None: |
122 if editor == None: |
122 E5MessageBox.critical(self.__ui, |
123 E5MessageBox.critical( |
|
124 self.__ui, |
123 self.trUtf8('No current editor'), |
125 self.trUtf8('No current editor'), |
124 self.trUtf8('Please open or create a file first.')) |
126 self.trUtf8('Please open or create a file first.')) |
125 else: |
127 else: |
126 code, ok = self.__callForm(editor) |
128 code, ok = self.__callForm(editor) |
127 if ok: |
129 if ok: |