@@ -214,74 +214,88 @@ Kirigami.ScrollablePage {
214
214
contentItem: Column {
215
215
id: cardSideChainColumn
216
216
217
- FormCard .FormComboBoxDelegate {
218
- id: sidechainType
219
-
220
- text: i18n (" Type" )
221
- displayMode: FormCard .FormComboBoxDelegate .ComboBox
222
- currentIndex: pluginDB .sidechainType
223
- editable: false
224
- model: [i18n (" Internal" ), i18n (" External" ), i18n (" Link" )]
225
- onActivated : (idx ) => {
226
- pluginDB .sidechainType = idx;
227
- }
217
+ GridLayout {
218
+ columns: 2
219
+ uniformCellWidths: true
228
220
229
221
anchors {
230
222
left: parent .left
231
223
right: parent .right
232
224
}
233
225
234
- }
235
-
236
- FormCard .FormComboBoxDelegate {
237
- id: comboSideChainInputDevice
238
-
239
- text: i18n (" Input Device" )
240
- displayMode: FormCard .FormComboBoxDelegate .ComboBox
241
- editable: false
242
- model: PW .ModelNodes
243
- textRole: " description"
244
- enabled: sidechainType .currentIndex === 1
245
- currentIndex: {
246
- for (let n = 0 ; n < PW .ModelNodes .rowCount (); n++ ) {
247
- if (PW .ModelNodes .getNodeName (n) === pluginDB .sidechainInputDevice )
248
- return n;
249
-
226
+ FormCard .FormComboBoxDelegate {
227
+ id: sidechainType
228
+
229
+ Layout .columnSpan : 2
230
+ text: i18n (" Type" )
231
+ displayMode: FormCard .FormComboBoxDelegate .ComboBox
232
+ currentIndex: pluginDB .sidechainType
233
+ editable: false
234
+ model: [i18n (" Internal" ), i18n (" External" ), i18n (" Link" )]
235
+ onActivated : (idx ) => {
236
+ pluginDB .sidechainType = idx;
250
237
}
251
- return 0 ;
252
238
}
253
- onActivated : (idx ) => {
254
- let selectedName = PW .ModelNodes .getNodeName (idx);
255
- if (selectedName !== pluginDB .sidechainInputDevice )
256
- pluginDB .sidechainInputDevice = selectedName;
257
239
258
- }
240
+ FormCard .FormComboBoxDelegate {
241
+ id: comboSideChainInputDevice
242
+
243
+ Layout .columnSpan : 2
244
+ text: i18n (" Input Device" )
245
+ displayMode: FormCard .FormComboBoxDelegate .ComboBox
246
+ editable: false
247
+ model: PW .ModelNodes
248
+ textRole: " description"
249
+ enabled: sidechainType .currentIndex === 1
250
+ currentIndex: {
251
+ for (let n = 0 ; n < PW .ModelNodes .rowCount (); n++ ) {
252
+ if (PW .ModelNodes .getNodeName (n) === pluginDB .sidechainInputDevice )
253
+ return n;
254
+
255
+ }
256
+ return 0 ;
257
+ }
258
+ onActivated : (idx ) => {
259
+ let selectedName = PW .ModelNodes .getNodeName (idx);
260
+ if (selectedName !== pluginDB .sidechainInputDevice )
261
+ pluginDB .sidechainInputDevice = selectedName;
259
262
260
- anchors {
261
- left: parent .left
262
- right: parent .right
263
+ }
263
264
}
264
265
265
- }
266
-
267
- EeSpinBox {
268
- id: sidechainPreamp
269
-
270
- label: i18n (" Preamp" )
271
- from: pluginDB .getMinValue (" sidechainPreamp" )
272
- to: pluginDB .getMaxValue (" sidechainPreamp" )
273
- value: pluginDB .sidechainPreamp
274
- decimals: 2
275
- stepSize: 0.01
276
- unit: " dB"
277
- minusInfinityMode: true
278
- onValueModified : (v ) => {
279
- pluginDB .sidechainPreamp = v;
266
+ EeSpinBox {
267
+ id: sidechainPreamp
268
+
269
+ label: i18n (" Preamp" )
270
+ labelAbove: true
271
+ spinboxLayoutFillWidth: true
272
+ from: pluginDB .getMinValue (" sidechainPreamp" )
273
+ to: pluginDB .getMaxValue (" sidechainPreamp" )
274
+ value: pluginDB .sidechainPreamp
275
+ decimals: 2
276
+ stepSize: 0.01
277
+ unit: " dB"
278
+ minusInfinityMode: true
279
+ onValueModified : (v ) => {
280
+ pluginDB .sidechainPreamp = v;
281
+ }
280
282
}
281
283
282
- anchors {
283
- left: parent .left
284
- right: parent .right
284
+ EeSpinBox {
285
+ id: lookahead
286
+
287
+ label: i18n (" Lookahead" )
288
+ labelAbove: true
289
+ spinboxLayoutFillWidth: true
290
+ from: pluginDB .getMinValue (" lookahead" )
291
+ to: pluginDB .getMaxValue (" lookahead" )
292
+ value: pluginDB .lookahead
293
+ decimals: 2
294
+ stepSize: 0.01
295
+ unit: " ms"
296
+ onValueModified : (v ) => {
297
+ pluginDB .lookahead = v;
298
+ }
285
299
}
286
300
287
301
}
0 commit comments