"Fossies" - the Fresh Open Source Software Archive

Member "qt-creator-opensource-src-4.15.1/share/qtcreator/templates/wizards/projects/qtquickapplication/stack/wizard.json" (8 Jun 2021, 15007 Bytes) of package /linux/misc/qt-creator-opensource-src-4.15.1.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "wizard.json": opensource-src-4.15.0_vs_opensource-src-4.15.1.

    1 {
    2     "version": 1,
    3     "supportedProjectTypes": [ "CMakeProjectManager.CMakeProject", "Qbs.QbsProject", "Qt4ProjectManager.Qt4Project" ],
    4     "id": "V.QtQuickApplicationStack",
    5     "category": "E.ApplicationQtQuick",
    6     "trDescription": "Creates a Qt Quick Controls application with a StackView to display content, and a Drawer and ToolBar for navigation.",
    7     "trDisplayName": "Qt Quick Application - Stack",
    8     "trDisplayCategory": "Application (Qt Quick)",
    9     "icon": "icon.png",
   10     "featuresRequired": [ "QtSupport.Wizards.FeatureQt.5.7" ],
   11     "enabled": "%{JS: value('Plugins').indexOf('QmakeProjectManager') >= 0 || value('Plugins').indexOf('QbsProjectManager') >= 0 || value('Plugins').indexOf('CMakeProjectManager') >= 0}",
   12 
   13     "options":
   14     [
   15         { "key": "ProjectFile", "value": "%{JS: value('BuildSystem') === 'qmake' ? value('ProFile') : (value('BuildSystem') === 'cmake' ? value('CMakeFile') : value('QbsFile'))}" },
   16         { "key": "ProFile", "value": "%{JS: Util.fileName(value('ProjectDirectory') + '/' + value('ProjectName'), 'pro')}" },
   17         { "key": "QbsFile", "value": "%{JS: Util.fileName(value('ProjectDirectory') + '/' + value('ProjectName'), 'qbs')}" },
   18         { "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
   19         { "key": "MainCppFileName", "value": "%{JS: 'main.' + Util.preferredSuffix('text/x-c++src')}" },
   20         { "key": "QtQuickVersion", "value": "%{JS: value('QtVersion').QtQuickVersion}" },
   21         { "key": "QtQuickControlsVersion", "value": "%{JS: value('QtVersion').QtQuickControlsVersion}" },
   22         { "key": "QtQuickVirtualKeyboardImport", "value": "%{JS: value('QtVersion').QtQuickVirtualKeyboardImport}" },
   23         { "key": "QtQuickControlsStyle", "value": "%{JS: value('ControlsStyle').QtQuickControlsStyle}" },
   24         { "key": "QtQuickControlsStyleTheme", "value": "%{JS: value('ControlsStyle').QtQuickControlsStyleTheme}" },
   25         { "key": "QtQuickFeature", "value": "QtSupport.Wizards.FeatureQtQuick.%{QtQuickVersion}" },
   26         { "key": "UseVirtualKeyboardByDefault", "value": "%{JS: value('Plugins').indexOf('Boot2Qt') >= 0 || value('Plugins').indexOf('Boot2QtQdb') >= 0}" },
   27         { "key": "HasTranslation", "value": "%{JS: value('TsFileName') !== ''}" },
   28         { "key": "SetQPAPhysicalSize", "value": "%{UseVirtualKeyboardByDefault}" }
   29     ],
   30 
   31     "pages":
   32     [
   33         {
   34             "trDisplayName": "Project Location",
   35             "trShortTitle": "Location",
   36             "typeId": "Project"
   37         },
   38         {
   39             "trDisplayName": "Define Build System",
   40             "trShortTitle": "Build System",
   41             "typeId": "Fields",
   42             "enabled": "%{JS: !value('IsSubproject')}",
   43             "data":
   44             [
   45                 {
   46                     "name": "BuildSystem",
   47                     "trDisplayName": "Build system:",
   48                     "type": "ComboBox",
   49                     "persistenceKey": "BuildSystemType",
   50                     "data":
   51                     {
   52                         "index": 0,
   53                         "items":
   54                         [
   55                             {
   56                                 "trKey": "qmake",
   57                                 "value": "qmake",
   58                                 "condition": "%{JS: value('Plugins').indexOf('QmakeProjectManager') >= 0}"
   59                             },
   60                             {
   61                                 "trKey": "CMake",
   62                                 "value": "cmake",
   63                                 "condition": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}"
   64                             },
   65                             {
   66                                 "trKey": "Qbs",
   67                                 "value": "qbs",
   68                                 "condition": "%{JS: value('Plugins').indexOf('QbsProjectManager') >= 0}"
   69                             }
   70                         ]
   71                     }
   72                 }
   73             ]
   74         },
   75         {
   76             "trDisplayName": "Define Project Details",
   77             "trShortTitle": "Details",
   78             "typeId": "Fields",
   79             "data":
   80             [
   81                 {
   82                     "name": "QtVersion",
   83                     "trDisplayName": "Minimal required Qt version:",
   84                     "type": "ComboBox",
   85                     "persistenceKey": "QtQuick.minimumQtVersion",
   86                     "data":
   87                     {
   88                         "index": 3,
   89                         "items":
   90                         [
   91                             {
   92                                 "trKey": "Qt 5.15",
   93                                 "value":
   94                                 {
   95                                     "QtQuickVersion": "2.15",
   96                                     "QtQuickControlsVersion": "2.15",
   97                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.15"
   98                                 }
   99                             },
  100                             {
  101                                 "trKey": "Qt 5.14",
  102                                 "value":
  103                                 {
  104                                     "QtQuickVersion": "2.14",
  105                                     "QtQuickControlsVersion": "2.14",
  106                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.14"
  107                                 }
  108                             },
  109                             {
  110                                 "trKey": "Qt 5.13",
  111                                 "value":
  112                                 {
  113                                     "QtQuickVersion": "2.13",
  114                                     "QtQuickControlsVersion": "2.13",
  115                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.4"
  116                                 }
  117                             },
  118                             {
  119                                 "trKey": "Qt 5.12",
  120                                 "value":
  121                                 {
  122                                     "QtQuickVersion": "2.12",
  123                                     "QtQuickControlsVersion": "2.5",
  124                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.4"
  125                                 }
  126                             },
  127                             {
  128                                 "trKey": "Qt 5.11",
  129                                 "value":
  130                                 {
  131                                     "QtQuickVersion": "2.11",
  132                                     "QtQuickControlsVersion": "2.4",
  133                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.3"
  134                                 }
  135                             },
  136                             {
  137                                 "trKey": "Qt 5.10",
  138                                 "value":
  139                                 {
  140                                     "QtQuickVersion": "2.10",
  141                                     "QtQuickControlsVersion": "2.3",
  142                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.3"
  143                                 }
  144                             },
  145                             {
  146                                 "trKey": "Qt 5.9",
  147                                 "value":
  148                                 {
  149                                     "QtQuickVersion": "2.9",
  150                                     "QtQuickControlsVersion": "2.2",
  151                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.2"
  152                                 }
  153                             },
  154                             {
  155                                 "trKey": "Qt 5.8",
  156                                 "value":
  157                                 {
  158                                     "QtQuickVersion": "2.8",
  159                                     "QtQuickControlsVersion": "2.1",
  160                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.1"
  161                                 }
  162                             },
  163                             {
  164                                 "trKey": "Qt 5.7",
  165                                 "value":
  166                                 {
  167                                     "QtQuickVersion": "2.7",
  168                                     "QtQuickControlsVersion": "2.0",
  169                                     "QtQuickVirtualKeyboardImport": "QtQuick.VirtualKeyboard 2.1"
  170                                 }
  171                             }
  172                         ]
  173                     }
  174                 },
  175                 {
  176                     "name": "ControlsStyle",
  177                     "trDisplayName": "Qt Quick Controls Style:",
  178                     "type": "ComboBox",
  179                     "data":
  180                     {
  181                         "index": 0,
  182                         "items":
  183                         [
  184                             {
  185                                 "trKey": "Material Light",
  186                                 "value":
  187                                 {
  188                                     "QtQuickControlsStyle": "Material",
  189                                     "QtQuickControlsStyleTheme": "Light"
  190                                 }
  191                             },
  192                             {
  193                                 "trKey": "Material Dark",
  194                                 "value":
  195                                 {
  196                                     "QtQuickControlsStyle": "Material",
  197                                     "QtQuickControlsStyleTheme": "Dark"
  198                                 }
  199                             },
  200                             {
  201                                 "trKey": "Universal Light",
  202                                 "value":
  203                                 {
  204                                     "QtQuickControlsStyle": "Universal",
  205                                     "QtQuickControlsStyleTheme": "Light"
  206                                 }
  207                             },
  208                             {
  209                                 "trKey": "Universal Dark",
  210                                 "value":
  211                                 {
  212                                     "QtQuickControlsStyle": "Universal",
  213                                     "QtQuickControlsStyleTheme": "Dark"
  214                                 }
  215                             },
  216                             {
  217                                 "trKey": "Universal System",
  218                                 "value":
  219                                 {
  220                                     "QtQuickControlsStyle": "Universal",
  221                                     "QtQuickControlsStyleTheme": "System"
  222                                 }
  223                             },
  224                             {
  225                                 "trKey": "Fusion (Qt 5.10+)",
  226                                 "value":
  227                                 {
  228                                     "QtQuickControlsStyle": "Fusion",
  229                                     "QtQuickControlsStyleTheme": ""
  230                                 }
  231                             },
  232                             {
  233                                 "trKey": "Imagine (Qt 5.10+)",
  234                                 "value":
  235                                 {
  236                                     "QtQuickControlsStyle": "Imagine",
  237                                     "QtQuickControlsStyleTheme": ""
  238                                 }
  239                             }
  240                         ]
  241                     }
  242                 },
  243                 {
  244                     "name": "UseVirtualKeyboard",
  245                     "trDisplayName": "Use Qt Virtual Keyboard",
  246                     "type": "CheckBox",
  247                     "persistenceKey": "QtQuick.UseVirtualKeyboard.%{UseVirtualKeyboardByDefault}",
  248                     "data":
  249                     {
  250                         "checked": "%{UseVirtualKeyboardByDefault}"
  251                     }
  252                 }
  253             ]
  254         },
  255         {
  256             "trDisplayName": "Translation File",
  257             "trShortTitle": "Translation",
  258             "typeId": "QtTranslation"
  259         },
  260         {
  261             "trDisplayName": "Kit Selection",
  262             "trShortTitle": "Kits",
  263             "typeId": "Kits",
  264             "enabled": "%{JS: !value('IsSubproject')}",
  265             "data": {
  266                 "projectFilePath": "%{ProjectFile}",
  267                 "requiredFeatures": [ "QtSupport.Wizards.FeatureQt", "%{QtQuickFeature}" ]
  268             }
  269         },
  270         {
  271             "trDisplayName": "Project Management",
  272             "trShortTitle": "Summary",
  273             "typeId": "Summary"
  274         }
  275     ],
  276     "generators":
  277     [
  278         {
  279             "typeId": "File",
  280             "data":
  281             [
  282                 {
  283                     "source": "../app.pro",
  284                     "target": "%{ProFile}",
  285                     "openAsProject": true,
  286                     "condition": "%{JS: value('BuildSystem') === 'qmake'}"
  287                 },
  288                 {
  289                     "source": "../CMakeLists.txt",
  290                     "target": "CMakeLists.txt",
  291                     "openAsProject": true,
  292                     "condition": "%{JS: value('BuildSystem') === 'cmake'}"
  293                 },
  294                 {
  295                     "source": "../app.qbs",
  296                     "target": "%{QbsFile}",
  297                     "openAsProject": true,
  298                     "condition": "%{JS: value('BuildSystem') === 'qbs'}"
  299                 },
  300                 {
  301                     "source": "../main.cpp",
  302                     "target": "%{MainCppFileName}"
  303                 },
  304                 {
  305                     "source": "main.qml.tpl",
  306                     "target": "main.qml",
  307                     "openInEditor": true
  308                 },
  309                 {
  310                     "source": "HomeForm.ui.qml.tpl",
  311                     "target": "HomeForm.ui.qml"
  312                 },
  313                 {
  314                     "source": "Page1Form.ui.qml.tpl",
  315                     "target": "Page1Form.ui.qml"
  316                 },
  317                 {
  318                     "source": "Page2Form.ui.qml.tpl",
  319                     "target": "Page2Form.ui.qml"
  320                 },
  321                 {
  322                     "source": "../qtquickcontrols2.conf",
  323                     "target": "qtquickcontrols2.conf"
  324                 },
  325                 {
  326                     "source": "qml.qrc"
  327                 },
  328                 {
  329                     "source": "../../translation.ts",
  330                     "target": "%{TsFileName}",
  331                     "condition": "%{HasTranslation}"
  332                 },
  333                 {
  334                     "source": "../../git.ignore",
  335                     "target": ".gitignore",
  336                     "condition": "%{JS: !value('IsSubproject') && value('VersionControl') === 'G.Git'}"
  337                 }
  338             ]
  339         }
  340     ]
  341 }