summaryrefslogtreecommitdiffstats
path: root/res/skins/Tango/mixer_channel_left.xml
blob: 8e2c69eb0cfb3d2e8528540e9ee9976c61a5b61a (plain)
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
<!--
Description:
  The channel mixer containing
  * EQ knobs incl. Kill buttons ] if enabled
  * QuickEffect knob            ]
  * Headphone cue button
  * Volume slider
  * Gain knob
  * VUMeter
Variables:
  group : [ChannelXY]
-->
<Template>
  <WidgetGroup>
    <ObjectName>MixerChannelLeft</ObjectName>
    <Layout>horizontal</Layout>
    <Size>-1min,136f</Size>
    <Children>
      <WidgetGroup><ObjectName>Spacer0f</ObjectName><Size>1f,1min</Size></WidgetGroup>

      <WidgetGroup><Size>2f,1min</Size></WidgetGroup>

      <WidgetGroup><!-- EQ + QuickEffect knobs/buttons -->
        <Layout>vertical</Layout>
        <SizePolicy>max,min</SizePolicy>
        <Children>
          <WidgetGroup><Size>1min,4f</Size></WidgetGroup>
          <Template src="skin:eq_knob_left.xml"><!-- High EQ -->
            <SetVariable name="FxParameter">3</SetVariable>
          </Template>
          <Template src="skin:eq_knob_left.xml"><!-- Mid EQ -->
            <SetVariable name="FxParameter">2</SetVariable>
          </Template>
          <Template src="skin:eq_knob_left.xml"><!-- Low EQ -->
            <SetVariable name="FxParameter">1</SetVariable>
          </Template>
          <Template src="skin:quick_fx_knob_left.xml"/><!-- Quick Effect -->
        </Children>
        <Connection>
          <ConfigKey persist="true">[Skin],show_eq_knobs</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup><!-- /EQ + QuickEffect knobs/buttons -->

      <WidgetGroup><!-- Spacer when EQ plugin is loaded & Kill buttons are shown -->
        <SizePolicy>min,min</SizePolicy>
        <Layout>vertical</Layout>
        <Children>
          <WidgetGroup>
            <Size>4f,0min</Size>
            <Connection>
              <ConfigKey>[Skin],show_eq_kill_buttons</ConfigKey>
              <BindProperty>visible</BindProperty>
            </Connection>
          </WidgetGroup>
        </Children>
        <Connection>
          <ConfigKey><Variable name="FxRack_FxUnit_FxNum"/>,loaded</ConfigKey>
          <BindProperty>visible</BindProperty>
        </Connection>
      </WidgetGroup>

      <WidgetGroup><!--  Volume Slider + Gain knob -->
        <ObjectName>VolumeSliderGain</ObjectName>
        <Layout>vertical</Layout>
        <SizePolicy>f,min</SizePolicy>
        <Children>
          <SliderComposed><!-- Volume slider -->
            <Size>34f,103f</Size>
            <ObjectName>VolumeSlider</ObjectName>
            <TooltipId>channel_volume</TooltipId>
            <Slider scalemode="STRETCH_ASPECT">knobs_sliders/volume_scale.svg</Slider>
            <Handle scalemode="STRETCH_ASPECT">knobs_sliders/volume_handle.svg</Handle>
            <Horizontal>false</Horizontal>
            <Connection>
              <ConfigKey><Variable name="group"/>,volume</ConfigKey>
            </Connection>
          </SliderComposed><!-- /Volume slider -->

          <WidgetGroup><Size>1min,0me</Size></WidgetGroup>

          <!-- Gain knob, centered below Volume slider -->
          <Template src="skin:knob_textless.xml">
            <SetVariable name="ObjectName">GainKnob</SetVariable>
            <SetVariable name="TooltipId">pregain</SetVariable>
            <SetVariable name="Size">34f,30f</SetVariable>
            <SetVariable name="Color">yellow</SetVariable>
            <SetVariable name="group"><Variable name="group"/></SetVariable>
            <SetVariable name="ConfigKey">pregain</SetVariable>
          </Template>

        </Children>
      </WidgetGroup><!-- /Volume Slider + Gain knob -->

      <WidgetGroup><!-- VU Meter + Pfl button -->
        <ObjectName>AlignCenter</ObjectName>
        <Layout>vertical</Layout>
        <Children>
          <Template src="skin:vumeter_mixer.xml"/>

          <WidgetGroup><Size>1min,0me</Size></WidgetGroup>

          <WidgetGroup><!-- Pfl button, isolated with a 'gap' -->
            <ObjectName>PflBoxLeft</ObjectName>
            <Size>25f,25f</Size>
            <Layout>stacked</Layout>
            <Children>
              <!-- index 0 due to bug -->
              <WidgetGroup><Size>0f,0f</Size></WidgetGroup>

              <!-- Greyed out if no headphone device is configured -->
              <Template src="skin:pfl_cover.xml"/>

              <Template src="skin:button_2state.xml">
                <SetVariable name="TooltipId">pfl</SetVariable>
                <SetVariable name="ObjectName">PflButton</SetVariable>
                <SetVariable name="Size">24f,24f</SetVariable>
                <SetVariable name="state_0_icon">pfl_off.svg</SetVariable>
                <SetVariable name="state_1_icon">pfl_on.svg</SetVariable>
                <SetVariable name="ConfigKey"><Variable name="group"/>,pfl</SetVariable>
              </Template>
            </Children>
          </WidgetGroup><!-- /Pfl button, isolated with a 'gap' -->
        </Children>
      </WidgetGroup><!-- /VU Meter + Pfl button -->
    </Children>
  </WidgetGroup>
</Template>