aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen')
-rw-r--r--share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/main.pyproject3
-rw-r--r--share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/wizard.json114
2 files changed, 0 insertions, 117 deletions
diff --git a/share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/main.pyproject b/share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/main.pyproject
deleted file mode 100644
index 64c2987a8f..0000000000
--- a/share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/main.pyproject
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "files": ["%{SrcFileName}", "form.ui"]
-}
diff --git a/share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/wizard.json b/share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/wizard.json
deleted file mode 100644
index 3bfe3af638..0000000000
--- a/share/qtcreator/templates/wizards/projects/qtforpythonapplication/widget_gen/wizard.json
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "version": 1,
- "supportedProjectTypes": [ "PythonProject" ],
- "id": "F.QtForPythonApplicationWindowWidgetGen",
- "category": "F.ApplicationPySide",
- "trDescription": "Creates a Qt for Python application that includes a Qt Designer-based widget (ui file) - Requires .ui to Python conversion",
- "trDisplayName": "Window UI",
- "trDisplayCategory": "Application (Qt for Python)",
- "icon": "../icons/icon.png",
- "iconKind": "Themed",
- "enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",
-
- "options":
- [
- { "key": "SrcFileName", "value": "%{MainFileName}" },
- { "key": "PyProjectFile", "value": "%{ProjectFileName}" }
- ],
-
- "pages":
- [
- {
- "trDisplayName": "Project Location",
- "trShortTitle": "Location",
- "typeId": "Project",
- "name": "ProjectPath"
- },
- {
- "trDisplayName": "Define Class",
- "trShortTitle": "Details",
- "typeId": "Fields",
- "data" :
- [
- {
- "name": "PySideVersion",
- "trDisplayName": "PySide version:",
- "type": "ComboBox",
- "data":
- {
- "index": 1,
- "items": [ "PySide2", "PySide6" ]
- }
- },
- {
- "name": "Class",
- "trDisplayName": "Class name:",
- "mandatory": true,
- "type": "LineEdit",
- "data":
- {
- "validator": "(?:(?:[a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]*|)",
- "trText": "%{JS: value('BaseCB') ? value('BaseCB').slice(1) : 'MyClass'}"
- }
-
- },
- {
- "name": "BaseCB",
- "trDisplayName": "Base class:",
- "type": "ComboBox",
- "data":
- {
- "items": [ "QWidget", "QDialog", "QMainWindow" ]
- }
- },
- {
- "name": "MainFileName",
- "type": "LineEdit",
- "trDisplayName": "Source file:",
- "mandatory": true,
- "data": { "trText": "%{JS: Cpp.classToFileName(value('Class'), Util.preferredSuffix('text/x-python'))}" }
- },
- {
- "name": "ProjectFileName",
- "type": "LineEdit",
- "trDisplayName": "Project file:",
- "mandatory": true,
- "data": { "trText": "%{JS: Util.fileName('%{ProjectName}', 'pyproject')}" }
- }
- ]
- },
- {
- "trDisplayName": "Project Management",
- "trShortTitle": "Summary",
- "typeId": "Summary"
- }
- ],
- "generators":
- [
- {
- "typeId": "File",
- "data":
- [
- {
- "source": "main.pyproject",
- "target": "%{PyProjectFile}",
- "openAsProject": true
- },
- {
- "source": "../main_widget_gen.py",
- "target": "%{SrcFileName}",
- "openInEditor": true
- },
- {
- "source": "../main_widget.ui",
- "target": "form.ui"
- },
- {
- "source": "../../git.ignore",
- "target": ".gitignore",
- "condition": "%{JS: !value('IsSubproject') && value('VersionControl') === 'G.Git'}"
- }
- ]
- }
- ]
-}