|
| 1 | +import QtQuick |
| 2 | +import "../Controls" as LateNightControls |
| 3 | +import "../LateNightTheme" |
| 4 | + |
| 5 | +Item { |
| 6 | + id: root |
| 7 | + |
| 8 | + required property string group |
| 9 | + property string leftStyle: "default" |
| 10 | + property string rightStyle: "default" |
| 11 | + property bool showEqKillButtons: true |
| 12 | + property bool showEqKnobs: true |
| 13 | + |
| 14 | + implicitHeight: 405 |
| 15 | + implicitWidth: root.showEqKillButtons ? 62 : 44 |
| 16 | + |
| 17 | + Item { |
| 18 | + anchors.right: parent.right |
| 19 | + width: 62 |
| 20 | + height: parent.height |
| 21 | + |
| 22 | + LateNightControls.Knob { |
| 23 | + backgroundSource: LateNightTheme.assetRegularKnobBackground |
| 24 | + displayArc: true |
| 25 | + displayArcColor: LateNightTheme.mixerArcGainColor |
| 26 | + displayArcRadius: LateNightTheme.mixerArcRadiusBig |
| 27 | + displayArcStart: LateNightControls.Knob.ArcStart.Center |
| 28 | + displayArcWidth: LateNightTheme.mixerArcWidth |
| 29 | + group: root.group |
| 30 | + height: 34 |
| 31 | + indicatorColor: "orange" |
| 32 | + indicatorKind: "regular" |
| 33 | + key: "pregain" |
| 34 | + width: 40 |
| 35 | + x: 18 |
| 36 | + y: 4 |
| 37 | + } |
| 38 | + EqKnobRow { |
| 39 | + group: root.group |
| 40 | + key: "filterHigh" |
| 41 | + killIcon: LateNightTheme.assetMixerEqKillHighIcon |
| 42 | + showKill: root.showEqKillButtons |
| 43 | + visible: root.showEqKnobs |
| 44 | + width: 58 |
| 45 | + x: 0 |
| 46 | + y: 43 |
| 47 | + } |
| 48 | + EqKnobRow { |
| 49 | + group: root.group |
| 50 | + key: "filterMid" |
| 51 | + killIcon: LateNightTheme.assetMixerEqKillMidIcon |
| 52 | + showKill: root.showEqKillButtons |
| 53 | + visible: root.showEqKnobs |
| 54 | + width: 58 |
| 55 | + x: 0 |
| 56 | + y: 80 |
| 57 | + } |
| 58 | + EqKnobRow { |
| 59 | + group: root.group |
| 60 | + key: "filterLow" |
| 61 | + killIcon: LateNightTheme.assetMixerEqKillLowIcon |
| 62 | + showKill: root.showEqKillButtons |
| 63 | + visible: root.showEqKnobs |
| 64 | + width: 58 |
| 65 | + x: 0 |
| 66 | + y: 117 |
| 67 | + } |
| 68 | + QuickEffectRow { |
| 69 | + group: root.group |
| 70 | + width: 58 |
| 71 | + x: 0 |
| 72 | + y: 154 |
| 73 | + } |
| 74 | + QuickEffectSelector { |
| 75 | + group: root.group |
| 76 | + visible: root.showEqKnobs |
| 77 | + width: 62 |
| 78 | + x: 0 |
| 79 | + y: 188 |
| 80 | + } |
| 81 | + PflButton { |
| 82 | + group: root.group |
| 83 | + x: 28 |
| 84 | + y: 210 |
| 85 | + } |
| 86 | + LateNightControls.ImageVuMeter { |
| 87 | + group: root.group |
| 88 | + height: 96 |
| 89 | + width: 20 |
| 90 | + x: 0 |
| 91 | + y: 237 |
| 92 | + } |
| 93 | + LateNightControls.Fader { |
| 94 | + backgroundSource: LateNightTheme.assetMixerVolumeSliderBackground |
| 95 | + group: root.group |
| 96 | + handleSource: LateNightTheme.assetMixerVolumeSliderHandle |
| 97 | + height: 107 |
| 98 | + key: "volume" |
| 99 | + orientation: Qt.Vertical |
| 100 | + width: 42 |
| 101 | + x: 20 |
| 102 | + y: 237 |
| 103 | + } |
| 104 | + CrossfaderAssignButton { |
| 105 | + activeStyle: root.leftStyle |
| 106 | + group: root.group |
| 107 | + label: "left" |
| 108 | + side: 0 |
| 109 | + x: 14 |
| 110 | + y: 344 |
| 111 | + } |
| 112 | + CrossfaderAssignButton { |
| 113 | + activeStyle: "warning" |
| 114 | + group: root.group |
| 115 | + label: "mid" |
| 116 | + side: 1 |
| 117 | + x: 25 |
| 118 | + y: 344 |
| 119 | + } |
| 120 | + CrossfaderAssignButton { |
| 121 | + activeStyle: root.rightStyle |
| 122 | + group: root.group |
| 123 | + label: "right" |
| 124 | + side: 2 |
| 125 | + x: 36 |
| 126 | + y: 344 |
| 127 | + } |
| 128 | + } |
| 129 | +} |
0 commit comments