-
Notifications
You must be signed in to change notification settings - Fork 0
/
left_right_display_2state_button.xml
58 lines (58 loc) · 2.41 KB
/
left_right_display_2state_button.xml
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
<!DOCTYPE template>
<!--
Description:
A button that has a left-click control, a right-click control, and a 2-state
display control.
Variables:
ObjectName: The object name.
Size: the button size.
state_X_text:
state_X_pressed:
state_X_unpressed:
LeftClickIsPushButton: true / false
Defines the button mode.
true = PUSH button
false = TOGGLE or TRIGGER, as automatically set by
the control connected to the respective button.
RightClickIsPushButton: See above. true / false
-->
<Template>
<PushButton>
<TooltipId><Variable name="TooltipId"/></TooltipId>
<ObjectName><Variable name="ObjectName"/></ObjectName>
<MinimumSize><Variable name="MinimumSize"/></MinimumSize>
<MaximumSize><Variable name="MaximumSize"/></MaximumSize>
<SizePolicy><Variable name="SizePolicy"/></SizePolicy>
<NumberStates>2</NumberStates>
<LeftClickIsPushButton><Variable name="LeftClickIsPushButton"/></LeftClickIsPushButton>
<RightClickIsPushButton><Variable name="RightClickIsPushButton"/></RightClickIsPushButton>
<State>
<Number>0</Number>
<Text><Variable name="state_0_text"/></Text>
<Pressed scalemode="STRETCH_ASPECT"><Variable name="state_0_pressed"/></Pressed>
<Unpressed scalemode="STRETCH_ASPECT"><Variable name="state_0_unpressed"/></Unpressed>
</State>
<State>
<Number>1</Number>
<Text><Variable name="state_1_text"/></Text>
<Pressed scalemode="STRETCH_ASPECT"><Variable name="state_1_pressed"/></Pressed>
<Unpressed scalemode="STRETCH_ASPECT"><Variable name="state_1_unpressed"/></Unpressed>
</State>
<Connection>
<ConfigKey><Variable name="left_connection_control"/></ConfigKey>
<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
<ButtonState>LeftButton</ButtonState>
<ConnectValueToWidget>false</ConnectValueToWidget>
</Connection>
<Connection>
<ConfigKey><Variable name="right_connection_control"/></ConfigKey>
<EmitOnPressAndRelease>true</EmitOnPressAndRelease>
<ButtonState>RightButton</ButtonState>
<ConnectValueToWidget>false</ConnectValueToWidget>
</Connection>
<Connection>
<ConfigKey><Variable name="display_connection_control"/></ConfigKey>
<ConnectValueFromWidget>false</ConnectValueFromWidget>
</Connection>
</PushButton>
</Template>