<Template>
	<WidgetGroup>
		<ObjectName>Sampler</ObjectName>
		<Size>i,103f</Size>
		<Layout>horizontal</Layout>
		<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0px; } </Style>
		<Children>
			<WidgetGroup>
				<ObjectName>SamplerLeftBorder</ObjectName>
				<Size>5f,100f</Size>
				<BackPath>style/style_bg_deck_border.png</BackPath>
				<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
			</WidgetGroup>
			<WidgetGroup>
				<Size>0e,103f</Size>
				<Layout>vertical</Layout>
				<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0; padding: 0; }</Style>
				<Children>
					<WidgetGroup>
						<ObjectName>SamplerTop</ObjectName>
						<Size>0e,24f</Size>
						<BackPath>style/style_bg_sampler_top.png</BackPath>
						<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0; padding: 0; }</Style>
						<Layout>horizontal</Layout>
						<Children>
							<Text>
								<TooltipId>text</TooltipId>
								<Style>QLabel { font: bold 12px/14px sans-serif;
										font-family: "Open Sans";
										background-color: transparent;
										color: #191F24;
										text-align: left;
										padding-left: 1px; 
										padding-top: 6px;}
								</Style>
								<Group>[Sampler<Variable name="samplernum"/>]</Group>
								<SizePolicy>me,max</SizePolicy>
								<Elide>right</Elide>
							</Text>
							<!-- Alternative "TITLE ONLY" display
							<TrackProperty>
								<TooltipId>track_title</TooltipId>
								<Style>QLabel { font: bold 14px/16px sans-serif;
										font-family: "Open Sans";
										background-color: transparent;
										color: #191F24;
										text-align: left;
										padding-left: 1px; }
								</Style>
								<Property>title</Property>
								<Group>[Sampler<Variable name="samplernum"/>]</Group>
								<SizePolicy>me,max</SizePolicy>
								<Elide>right</Elide>
							</TrackProperty>
							-->
							<WidgetGroup>
							 	<Size>35f,24f</Size>
								<Style>QGroupBox {border: 0px solid red; } QWidget { margin: 0; padding: 0; }</Style>
								<Children>
									<Number>
										<TooltipId>visual_bpm</TooltipId>
										<Style>QLabel { font: bold 9px sans-serif;
												font-family: "Open Sans";
												background-color: transparent;
												color: #191F24;
												padding-right: 0;
												padding-top: 2px;}
										</Style>
										<Size>35f,24f</Size>
										<Pos>0,2</Pos>
										<Group>[Sampler<Variable name="samplernum"/>]</Group>
										<!--CSS alignments not respected see bug lp:605530 , lets call <Alignment>-->
										<Alignment>right</Alignment>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],visual_bpm</ConfigKey>
										</Connection>
									</Number>
									<!-- Little trickery here:
										 BPM tap is transparent png directly over BPM display, so it became BPM and TAP at once,
										 changed tooltip accordingly
									-->
									<PushButton>
									<!-- Original:
										<TooltipId>bpm_tap</TooltipId>
									-->
										<TooltipId>bpm_tap_visual_bpm</TooltipId>
										<Pos>0,5</Pos>
										<Style></Style>
										<NumberStates>1</NumberStates>
										<State>
											<Number>0</Number>
											<Pressed>skin:/btn/btn_tap_sampler_over.png</Pressed>
											<Unpressed>skin:/btn/btn_tap_sampler.png</Unpressed>
										</State>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],bpm_tap</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
										</Connection>
									</PushButton>
								</Children>
							</WidgetGroup>
						</Children>
					</WidgetGroup>
					<WidgetGroup>
						<ObjectName>SamplerMid</ObjectName>
						<Size>0e,36f</Size>
						<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
						<Layout>horizontal</Layout>
						<Children>	

						<WidgetGroup>
							<ObjectName>SamplerMid</ObjectName>
							<Size>27f,36f</Size>
							<BackPath>style/style_bg_sampler_mid.png</BackPath>
							<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
							<Children>	
								<PushButton>
									<TooltipId>cue_gotoandplay_cue_default</TooltipId>
									<Style></Style>
									<NumberStates>2</NumberStates>
									<RightClickIsPushButton>true</RightClickIsPushButton>
									<State>
										<Number>0</Number>
										<Pressed>skin:/btn/btn_play_sampler_down.png</Pressed>
										<Unpressed>skin:/btn/btn_play_sampler.png</Unpressed>
									</State>
									<State>
										<Number>1</Number>
										<Pressed>skin:/btn/btn_play_sampler_overdown.png</Pressed>
										<Unpressed>skin:/btn/btn_play_sampler_over.png</Unpressed>
									</State>
									<Pos>3,7</Pos>
									<Connection>
						                <ConfigKey>[Sampler<Variable name="samplernum"/>],cue_gotoandplay</ConfigKey>
						                <ButtonState>LeftButton</ButtonState>
						            </Connection>
						            <Connection>
						                <ConfigKey>[Sampler<Variable name="samplernum"/>],cue_default</ConfigKey>
						                <ButtonState>RightButton</ButtonState>
						            </Connection>
						            <Connection>
						                <ConfigKey>[Sampler<Variable name="samplernum"/>],play_indicator</ConfigKey>
						            </Connection>
								</PushButton>				
							</Children>
						</WidgetGroup>

						<WidgetGroup>
							<ObjectName>SamplerMid</ObjectName>
							<Size>0e,36f</Size>
							<BackPath>style/style_bg_sampler_mid.png</BackPath>
							<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
							<Layout>horizontal</Layout>
							<Children>					
								<Overview>
									<TooltipId>waveform_overview</TooltipId>
									<Style></Style>
									<Group>[Sampler<Variable name="samplernum"/>]</Group>
									<Pos>0,0</Pos>
									<Size>0e,35f</Size>
									<BgColor>#8D98A3</BgColor>
									<PlayedOverlayColor>#60000000</PlayedOverlayColor>
									<SignalHighColor></SignalHighColor>
									<SignalMidColor></SignalMidColor>
									<SignalLowColor></SignalLowColor>
									<SignalColor>#191F24</SignalColor>
									<PlayPosColor>#00FF00</PlayPosColor>
									<DefaultMark>
										<Align>bottom|right</Align>
										<Color>#FD0564</Color>
										<TextColor>#000000</TextColor>
										<Text> %1 </Text>
									</DefaultMark>
                  <Mark>
                    <Control>cue_point</Control>
                    <Text>C</Text>
                    <Align>top|right</Align>
                    <Color>#FF001C</Color>
                    <TextColor>#000000</TextColor>
                  </Mark>
									<Connection>
										<ConfigKey>[Sampler<Variable name="samplernum"/>],playposition</ConfigKey>
										<EmitOnDownPress>false</EmitOnDownPress>
									</Connection>
								</Overview>
							</Children>
						</WidgetGroup>

						<WidgetGroup>
							<ObjectName>SamplerButtonGrid</ObjectName>
							<Size>42f,36f</Size>
							<BackPath>style/style_bg_sampler_woverview_buttons.png</BackPath>
							<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
							<Children>	
								<PushButton>
									<TooltipId>repeat</TooltipId>
									<Style></Style>
									<NumberStates>2</NumberStates>
									<State>
										<Number>0</Number>
										<Pressed>skin:/btn/btn_repeat_sampler.png</Pressed>
										<Unpressed>skin:/btn/btn_repeat_sampler.png</Unpressed>
									</State>
									<State>
										<Number>1</Number>
										<Pressed>skin:/btn/btn_repeat_sampler_over.png</Pressed>
										<Unpressed>skin:/btn/btn_repeat_sampler_over.png</Unpressed>
									</State>
									<Pos>1,0</Pos>
									<Connection>
										<ConfigKey>[Sampler<Variable name="samplernum"/>],repeat</ConfigKey>
									</Connection>
								</PushButton>
								<PushButton>
									<TooltipId>eject</TooltipId>
									<Style></Style>
									<NumberStates>1</NumberStates>
									<State>
										<Number>0</Number>
										<Pressed>skin:/btn/btn_eject_sampler_over.png</Pressed>
										<Unpressed>skin:/btn/btn_eject_sampler.png</Unpressed>
									</State>
									<Pos>22,0</Pos>
									<Connection>
										<ConfigKey>[Sampler<Variable name="samplernum"/>],eject</ConfigKey>
										<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
										<ButtonState>LeftButton</ButtonState>
										<ConnectValueToWidget>false</ConnectValueToWidget>
									</Connection>
								</PushButton>
								<PushButton>
									<TooltipId>orientation</TooltipId>
									<Style></Style>
									<NumberStates>3</NumberStates>
									<State>
										<Number>0</Number>
										<Pressed>skin:/btn/btn_orientation_sampler_left_over.png</Pressed>
										<Unpressed>skin:/btn/btn_orientation_sampler_left_over.png</Unpressed>
									</State>
									<State>
										<Number>1</Number>
										<Pressed>skin:/btn/btn_orientation_sampler_master.png</Pressed>
										<Unpressed>skin:/btn/btn_orientation_sampler_master.png</Unpressed>
									</State>
									<State>
										<Number>2</Number>
										<Pressed>skin:/btn/btn_orientation_sampler_right_over.png</Pressed>
										<Unpressed>skin:/btn/btn_orientation_sampler_right_over.png</Unpressed>
									</State>
									<Pos>1,17</Pos>
									<Connection>
										<ConfigKey>[Sampler<Variable name="samplernum"/>],orientation</ConfigKey>
										<EmitOnDownPress>true</EmitOnDownPress>
										<ButtonState>LeftButton</ButtonState>
									</Connection>
								</PushButton>
								<PushButton>
									<TooltipId>keylock</TooltipId>
									<Style></Style>
									<NumberStates>2</NumberStates>
									<State>
										<Number>0</Number>
										<Pressed>skin:/btn/btn_keylock_sampler.png</Pressed>
										<Unpressed>skin:/btn/btn_keylock_sampler.png</Unpressed>
									</State>
									<State>
										<Number>1</Number>
										<Pressed>skin:/btn/btn_keylock_sampler_over.png</Pressed>
										<Unpressed>skin:/btn/btn_keylock_sampler_over.png</Unpressed>
									</State>
									<Pos>21,17</Pos>
									<Connection>
										<ConfigKey>[Sampler<Variable name="samplernum"/>],keylock</ConfigKey>
									</Connection>
								</PushButton>				
							</Children>
						</WidgetGroup>				
						</Children>
					</WidgetGroup>
					<WidgetGroup>
						<ObjectName>SamplerBottom</ObjectName>
						<Size>0e,40f</Size>
						<BackPath>style/style_bg_sampler_bottom.png</BackPath>
						<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
						<Layout>horizontal</Layout>
						<Children>
							<WidgetGroup>
								<ObjectName>SamplerBottom</ObjectName>
								<Size>0e,40f</Size>
								<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
							</WidgetGroup>
							<WidgetGroup>
								<ObjectName>SamplerBottom</ObjectName>
								<Size>204f,40f</Size>
								<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
								<Children>
									<PushButton>
										<TooltipId>beatsync_beatsync_tempo</TooltipId>
										<Style></Style>
										<NumberStates>1</NumberStates>
										<State>
											<Number>0</Number>
											<Pressed>skin:/btn/btn_sync_sampler_overdown.png</Pressed>
											<Unpressed>skin:/btn/btn_sync_sampler.png</Unpressed>
										</State>
										<Pos>3,8</Pos>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],beatsync</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>LeftButton</ButtonState>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],beatsync_tempo</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>RightButton</ButtonState>
										</Connection>
									</PushButton>

									<PushButton>
										<TooltipId>hotcue</TooltipId>
										<Style></Style>
										<NumberStates>2</NumberStates>
										<LeftClickIsPushButton>true</LeftClickIsPushButton>
										<RightClickIsPushButton>true</RightClickIsPushButton>
										<State>
											<Number>0</Number>
											<Pressed>skin:/btn/btn_hotcue_1_down.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_1.png</Unpressed>
										</State>
										<State>
											<Number>1</Number>
											<Pressed>skin:/btn/btn_hotcue_1_overdown.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_1_over.png</Unpressed>
										</State>
										<Pos>47,8</Pos>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_1_activate</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>LeftButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_1_clear</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>RightButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_1_enabled</ConfigKey>
											<ConnectValueFromWidget>false</ConnectValueFromWidget>
										</Connection>
									</PushButton>
									<PushButton>
										<TooltipId>hotcue</TooltipId>
										<Style></Style>
										<NumberStates>2</NumberStates>
										<LeftClickIsPushButton>true</LeftClickIsPushButton>
										<RightClickIsPushButton>true</RightClickIsPushButton>
										<State>
											<Number>0</Number>
											<Pressed>skin:/btn/btn_hotcue_2_down.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_2.png</Unpressed>
										</State>
										<State>
											<Number>1</Number>
											<Pressed>skin:/btn/btn_hotcue_2_overdown.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_2_over.png</Unpressed>
										</State>
										<Pos>68,8</Pos>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_2_activate</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>LeftButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_2_clear</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>RightButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_2_enabled</ConfigKey>
											<ConnectValueFromWidget>false</ConnectValueFromWidget>
										</Connection>
									</PushButton>
									<PushButton>
										<TooltipId>hotcue</TooltipId>
										<Style></Style>
										<NumberStates>2</NumberStates>
										<LeftClickIsPushButton>true</LeftClickIsPushButton>
										<RightClickIsPushButton>true</RightClickIsPushButton>
										<State>
											<Number>0</Number>
											<Pressed>skin:/btn/btn_hotcue_3_down.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_3.png</Unpressed>
										</State>
										<State>
											<Number>1</Number>
											<Pressed>skin:/btn/btn_hotcue_3_overdown.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_3_over.png</Unpressed>
										</State>
										<Pos>89,8</Pos>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_3_activate</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>LeftButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_3_clear</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>RightButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_3_enabled</ConfigKey>
											<ConnectValueFromWidget>false</ConnectValueFromWidget>
										</Connection>
									</PushButton>
									<PushButton>
										<TooltipId>hotcue</TooltipId>
										<Style></Style>
										<NumberStates>2</NumberStates>
										<LeftClickIsPushButton>true</LeftClickIsPushButton>
										<RightClickIsPushButton>true</RightClickIsPushButton>
										<State>
											<Number>0</Number>
											<Pressed>skin:/btn/btn_hotcue_4_down.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_4.png</Unpressed>
										</State>
										<State>
											<Number>1</Number>
											<Pressed>skin:/btn/btn_hotcue_4_overdown.png</Pressed>
											<Unpressed>skin:/btn/btn_hotcue_4_over.png</Unpressed>
										</State>
										<Pos>110,8</Pos>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_4_activate</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>LeftButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_4_clear</ConfigKey>
											<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
											<ButtonState>RightButton</ButtonState>
											<ConnectValueToWidget>false</ConnectValueToWidget>
										</Connection>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],hotcue_4_enabled</ConfigKey>
											<ConnectValueFromWidget>false</ConnectValueFromWidget>
										</Connection>
									</PushButton>
									<PushButton>
										<TooltipId>pfl</TooltipId>
										<Style></Style>
										<NumberStates>2</NumberStates>
										<State>
											<Number>0</Number>
											<Pressed>skin:/btn/btn_pfl_sampler_down.png</Pressed>
											<Unpressed>skin:/btn/btn_pfl_sampler.png</Unpressed>
										</State>
										<State>
											<Number>1</Number>
											<Pressed>skin:/btn/btn_pfl_sampler_overdown.png</Pressed>
											<Unpressed>skin:/btn/btn_pfl_sampler_over.png</Unpressed>
										</State>
										<Pos>134,8</Pos>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],pfl</ConfigKey>
										</Connection>
									</PushButton>
									<Knob>
										<TooltipId>pregain</TooltipId>
										<Style></Style>
										<NumberStates>64</NumberStates>
										<Path>knobs/knob_rotary_s%1.png</Path>
										<Pos>168,6</Pos>
										<Connection>
											<ConfigKey>[Sampler<Variable name="samplernum"/>],pregain</ConfigKey>
										</Connection>
									</Knob>
								</Children>
							</WidgetGroup>
						</Children>
					</WidgetGroup>
				</Children>
			</WidgetGroup>
			<WidgetGroup>
				<ObjectName>SamplerVUMeter</ObjectName>
				<Size>8f,100f</Size>
				<BackPath>style/style_bg_sampler_vu.png</BackPath>
				<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
				<Children>
					<StatusLight>
						<TooltipId>sampler_PeakIndicator</TooltipId>
						<Style></Style>
						<PathStatusLight>skin:/style/volume_clipping_sampler_over.png</PathStatusLight>
						<PathBack>skin:/style/volume_clipping_sampler.png</PathBack>
						<Pos>3,7</Pos>
						<Connection>
							<ConfigKey>[Sampler<Variable name="samplernum"/>],PeakIndicator</ConfigKey>
						</Connection>
					</StatusLight>
					<VuMeter>
						<TooltipId>sampler_VuMeter</TooltipId>
						<Style></Style>
						<PathVu>skin:/style/volume_display_sampler_over.png</PathVu>
						<PathBack>skin:/style/volume_display_sampler.png</PathBack>
						<Pos>3,24</Pos>
						<Horizontal>false</Horizontal>
						<PeakHoldSize>5</PeakHoldSize>
						<PeakHoldTime>500</PeakHoldTime>
						<PeakFallTime>50</PeakFallTime>
						<PeakFallStep>2</PeakFallStep>
						<Connection>
							<ConfigKey>[Sampler<Variable name="samplernum"/>],VuMeter</ConfigKey>
						</Connection>
					</VuMeter>
				</Children>
			</WidgetGroup>
			<WidgetGroup>
				<ObjectName>SamplerPitch</ObjectName>
				<Size>21f,100f</Size>
				<BackPath>style/style_bg_sampler_right.png</BackPath>
				<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
				<Children>
					<SliderComposed>
						<TooltipId>rate</TooltipId>
						<Style></Style>
						<Handle>knob_pitch_sampler.png</Handle>
						<Slider>slider_pitch_sampler.png</Slider>
						<Pos>3,8</Pos>
						<Horizontal>false</Horizontal>
						<Connection>
							<ConfigKey>[Sampler<Variable name="samplernum"/>],rate</ConfigKey>
							<EmitOnDownPress>false</EmitOnDownPress>
						</Connection>
					</SliderComposed>
				</Children>
			</WidgetGroup>
			<WidgetGroup>
				<ObjectName>SamplerRightBorder</ObjectName>
				<Size>5f,100f</Size>
				<BackPath>style/style_bg_deck_border.png</BackPath>
				<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
			</WidgetGroup>
			<WidgetGroup>
				<ObjectName>SamplerRightBorder</ObjectName>
				<Size>3f,100f</Size>
				<Style>QGroupBox { border: 0px solid red; } QWidget { margin: 0px; padding: 0; }</Style>
			</WidgetGroup>
		</Children>
	</WidgetGroup>
</Template>

