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