1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
{
"version": 1,
"supportedProjectTypes": [ "CMakeProjectManager.CMakeProject" ],
"id": "M.McuSupportApplication",
"category": "D.ApplicationMCU",
"trDescription": "Suitable for Qt for MCUs versions 2.4 and later. Creates a Qt for MCUs application with a simple UI, based on qmlproject.",
"trDisplayName": "Qt for MCUs Application",
"trDisplayCategory": "QmlProject Application (Qt for MCUs)",
"icon": "../icon.png",
"iconKind": "Themed",
"enabled": true,
"options":
[
{ "key": "CorrectedProjectName", "value": "%{JS: '%{ProjectName}'.replace(/-/g, '_')}"},
{ "key": "MainQmlFile", "value": "%{CorrectedProjectName}.qml" },
{ "key": "QmlProjectFile", "value": "%{CorrectedProjectName}.qmlproject" },
{ "key": "RootItemName", "value": "%{CorrectedProjectName}" },
{ "key": "CMakeFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
{ "key": "ModuleFile", "value": "CustomModule.qmlproject"},
{ "key": "QmlComponent", "value": "CustomButton.qml"},
{ "key": "InterfaceFile", "value": "BackendObject.h"},
{ "key": "TsFile", "value": "%{CorrectedProjectName}.nb_NO.ts"}
],
"pages":
[
{
"trDisplayName": "Project Location",
"trShortTitle": "Location",
"typeId": "Project"
},
{
"trDisplayName": "Kit Selection",
"trShortTitle": "Kits",
"typeId": "Kits",
"enabled": "%{JS: !value('IsSubproject')}",
"data": {
"projectFilePath": "%{CMakeFile}"
}
},
{
"trDisplayName": "Project Management",
"trShortTitle": "Summary",
"typeId": "Summary"
}
],
"generators":
[
{
"typeId": "File",
"data":
[
{
"source": "CMakeLists.txt",
"openAsProject": true
},
{
"source": "BackendObject.h",
"target": "%{ProjectDirectory}/src/%{InterfaceFile}",
"openInEditor": true
},
{
"source": "component.qml.tpl",
"target": "%{ProjectDirectory}/imports/CustomModule/%{QmlComponent}",
"openInEditor": true
},
{
"source": "module.qmlproject.tpl",
"target": "%{ProjectDirectory}/imports/CustomModule/%{ModuleFile}",
"openInEditor": true
},
{
"source": "project.qmlproject.tpl",
"target": "%{ProjectDirectory}/%{QmlProjectFile}",
"openInEditor": true
},
{
"source": "main.qml.tpl",
"target": "%{ProjectDirectory}/%{MainQmlFile}",
"openInEditor": true
},
{
"source": "../icon.png",
"target": "%{ProjectDirectory}/images/icon.png",
"isBinary": true
},
{
"source": "DejaVuSansMono.ttf",
"target": "%{ProjectDirectory}/fonts/DejaVuSansMono.ttf",
"isBinary": true
},
{
"source": "LICENSE",
"target": "%{ProjectDirectory}/fonts/LICENSE",
"isBinary": true
},
{
"source": "translation.nb_NO.ts",
"target": "%{ProjectDirectory}/translations/%{TsFile}",
"openInEditor": false
},
{
"source": "%{IDE:ResourcePath}/templates/wizards/projects/git.ignore",
"target": ".gitignore",
"condition": "%{JS: !value('IsSubproject') && value('VersionControl') === 'G.Git'}"
}
]
}
]
}
|