Warning, /pim/kdepim-addons/kmail/editorconvertertextplugins/qtcreator-template/kmaileditorconvertertextplugins/wizard.json is written in an unsupported language. File is not indexed.

0001 {
0002     "version": 1,
0003     "supportedProjectTypes": [ "CMakeProjectManager.CMakeProject" ],
0004     "id": "K.KMailEditorConverterTextPlugin",
0005     "category": "K.PIM",
0006     "trDescription": "Create a KMail Editor Converter Text Plugin.",
0007     "trDisplayName": "KMail Editor Converter Text Plugin",
0008     "trDisplayCategory": "KMail Plugin",
0009     "enabled": "%{JS: [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0}",
0010 
0011     "options":
0012         [
0013         { "key": "ProjectFile", "value": "%{JS: '%{CMakeFile}'}" },
0014         { "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
0015         { "key": "JsonFileName", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectNameLower}editorplugin', 'json')}" },
0016         { "key": "CppPluginEditor", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectNameLower}plugineditor.cpp')}" },
0017         { "key": "CN", "value": "%{JS: '%{ProjectName}'.charAt(0).toUpperCase() + '%{ProjectName}'.substr(1)}" },
0018         { "key": "ProjectNameLower", "value": "%{JS: '%{ProjectName}'.toLowerCase() }" },
0019         { "key": "ProjectNameUpper", "value": "%{JS: '%{ProjectName}'.toUpperCase()}" },
0020         { "key": "HeaderPluginEditor", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectNameLower}plugineditor.h')}" },
0021         { "key": "CppPluginEditorInterface", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectNameLower}plugineditorinterface.cpp')}" },
0022         { "key": "HeaderPluginEditorInterface", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectNameLower}plugineditorinterface.h')}" }
0023     ],
0024 
0025     "pages":
0026         [
0027         {
0028             "trDisplayName": "Project Location",
0029             "trShortTitle": "Location",
0030             "typeId": "Project",
0031             "data": { "trDescription": "This wizard creates a KMail editor converter text plugin." }
0032         },
0033         {
0034             "trDisplayName": "Define Project Details",
0035             "trShortTitle": "Details",
0036             "typeId": "Fields",
0037             "data" :
0038                 [
0039                 {
0040                     "name": "PluginName",
0041                     "trDisplayName": "Name:",
0042                     "mandatory": true,
0043                     "type": "LineEdit"
0044                 },
0045                 {
0046                     "name": "PluginDescription",
0047                     "trDisplayName": "Description:",
0048                     "mandatory": true,
0049                     "type": "LineEdit"
0050                 },
0051                 {
0052                     "name": "DebugCategoryName",
0053                     "trDisplayName": "Debug Category Name:",
0054                     "mandatory": true,
0055                     "type": "LineEdit",
0056                     "data": { "validator": "(?:(?:[a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]*|)" }
0057                 },
0058                 {
0059                     "name": "DebugIdentifierName",
0060                     "trDisplayName": "Debug Identifier Name:",
0061                     "mandatory": true,
0062                     "type": "LineEdit",
0063                     "data": { "validator": "(?:(?:[a-zA-Z_][a-zA-Z_0-9]*::)*[a-zA-Z_][a-zA-Z_0-9]*|)" }
0064                 }
0065             ]
0066         },
0067         {
0068             "trDisplayName": "Kit Selection",
0069             "trShortTitle": "Kits",
0070             "typeId": "Kits",
0071             "enabled": "%{JS: ! %{IsSubproject}}",
0072             "data": { "projectFilePath": "%{ProjectFile}" }
0073         },
0074 
0075         {
0076             "trDisplayName": "Project Management",
0077             "trShortTitle": "Summary",
0078             "typeId": "Summary"
0079         }
0080     ],
0081     "generators":
0082         [
0083         {
0084             "typeId": "File",
0085             "data":
0086                 [
0087                 {
0088                     "source": "CMakeLists.txt",
0089                     "openAsProject": true,
0090                     "condition": "true"
0091                 },
0092                 {
0093                     "source": "plugineditor.cpp",
0094                     "target": "%{CppPluginEditor}",
0095                     "openInEditor": true
0096                 },
0097                 {
0098                     "source": "plugineditor.h",
0099                     "target": "%{HeaderPluginEditor}",
0100                     "openInEditor": true
0101                 },
0102                 {
0103                     "source": "plugineditorinterface.cpp",
0104                     "target": "%{CppPluginEditorInterface}",
0105                     "openInEditor": true
0106                 },
0107                 {
0108                     "source": "plugineditorinterface.h",
0109                     "target": "%{HeaderPluginEditorInterface}",
0110                     "openInEditor": true
0111                 },
0112                 {
0113                     "source": "plugin.json.impl",
0114                     "target": "%{JsonFileName}",
0115                     "openInEditor": false
0116                 }
0117             ]
0118         }
0119     ]
0120 }