10 import os |
10 import os |
11 |
11 |
12 from PyQt6.QtCore import QObject |
12 from PyQt6.QtCore import QObject |
13 from PyQt6.QtWidgets import QDialog |
13 from PyQt6.QtWidgets import QDialog |
14 |
14 |
15 from EricWidgets.EricApplication import ericApp |
15 from eric7.EricWidgets.EricApplication import ericApp |
16 from EricGui.EricAction import EricAction |
16 from eric7.EricGui.EricAction import EricAction |
17 from EricWidgets import EricMessageBox |
17 from eric7.EricWidgets import EricMessageBox |
18 |
18 |
19 import UI.Info |
19 from eric7.UI import Info |
20 |
20 |
21 # Start-of-Header |
21 # Start-of-Header |
22 name = "eric plug-in Wizard Plug-in" |
22 name = "eric plug-in Wizard Plug-in" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
23 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
24 autoactivate = True |
24 autoactivate = True |
25 deactivateable = True |
25 deactivateable = True |
26 version = UI.Info.VersionOnly |
26 version = Info.VersionOnly |
27 className = "WizardEricPluginWizard" |
27 className = "WizardEricPluginWizard" |
28 packageName = "__core__" |
28 packageName = "__core__" |
29 shortDescription = "Wizard for the creation of an eric plug-in file." |
29 shortDescription = "Wizard for the creation of an eric plug-in file." |
30 longDescription = ( |
30 longDescription = ( |
31 """This plug-in implements a wizard to generate code for""" |
31 """This plug-in implements a wizard to generate code for""" |
119 |
119 |
120 @param editor reference to the current editor |
120 @param editor reference to the current editor |
121 @return generated code (string), the plug-in package name (string) |
121 @return generated code (string), the plug-in package name (string) |
122 and a flag indicating success (boolean) |
122 and a flag indicating success (boolean) |
123 """ |
123 """ |
124 from WizardPlugins.EricPluginWizard.PluginWizardDialog import PluginWizardDialog |
124 from eric7.Plugins.WizardPlugins.EricPluginWizard.PluginWizardDialog import ( |
|
125 PluginWizardDialog, |
|
126 ) |
125 |
127 |
126 dlg = PluginWizardDialog(None) |
128 dlg = PluginWizardDialog(None) |
127 if dlg.exec() == QDialog.DialogCode.Accepted: |
129 if dlg.exec() == QDialog.DialogCode.Accepted: |
128 return (dlg.getCode(), dlg.packageName(), True) |
130 return (dlg.getCode(), dlg.packageName(), True) |
129 else: |
131 else: |