-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwizard.json
173 lines (173 loc) · 6.28 KB
/
wizard.json
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"version": 1,
"supportedProjectTypes": [ "CMakeProjectManager.CMakeProject" ],
"id": "An rqt plugin",
"category": "I.Projects",
"trDescription": "Creates a simple C++ rqt plugin project which will contain an empty QWidget.",
"trDisplayName": "rqt plugin",
"trDisplayCategory": "Non-Qt Project",
"icon": "ros_icon.png",
"enabled": "%{JS: [ %{Plugins} ].indexOf('CppEditor') >= 0 && ([ %{Plugins} ].indexOf('QmakeProjectManager') >= 0 || [ %{Plugins} ].indexOf('QbsProjectManager') >= 0 || [ %{Plugins} ].indexOf('CMakeProjectManager') >= 0)}",
"options":
[
{ "key": "TargetPath", "value": "%{Path}" },
{ "key": "Plugin", "value": "%{PluginName}" },
{ "key": "License", "value": "%{LicenseEdit}" },
{ "key": "CN", "value": "%{ClassName}" },
{ "key": "FN", "value": "%{FriendlyName}" },
{ "key": "GUARD", "value": "%{JS: Cpp.headerGuard('%{PluginName}')}" }
],
"pages":
[
{
"trDisplayName": "Project Location",
"trShortTitle": "Location",
"typeId": "Project"
},
{
"trDisplayName": "Plugin Information",
"trShortTitle": "Plugin info",
"typeId": "Fields",
"data": [
{
"name": "PluginName",
"trDisplayName": "Plugin name:",
"mandatory": true,
"type": "LineEdit",
"data": {
"trPlaceholder": "Must start with rqt_ and could contain only lower case letters, numbers and _",
"trText": "rqt_test_plugin",
"validator": "rqt_[a-z][a-z_0-9]*"
}
},
{
"name": "ClassName",
"trDisplayName": "Class name:",
"mandatory": true,
"type": "LineEdit",
"data": {
"trPlaceholder": "Name of the main class of the plugin",
"validator": "[a-zA-Z][a-zA-Z0-9_]*",
"trText": "TestPlugin"
}
},
{
"name": "FriendlyName",
"trDisplayName": "Friendly name:",
"mandatory": true,
"type": "LineEdit",
"data": {
"trPlaceholder": "This will appear in the rqt menu for e.g.",
"validator": "^(?!\s*$).+",
"trText": "Test plugin"
}
},
{
"name": "MaintainerName",
"trDisplayName": "Maintainer name:",
"mandatory": true,
"type": "LineEdit",
"data": {
"trText": "Jane Doe",
"validator": "^(?!\s*$).+"
}
},
{
"name": "MaintainerEmail",
"trDisplayName": "Maintainer e-mail address:",
"mandatory": true,
"type": "LineEdit",
"data": {
"validator": "([^@]+@[^\.]+\..+)",
"trText": "[email protected]"
}
},
{
"name": "LicenseEdit",
"trDisplayName": "License:",
"mandatory": true,
"type": "LineEdit",
"data": {
"trPlaceholder": "Commonly used license strings: BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3...",
"validator": "^(?!\s*$).+",
"trText": "LGPLv3"
}
},
{
"name": "Group",
"trDisplayName": "Plugin group:",
"mandatory": true,
"type": "LineEdit",
"data": {
"trPlaceholder": "rqt plugins",
"trText": "rqt plugins"
}
},
{
"name": "PluginDescription",
"trDisplayName": "Description:",
"mandatory": false,
"type": "TextEdit"
}
]
}
],
"generators":
[
{
"typeId": "File",
"data":
[
{
"source": "plugin.creator",
"target": "%{ProjectName}.creator",
"openAsProject": true
},
{
"source": "plugin.includes",
"target": "%{ProjectName}.includes"
},
{
"source": "plugin.config",
"target": "%{ProjectName}.config"
},
{
"source": "plugin.files",
"target": "%{ProjectName}.files"
},
{
"source": "package.xml",
"target": "package.xml"
},
{
"source": "plugin.xml",
"target": "plugin.xml"
},
{
"source": "CMakeLists.txt",
"target": "CMakeLists.txt"
},
{
"source": "rqt_plugin.h",
"target": "include/%{Plugin}/%{Plugin}.h"
},
{
"source": "rqt_plugin_widget.h",
"target": "include/%{Plugin}/%{Plugin}_widget.h"
},
{
"source": "rqt_plugin.cpp",
"target": "src/%{Plugin}/%{Plugin}.cpp"
},
{
"source": "rqt_plugin_widget.cpp",
"target": "src/%{Plugin}/%{Plugin}_widget.cpp"
},
{
"source": "rqt_plugin_widget.ui",
"target": "ui/%{Plugin}/%{Plugin}_widget.ui"
}
]
}
]
}