Wizards: Add file extension as text overlay to some wizards

Change-Id: Ibfd1144271c4381c7125db80713cbde431a54cf7
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2017-07-21 16:44:38 +02:00
parent 5a0d7a0abd
commit 9113125a5e
19 changed files with 19 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a C++ header and a source file for a new class that you can add to a C++ project.", "trDescription": "Creates a C++ header and a source file for a new class that you can add to a C++ project.",
"trDisplayName": "C++ Class", "trDisplayName": "C++ Class",
"trDisplayCategory": "C++", "trDisplayCategory": "C++",
"iconText": "h/cpp",
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}",
"options": "options":

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates new Python class file.", "trDescription": "Creates new Python class file.",
"trDisplayName": "Python Class", "trDisplayName": "Python Class",
"trDisplayCategory": "Python", "trDisplayCategory": "Python",
"iconText": "py",
"enabled": "%{JS: [ %{Plugins} ].indexOf('PythonEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('PythonEditor') >= 0}",
"options": "options":

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a Qt Quick Designer UI form along with a matching QML file for implementation purposes. You can add the form and file to an existing Qt Quick Project.", "trDescription": "Creates a Qt Quick Designer UI form along with a matching QML file for implementation purposes. You can add the form and file to an existing Qt Quick Project.",
"trDisplayName": "QtQuick UI File", "trDisplayName": "QtQuick UI File",
"trDisplayCategory": "Qt", "trDisplayCategory": "Qt",
"iconText": "ui.qml",
"featuresRequired": [ "QtSupport.Wizards.FeatureQtQuick.UiFiles" ], "featuresRequired": [ "QtSupport.Wizards.FeatureQtQuick.UiFiles" ],
"enabled": "%{JS: [ %{Plugins} ].indexOf('QmlJSEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('QmlJSEditor') >= 0}",

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a C++ header file that you can add to a C++ project.", "trDescription": "Creates a C++ header file that you can add to a C++ project.",
"trDisplayName": "C++ Header File", "trDisplayName": "C++ Header File",
"trDisplayCategory": "C++", "trDisplayCategory": "C++",
"iconText": "h",
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}",
"options": { "key": "FileName", "value": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++hdr')}')}" }, "options": { "key": "FileName", "value": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++hdr')}')}" },

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a C++ source file that you can add to a C++ project.", "trDescription": "Creates a C++ source file that you can add to a C++ project.",
"trDisplayName": "C++ Source File", "trDisplayName": "C++ Source File",
"trDisplayCategory": "C++", "trDisplayCategory": "C++",
"iconText": "cpp",
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0}",
"options": { "key": "FileName", "value": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++src')}')}" }, "options": { "key": "FileName", "value": "%{JS: Cpp.fileName('%{TargetPath}', '%{JS: Util.preferredSuffix('text/x-c++src')}')}" },

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a Qt Designer form that you can add to a Qt Widget Project. This is useful if you already have an existing class for the UI business logic.", "trDescription": "Creates a Qt Designer form that you can add to a Qt Widget Project. This is useful if you already have an existing class for the UI business logic.",
"trDisplayName": "Qt Designer Form", "trDisplayName": "Qt Designer Form",
"trDisplayCategory": "Qt", "trDisplayCategory": "Qt",
"iconText": "ui",
"enabled": "%{JS: [ %{Plugins} ].indexOf('Designer') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('Designer') >= 0}",
"options": [ "options": [

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a fragment shader in the Desktop OpenGL Shading Language (GLSL). Fragment shaders generate the final pixel colors for triangles, points and lines rendered with OpenGL.", "trDescription": "Creates a fragment shader in the Desktop OpenGL Shading Language (GLSL). Fragment shaders generate the final pixel colors for triangles, points and lines rendered with OpenGL.",
"trDisplayName": "Fragment Shader (Desktop OpenGL)", "trDisplayName": "Fragment Shader (Desktop OpenGL)",
"trDisplayCategory": "GLSL", "trDisplayCategory": "GLSL",
"iconText": "frag",
"platformIndependent": true, "platformIndependent": true,
"enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}",

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a vertex shader in the Desktop OpenGL Shading Language (GLSL). Vertex shaders transform the positions, normals and texture coordinates of triangles, points and lines rendered with OpenGL.", "trDescription": "Creates a vertex shader in the Desktop OpenGL Shading Language (GLSL). Vertex shaders transform the positions, normals and texture coordinates of triangles, points and lines rendered with OpenGL.",
"trDisplayName": "Vertex Shader (Desktop OpenGL)", "trDisplayName": "Vertex Shader (Desktop OpenGL)",
"trDisplayCategory": "GLSL", "trDisplayCategory": "GLSL",
"iconText": "vert",
"platformIndependent": true, "platformIndependent": true,
"enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}",

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a fragment shader in the OpenGL/ES 2.0 Shading Language (GLSL/ES). Fragment shaders generate the final pixel colors for triangles, points and lines rendered with OpenGL.", "trDescription": "Creates a fragment shader in the OpenGL/ES 2.0 Shading Language (GLSL/ES). Fragment shaders generate the final pixel colors for triangles, points and lines rendered with OpenGL.",
"trDisplayName": "Fragment Shader (OpenGL/ES 2.0)", "trDisplayName": "Fragment Shader (OpenGL/ES 2.0)",
"trDisplayCategory": "GLSL", "trDisplayCategory": "GLSL",
"iconText": "fsh",
"platformIndependent": true, "platformIndependent": true,
"enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}",

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a vertex shader in the OpenGL/ES 2.0 Shading Language (GLSL/ES). Vertex shaders transform the positions, normals and texture coordinates of triangles, points and lines rendered with OpenGL.", "trDescription": "Creates a vertex shader in the OpenGL/ES 2.0 Shading Language (GLSL/ES). Vertex shaders transform the positions, normals and texture coordinates of triangles, points and lines rendered with OpenGL.",
"trDisplayName": "Vertex Shader (OpenGL/ES 2.0)", "trDisplayName": "Vertex Shader (OpenGL/ES 2.0)",
"trDisplayCategory": "GLSL", "trDisplayCategory": "GLSL",
"iconText": "vsh",
"platformIndependent": true, "platformIndependent": true,
"enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('GLSLEditor') >= 0}",

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a Java file with boilerplate code.", "trDescription": "Creates a Java file with boilerplate code.",
"trDisplayName": "Java File", "trDisplayName": "Java File",
"trDisplayCategory": "Java", "trDisplayCategory": "Java",
"iconText": "java",
"enabled": "%{JS: [ %{Plugins} ].indexOf('Android') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('Android') >= 0}",
"options": [ { "key": "ClassName", "value": "%{JS: '%{FileName}'.charAt(0).toUpperCase() + '%{FileName}'.substr(1)}" } ], "options": [ { "key": "ClassName", "value": "%{JS: '%{FileName}'.charAt(0).toUpperCase() + '%{FileName}'.substr(1)}" } ],

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a JavaScript file.", "trDescription": "Creates a JavaScript file.",
"trDisplayName": "JS File", "trDisplayName": "JS File",
"trDisplayCategory": "Qt", "trDisplayCategory": "Qt",
"iconText": "js",
"enabled": "%{JS: [ %{Plugins} ].indexOf('QmlJSEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('QmlJSEditor') >= 0}",
"pages" : "pages" :

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a new empty model with an empty diagram.", "trDescription": "Creates a new empty model with an empty diagram.",
"trDisplayName": "Model", "trDisplayName": "Model",
"trDisplayCategory": "Modeling", "trDisplayCategory": "Modeling",
"iconText": "qmodel",
"platformIndependent": true, "platformIndependent": true,
"enabled": "%{JS: [ %{Plugins} ].indexOf('ModelEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('ModelEditor') >= 0}",

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates an empty Python script file using UTF-8 charset.", "trDescription": "Creates an empty Python script file using UTF-8 charset.",
"trDisplayName": "Python File", "trDisplayName": "Python File",
"trDisplayCategory": "Python", "trDisplayCategory": "Python",
"iconText": "py",
"enabled": "%{JS: [ %{Plugins} ].indexOf('PythonEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('PythonEditor') >= 0}",
"pages" : "pages" :

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a Qt Resource file (.qrc).", "trDescription": "Creates a Qt Resource file (.qrc).",
"trDisplayName": "Qt Resource File", "trDisplayName": "Qt Resource File",
"trDisplayCategory": "Qt", "trDisplayCategory": "Qt",
"iconText": "qrc",
"enabled": "%{JS: [ %{Plugins} ].indexOf('ResourceEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('ResourceEditor') >= 0}",
"pages" : "pages" :

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a QML file with boilerplate code, starting with \"import QtQuick 2.0\".", "trDescription": "Creates a QML file with boilerplate code, starting with \"import QtQuick 2.0\".",
"trDisplayName": "QML File (Qt Quick 2)", "trDisplayName": "QML File (Qt Quick 2)",
"trDisplayCategory": "Qt", "trDisplayCategory": "Qt",
"iconText": "qml",
"enabled": "%{JS: [ %{Plugins} ].indexOf('QmlJSEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('QmlJSEditor') >= 0}",
"pages" : "pages" :

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates a new empty state chart.", "trDescription": "Creates a new empty state chart.",
"trDisplayName": "State Chart", "trDisplayName": "State Chart",
"trDisplayCategory": "Modeling", "trDisplayCategory": "Modeling",
"iconText": "scxml",
"platformIndependent": true, "platformIndependent": true,
"enabled": "%{JS: [ %{Plugins} ].indexOf('QtSupport') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('QtSupport') >= 0}",

View File

@@ -6,6 +6,7 @@
"trDescription": "Creates an empty file.", "trDescription": "Creates an empty file.",
"trDisplayName": "Empty File", "trDisplayName": "Empty File",
"trDisplayCategory": "General", "trDisplayCategory": "General",
"iconText": "txt",
"platformIndependent": true, "platformIndependent": true,
"enabled": "%{JS: [ %{Plugins} ].indexOf('TextEditor') >= 0}", "enabled": "%{JS: [ %{Plugins} ].indexOf('TextEditor') >= 0}",

View File

@@ -87,6 +87,7 @@ bool FormEditorPlugin::initialize(const QStringList &arguments, QString *error)
wizard->setCategory(QLatin1String(Core::Constants::WIZARD_CATEGORY_QT)); wizard->setCategory(QLatin1String(Core::Constants::WIZARD_CATEGORY_QT));
wizard->setDisplayCategory(QCoreApplication::translate("Core", Core::Constants::WIZARD_TR_CATEGORY_QT)); wizard->setDisplayCategory(QCoreApplication::translate("Core", Core::Constants::WIZARD_TR_CATEGORY_QT));
wizard->setDisplayName(tr("Qt Designer Form Class")); wizard->setDisplayName(tr("Qt Designer Form Class"));
wizard->setIconText("ui/h");
wizard->setId("C.FormClass"); wizard->setId("C.FormClass");
wizard->setDescription(tr("Creates a Qt Designer form along with a matching class (C++ header and source file) " wizard->setDescription(tr("Creates a Qt Designer form along with a matching class (C++ header and source file) "
"for implementation purposes. You can add the form and class to an existing Qt Widget Project.")); "for implementation purposes. You can add the form and class to an existing Qt Widget Project."));