24 deactivateable = True |
24 deactivateable = True |
25 version = UI.Info.VersionOnly |
25 version = UI.Info.VersionOnly |
26 className = "DotDesktopWizard" |
26 className = "DotDesktopWizard" |
27 packageName = "__core__" |
27 packageName = "__core__" |
28 shortDescription = "Wizard for the creation of a .desktop file." |
28 shortDescription = "Wizard for the creation of a .desktop file." |
29 longDescription = \ |
29 longDescription = ( |
30 """This plug-in implements a wizard to generate code for""" \ |
30 """This plug-in implements a wizard to generate code for""" |
31 """ a .desktop file.""" |
31 """ a .desktop file.""" |
|
32 ) |
32 needsRestart = False |
33 needsRestart = False |
33 pyqtApi = 2 |
34 pyqtApi = 2 |
34 # End-of-Header |
35 # End-of-Header |
35 |
36 |
36 error = "" |
37 error = "" |
126 icon=E5MessageBox.Critical) |
127 icon=E5MessageBox.Critical) |
127 if not ok: |
128 if not ok: |
128 e5App().getObject("ViewManager").newEditor() |
129 e5App().getObject("ViewManager").newEditor() |
129 editor = e5App().getObject("ViewManager").activeWindow() |
130 editor = e5App().getObject("ViewManager").activeWindow() |
130 |
131 |
131 from WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog import \ |
132 from WizardPlugins.DotDesktopWizard.DotDesktopWizardDialog import ( |
132 DotDesktopWizardDialog |
133 DotDesktopWizardDialog |
|
134 ) |
133 dlg = DotDesktopWizardDialog(None) |
135 dlg = DotDesktopWizardDialog(None) |
134 if dlg.exec_() == QDialog.Accepted: |
136 if dlg.exec_() == QDialog.Accepted: |
135 code = dlg.getCode() |
137 code = dlg.getCode() |
136 if code: |
138 if code: |
137 editor.selectAll() |
139 editor.selectAll() |