8 """ |
8 """ |
9 |
9 |
10 from PyQt4.QtCore import QObject, SIGNAL |
10 from PyQt4.QtCore import QObject, SIGNAL |
11 from PyQt4.QtGui import QDialog, QMessageBox |
11 from PyQt4.QtGui import QDialog, QMessageBox |
12 |
12 |
13 from E4Gui.E4Application import e4App |
13 from E4Gui.E4Application import e5App |
14 from E4Gui.E4Action import E4Action |
14 from E4Gui.E4Action import E4Action |
15 |
15 |
16 from WizardPlugins.InputDialogWizard.InputDialogWizardDialog import \ |
16 from WizardPlugins.InputDialogWizard.InputDialogWizardDialog import \ |
17 InputDialogWizardDialog |
17 InputDialogWizardDialog |
18 |
18 |
111 |
111 |
112 def __handle(self): |
112 def __handle(self): |
113 """ |
113 """ |
114 Private method to handle the wizards action |
114 Private method to handle the wizards action |
115 """ |
115 """ |
116 editor = e4App().getObject("ViewManager").activeWindow() |
116 editor = e5App().getObject("ViewManager").activeWindow() |
117 |
117 |
118 if editor == None: |
118 if editor == None: |
119 QMessageBox.critical(None, |
119 QMessageBox.critical(None, |
120 self.trUtf8('No current editor'), |
120 self.trUtf8('No current editor'), |
121 self.trUtf8('Please open or create a file first.')) |
121 self.trUtf8('Please open or create a file first.')) |