wizard.json 6.86 KB
Newer Older
1
2
{
    "version": 1,
3
    "supportedProjectTypes": [ "Qt4ProjectManager.Qt4Project" ],
4
    "id": "V.QtQuickControlsApplication",
5
6
7
8
    "category": "F.Application",
    "trDescription": "Creates a deployable Qt Quick 2 application using Qt Quick Controls.",
    "trDisplayName": "Qt Quick Controls Application",
    "trDisplayCategory": "Application",
9
    "icon": "../qtquickapplication/qml_wizard.png",
10
11
    "featuresRequired": [ "QtSupport.Wizards.FeatureQt.5.3" ],
    "enabled": "%{JS: [ %{Plugins} ].indexOf('QmakeProjectManager') >= 0}",
12
13
14
15
16
17
18
19

    "options":
    [
        { "key": "ProFileName", "value": "%{JS: Util.fileName('%{ProjectDirectory}/%{ProjectName}', 'pro')}" },
        { "key": "MainCppFileName", "value": "%{JS: 'main.' + Util.preferredSuffix('text/x-c++src')}" },
        { "key": "QtQuickVersion", "value": "%{JS: %{QtVersion}.qtQuickVersion}" },
        { "key": "QtQuickControlsVersion", "value": "%{JS: %{QtVersion}.qtQuickControlsVersion}" },
        { "key": "QtQuickDialogsVersion", "value": "%{JS: %{QtVersion}.qtQuickDialogsVersion}" },
20
        { "key": "QtQuickLayoutsVersion", "value": "%{JS: %{QtVersion}.qtQuickLayoutsVersion}" },
21
22
23
        { "key": "QtQuickFeature", "value": "QtSupport.Wizards.FeatureQtQuick.%{QtQuickVersion}" },
        { "key": "UiSupport", "value": "%{JS: '%{QtQuickVersion}' !== '2.3' }" },
        { "key": "IsUiFileInUse", "value": "%{JS: %{UiSupport} && %{QmlUiSplit} }" }
24
25
26
27
28
29
30
    ],

    "pages":
    [
        {
            "trDisplayName": "Project Location",
            "trShortTitle": "Location",
31
            "typeId": "Project"
32
33
34
35
36
37
38
39
40
41
42
43
44
        },
        {
            "trDisplayName": "Define Project Details",
            "trShortTitle": "Details",
            "typeId": "Fields",
            "data":
            [
                {
                    "name": "QtVersion",
                    "trDisplayName": "Minimal required Qt version:",
                    "type": "ComboBox",
                    "data":
                    {
45
                        "index": 2,
46
47
                        "items":
                        [
48
49
50
51
52
53
54
55
56
57
                            {
                                "trKey": "Qt 5.7",
                                "value":
                                "{
                                    'qtQuickVersion': '2.7',
                                    'qtQuickControlsVersion': '1.5',
                                    'qtQuickDialogsVersion': '1.2',
                                    'qtQuickLayoutsVersion': '1.3'
                                }"
                            },
58
59
60
61
62
63
64
65
66
67
                            {
                                "trKey": "Qt 5.6",
                                "value":
                                "{
                                    'qtQuickVersion': '2.6',
                                    'qtQuickControlsVersion': '1.5',
                                    'qtQuickDialogsVersion': '1.2',
                                    'qtQuickLayoutsVersion': '1.3'
                                }"
                            },
68
69
70
71
72
                            {
                                "trKey": "Qt 5.5",
                                "value":
                                "{
                                    'qtQuickVersion': '2.5',
73
                                    'qtQuickControlsVersion': '1.4',
74
75
                                    'qtQuickDialogsVersion': '1.2',
                                    'qtQuickLayoutsVersion': '1.2'
76
                                }"
77
78
79
80
81
82
                            },
                            {
                                "trKey": "Qt 5.4",
                                "value":
                                "{
                                    'qtQuickVersion': '2.4',
83
                                    'qtQuickControlsVersion': '1.3',
84
85
                                    'qtQuickDialogsVersion': '1.2',
                                    'qtQuickLayoutsVersion': '1.1'
86
                                }"
87
88
89
90
91
92
93
94
95
                            },
                            {
                                "trKey": "Qt 5.3",
                                "value":
                                "{
                                    'qtQuickVersion': '2.3',
                                    'qtQuickControlsVersion': '1.2',
                                    'qtQuickDialogsVersion': '1.2',
                                    'qtQuickLayoutsVersion': '1.1'
96
                                }"
97
98
99
100
101
                            }
                        ]
                    }
                },
                {
102
                    "name": "QmlUiSplit",
103
104
                    "trDisplayName": "With ui.qml file",
                    "type": "CheckBox",
105
                    "visible": "%{UiSupport}",
106
107
108
109
                    "data":
                    {
                        "checked": true
                    }
110
111
112
113
114
115
116
117
118
                },
                {
                    "name": "UseQApplication",
                    "trDisplayName": "Enable native styling. Requires dependency on the QtWidgets module.",
                    "type": "CheckBox",
                    "data":
                    {
                        "checked": true
                    }
119
120
121
122
123
124
125
                }
            ]
        },
        {
            "trDisplayName": "Kit Selection",
            "trShortTitle": "Kits",
            "typeId": "Kits",
126
127
            "data": {
                "projectFilePath": "%{ProFileName}",
128
                "requiredFeatures": [ "QtSupport.Wizards.FeatureQt", "%{QtQuickFeature}" ]
129
            }
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators":
    [
        {
            "typeId": "File",
            "data":
            [
                {
                    "source": "app.pro",
                    "target": "%{ProFileName}",
                    "openAsProject": true
                },
                {
                    "source": "main.cpp",
                    "target": "%{MainCppFileName}"
                },
                {
153
154
                    "source": "main.qml.tpl",
                    "target": "main.qml",
155
156
157
                    "openInEditor": true
                },
                {
158
159
                    "source": "MainForm.ui.qml.tpl",
                    "target": "MainForm.ui.qml",
160
                    "condition": "%{IsUiFileInUse}"
161
162
163
164
165
166
167
168
169
                },
                {
                    "source": "qml.qrc"
                },
                {
                    "source": "../../../../shared/qrcdeployment.pri",
                    "target": "%{ProjectDirectory}/deployment.pri"
                },
                {
170
                    "source": "../../git.ignore",
171
172
173
174
175
176
177
                    "target": "%{ProjectDirectory}/.gitignore",
                    "condition": "%{JS: !%{IsSubproject} && '%{VersionControl}' === 'G.Git'}"
                }
            ]
        }
    ]
}