Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 572e2bd

Browse files
committed
finish v0.2
1 parent bec856b commit 572e2bd

File tree

2 files changed

+83
-9
lines changed

2 files changed

+83
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
### Added
1616

17-
* Button for `qmlscene` preview
17+
* Menus in editor/title and editor/context
1818

1919
### Fixed
2020

package.json

Lines changed: 82 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,36 @@
6464
}
6565
],
6666
"menus": {
67+
"commandPalette": [
68+
{
69+
"command": "qtForPython.editForm",
70+
"when": "resourceExtname == .ui && resourceLangId == xml"
71+
},
72+
{
73+
"command": "qtForPython.compileForm",
74+
"when": "resourceExtname == .ui && resourceLangId == xml"
75+
},
76+
{
77+
"command": "qtForPython.updateTranslation",
78+
"when": "resourceLangId == python"
79+
},
80+
{
81+
"command": "qtForPython.editTranslation",
82+
"when": "resourceExtname == .ts && resourceLangId == xml"
83+
},
84+
{
85+
"command": "qtForPython.releaseTranslation",
86+
"when": "resourceExtname == .ts && resourceLangId == xml"
87+
},
88+
{
89+
"command": "qtForPython.previewQml",
90+
"when": "resourceLangId == qml"
91+
},
92+
{
93+
"command": "qtForPython.compileResource",
94+
"when": "resourceExtname == .qrc && resourceLangId == xml"
95+
}
96+
],
6797
"explorer/context": [
6898
{
6999
"command": "qtForPython.newForm",
@@ -106,34 +136,78 @@
106136
"group": "qtForPython@8"
107137
}
108138
],
109-
"commandPalette": [
139+
"editor/title": [
110140
{
111141
"command": "qtForPython.editForm",
112-
"when": "resourceExtname == .ui && resourceLangId == xml"
142+
"when": "resourceExtname == .ui && resourceLangId == xml",
143+
"group": "qtForPython@2"
113144
},
114145
{
115146
"command": "qtForPython.compileForm",
116-
"when": "resourceExtname == .ui && resourceLangId == xml"
147+
"when": "resourceExtname == .ui && resourceLangId == xml",
148+
"group": "qtForPython@3"
117149
},
118150
{
119151
"command": "qtForPython.updateTranslation",
120-
"when": "resourceLangId == python"
152+
"when": "resourceLangId == python",
153+
"group": "qtForPython@4"
121154
},
122155
{
123156
"command": "qtForPython.editTranslation",
124-
"when": "resourceExtname == .ts && resourceLangId == xml"
157+
"when": "resourceExtname == .ts && resourceLangId == xml",
158+
"group": "qtForPython@5"
125159
},
126160
{
127161
"command": "qtForPython.releaseTranslation",
128-
"when": "resourceExtname == .ts && resourceLangId == xml"
162+
"when": "resourceExtname == .ts && resourceLangId == xml",
163+
"group": "qtForPython@6"
129164
},
130165
{
131166
"command": "qtForPython.previewQml",
132-
"when": "resourceLangId == qml"
167+
"when": "resourceLangId == qml",
168+
"group": "qtForPython@7"
133169
},
134170
{
135171
"command": "qtForPython.compileResource",
136-
"when": "resourceExtname == .qrc && resourceLangId == xml"
172+
"when": "resourceExtname == .qrc && resourceLangId == xml",
173+
"group": "qtForPython@8"
174+
}
175+
],
176+
"editor/context": [
177+
{
178+
"command": "qtForPython.editForm",
179+
"when": "resourceExtname == .ui && resourceLangId == xml",
180+
"group": "qtForPython@2"
181+
},
182+
{
183+
"command": "qtForPython.compileForm",
184+
"when": "resourceExtname == .ui && resourceLangId == xml",
185+
"group": "qtForPython@3"
186+
},
187+
{
188+
"command": "qtForPython.updateTranslation",
189+
"when": "resourceLangId == python",
190+
"group": "qtForPython@4"
191+
},
192+
{
193+
"command": "qtForPython.editTranslation",
194+
"when": "resourceExtname == .ts && resourceLangId == xml",
195+
"group": "qtForPython@5"
196+
},
197+
{
198+
"command": "qtForPython.releaseTranslation",
199+
"when": "resourceExtname == .ts && resourceLangId == xml",
200+
"group": "qtForPython@6"
201+
},
202+
{
203+
"command": "qtForPython.previewQml",
204+
"when": "resourceLangId == qml",
205+
"group": "qtForPython@7"
206+
},
207+
{
208+
"command": "qtForPython.compileResource",
209+
"when": "resourceExtname == .qrc && resourceLangId == xml",
210+
"group": "qtForPython@8"
137211
}
138212
]
139213
},

0 commit comments

Comments
 (0)