|
53 | 53 | "activationEvents": [ |
54 | 54 | "onLanguage:qml", |
55 | 55 | "onCommand:qtForPython.compileResource", |
56 | | - "onCommand:qtForPython.compileUi" |
| 56 | + "onCommand:qtForPython.compileUi", |
| 57 | + "onCommand:qtForPython.createUi", |
| 58 | + "onCommand:qtForPython.editUi" |
57 | 59 | ], |
58 | 60 | "contributes": { |
59 | 61 | "languages": [ |
|
98 | 100 | "command": "qtForPython.compileUi", |
99 | 101 | "title": "Compile Qt UI File", |
100 | 102 | "category": "Qt for Python" |
| 103 | + }, |
| 104 | + { |
| 105 | + "command": "qtForPython.createUi", |
| 106 | + "title": "Create Qt UI File", |
| 107 | + "category": "Qt for Python" |
| 108 | + }, |
| 109 | + { |
| 110 | + "command": "qtForPython.editUi", |
| 111 | + "title": "Edit Qt UI File", |
| 112 | + "category": "Qt for Python" |
101 | 113 | } |
102 | 114 | ], |
103 | 115 | "menus": { |
|
111 | 123 | "command": "qtForPython.compileUi", |
112 | 124 | "when": "resourceExtname == .ui && resourceLangId == xml", |
113 | 125 | "group": "qtForPython" |
| 126 | + }, |
| 127 | + { |
| 128 | + "command": "qtForPython.createUi", |
| 129 | + "when": "explorerResourceIsFolder == true", |
| 130 | + "group": "qtForPython" |
| 131 | + }, |
| 132 | + { |
| 133 | + "command": "qtForPython.editUi", |
| 134 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 135 | + "group": "qtForPython" |
114 | 136 | } |
115 | 137 | ], |
116 | 138 | "explorer/context": [ |
|
123 | 145 | "command": "qtForPython.compileUi", |
124 | 146 | "when": "resourceExtname == .ui && resourceLangId == xml", |
125 | 147 | "group": "qtForPython" |
| 148 | + }, |
| 149 | + { |
| 150 | + "command": "qtForPython.createUi", |
| 151 | + "when": "explorerResourceIsFolder == true", |
| 152 | + "group": "qtForPython" |
| 153 | + }, |
| 154 | + { |
| 155 | + "command": "qtForPython.editUi", |
| 156 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 157 | + "group": "qtForPython" |
126 | 158 | } |
127 | 159 | ], |
128 | 160 | "editor/title": [ |
|
135 | 167 | "command": "qtForPython.compileUi", |
136 | 168 | "when": "resourceExtname == .ui && resourceLangId == xml", |
137 | 169 | "group": "qtForPython" |
| 170 | + }, |
| 171 | + { |
| 172 | + "command": "qtForPython.createUi", |
| 173 | + "when": "explorerResourceIsFolder == true", |
| 174 | + "group": "qtForPython" |
| 175 | + }, |
| 176 | + { |
| 177 | + "command": "qtForPython.editUi", |
| 178 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 179 | + "group": "qtForPython" |
138 | 180 | } |
139 | 181 | ], |
140 | 182 | "editor/context": [ |
|
147 | 189 | "command": "qtForPython.compileUi", |
148 | 190 | "when": "resourceExtname == .ui && resourceLangId == xml", |
149 | 191 | "group": "qtForPython" |
| 192 | + }, |
| 193 | + { |
| 194 | + "command": "qtForPython.createUi", |
| 195 | + "when": "explorerResourceIsFolder == true", |
| 196 | + "group": "qtForPython" |
| 197 | + }, |
| 198 | + { |
| 199 | + "command": "qtForPython.editUi", |
| 200 | + "when": "resourceExtname == .ui && resourceLangId == xml", |
| 201 | + "group": "qtForPython" |
150 | 202 | } |
151 | 203 | ] |
152 | 204 | }, |
|
156 | 208 | "qtForPython.qmllint.enabled": { |
157 | 209 | "type": "boolean", |
158 | 210 | "default": true, |
159 | | - "markdownDescription": "Enable the qmllint integration.", |
| 211 | + "markdownDescription": "Enable the Qt `qmllint` integration.", |
160 | 212 | "scope": "resource" |
161 | 213 | }, |
162 | 214 | "qtForPython.qmllint.path": { |
163 | 215 | "type": "string", |
164 | 216 | "default": "", |
165 | | - "markdownDescription": "The path to `qmllint` executable. Set to empty string to automatically resolve from the installed Python package. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 217 | + "markdownDescription": "The path to Qt `qmllint` executable. Set to empty string to automatically resolve from the installed Python package. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
166 | 218 | "scope": "resource" |
167 | 219 | }, |
168 | 220 | "qtForPython.qmllint.options": { |
|
171 | 223 | "type": "string" |
172 | 224 | }, |
173 | 225 | "default": [], |
174 | | - "markdownDescription": "The options passed to `qmllint` executable. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 226 | + "markdownDescription": "The options passed to Qt `qmllint` executable. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
175 | 227 | "scope": "resource" |
176 | 228 | }, |
177 | 229 | "qtForPython.rcc.path": { |
178 | 230 | "type": "string", |
179 | 231 | "default": "", |
180 | | - "markdownDescription": "The path to `rcc` executable. Set to empty string to automatically resolve from the installed Python package. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 232 | + "markdownDescription": "The path to Qt `rcc` executable. Set to empty string to automatically resolve from the installed Python package. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
181 | 233 | "scope": "resource" |
182 | 234 | }, |
183 | 235 | "qtForPython.rcc.options": { |
|
189 | 241 | "-o", |
190 | 242 | "${resourceDirname}${pathSeparator}rc_${resourceBasenameNoExtension}.py" |
191 | 243 | ], |
192 | | - "markdownDescription": "The options passed to `rcc` executable. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 244 | + "markdownDescription": "The options passed to Qt `rcc` executable. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
193 | 245 | "scope": "resource" |
194 | 246 | }, |
195 | 247 | "qtForPython.uic.path": { |
196 | 248 | "type": "string", |
197 | 249 | "default": "", |
198 | | - "markdownDescription": "The path to `uic` executable. Set to empty string to automatically resolve from the installed Python package. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 250 | + "markdownDescription": "The path to Qt `uic` executable. Set to empty string to automatically resolve from the installed Python package. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
199 | 251 | "scope": "resource" |
200 | 252 | }, |
201 | 253 | "qtForPython.uic.options": { |
|
207 | 259 | "-o", |
208 | 260 | "${resourceDirname}${pathSeparator}ui_${resourceBasenameNoExtension}.py" |
209 | 261 | ], |
210 | | - "markdownDescription": "The options passed to `uic` executable. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 262 | + "markdownDescription": "The options passed to Qt `uic` executable. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 263 | + "scope": "resource" |
| 264 | + }, |
| 265 | + "qtForPython.designer.path": { |
| 266 | + "type": "string", |
| 267 | + "default": "", |
| 268 | + "markdownDescription": "The path to Qt `designer` executable. Set to empty string to automatically resolve from the installed Python package. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
| 269 | + "scope": "resource" |
| 270 | + }, |
| 271 | + "qtForPython.designer.options": { |
| 272 | + "type": "array", |
| 273 | + "items": { |
| 274 | + "type": "string" |
| 275 | + }, |
| 276 | + "default": [], |
| 277 | + "markdownDescription": "The options passed to Qt `designer` executable. See [here](https://github.com/seanwu1105/vscode-qt-for-python#predefined-variables) for a detailed list of predefined variables.", |
211 | 278 | "scope": "resource" |
212 | 279 | } |
213 | 280 | } |
|
0 commit comments