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
112
113
|
{
"version": 1,
"supportedProjectTypes": [ "CMakeProjectManager.CMakeProject" ],
"id": "Z.Snippet",
"category": "H.Project",
"trDescription": "Creates a CMake-based test project where you can enter a code snippet to compile and check it.",
"trDisplayName": "Code Snippet",
"trDisplayCategory": "Other Project",
"featuresRequired": [ "QtSupport.Wizards.FeatureQt" ],
"enabled": "%{JS: value('Plugins').indexOf('CMakeProjectManager') >= 0}",
"options":
[
{ "key": "ProjectFile", "value": "%{ProjectDirectory}/CMakeLists.txt" },
{ "key": "CppFileName", "value": "%{JS: 'main.' + Util.preferredSuffix('text/x-c++src')}" },
{ "key": "MacOSBundleValue", "value": "%{JS: %{MacOSBundle} ? 'TRUE' : 'FALSE' }" }
],
"pages":
[
{
"trDisplayName": "Project Location",
"trShortTitle": "Location",
"typeId": "Project",
"data":
{
"trDescription": "Creates a CMake-based test project for which a code snippet can be entered."
}
},
{
"trDisplayName": "Define Code snippet",
"trShortTitle": "Code snippet",
"typeId": "Fields",
"data":
[
{
"name": "CodeSnippet",
"trDisplayName": "Code:",
"type": "TextEdit",
"data":
{
"trText": "int main(int argc, char *argv[])\n{\n return 0;\n}"
}
},
{
"name": "QtModule",
"trDisplayName": "Use Qt Modules:",
"type": "ComboBox",
"persistenceKey": "QtModule",
"data":
{
"index": 1,
"items":
[
{
"trKey": "QtCore",
"value": "Core"
},
{
"trKey": "QtCore, QtWidgets",
"value": "Widgets"
}
]
}
},
{
"name": "MacOSBundle",
"trDisplayName": "Application bundle (macOS)",
"type": "CheckBox",
"persistenceKey": "MacOSBundle",
"data":
{
"checked": true
}
}
]
},
{
"trDisplayName": "Kit Selection",
"trShortTitle": "Kits",
"typeId": "Kits",
"enabled": "%{JS: !value('IsSubproject')}",
"data":
{
"projectFilePath": "%{ProjectFile}"
}
},
{
"trDisplayName": "Project Management",
"trShortTitle": "Summary",
"typeId": "Summary"
}
],
"generators":
[
{
"typeId": "File",
"data":
[
{
"source": "CMakeLists.txt",
"target": "%{ProjectFile}",
"openAsProject": true
},
{
"source": "main.cpp",
"target": "%{CppFileName}",
"openInEditor": true
}
]
}
]
}
|