forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! add PlayButton: drop previewing HotcueButton onto it to latch …
…`play`
- Loading branch information
Showing
7 changed files
with
135 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!DOCTYPE template> | ||
<!-- | ||
Description: | ||
A button that has a left-click control, a right-click control, and a 2-state | ||
display control. | ||
Left-click control is one of the play controls. | ||
HotcueButtons of the same player (engine, not necessarily same player in skin) | ||
can be dropped onto it in order to latch play when previewing from hotcue. | ||
Make sure to use one of the 'play' ToolTipIDs so the dnd behavior is discoverable. | ||
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> | ||
<PlayButton> | ||
<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> | ||
<Group><Variable name="group"/></Group> | ||
<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> | ||
</PlayButton> | ||
</Template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
res/skins/Tango/controls/button_play_2state_right_display.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!-- | ||
Description: | ||
A button that has click or display controls. | ||
Left-click control is one of the play controls. | ||
HotcueButtons of the same player (engine, not necessarily same player in skin) | ||
can be dropped onto it in order to latch play when previewing from hotcue. | ||
Make sure to use one of the 'play' ToolTipIDs so the dnd behavior is discoverable. | ||
Variables: | ||
ObjectName : object name | ||
ToolTipID : standard Tooltip from mixxx db | ||
see: https://github.com/mixxxdj/mixxx/blob/main/src/skin/legacy/tooltips.cpp | ||
Size : button size | ||
state_X_text : label text for state X | ||
state_X_pressed : background graphic for pressed state X | ||
state_X_unpressed : background graphic for unpressed state X | ||
Align : alignment of text | ||
ConfigKey : left-click control | ||
ConfigKeyRight : right-click control | ||
ConfigKeyDisp : display control | ||
--> | ||
<Template> | ||
<PlayButton> | ||
<TooltipId><Variable name="TooltipId"/></TooltipId> | ||
<ObjectName><Variable name="ObjectName"/></ObjectName> | ||
<Size><Variable name="Size"/></Size> | ||
<NumberStates>2</NumberStates> | ||
<RightClickIsPushButton>true</RightClickIsPushButton> | ||
<Group><Variable name="group"/></Group> | ||
<State> | ||
<Number>0</Number> | ||
<Text><Variable name="state_0_text"/></Text> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
<Pressed scalemode="STRETCH_ASPECT">skins:Tango/buttons/btn_<Variable name="state_0_icon"/></Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skins:Tango/buttons/btn_<Variable name="state_0_icon"/></Unpressed> | ||
</State> | ||
<State> | ||
<Number>1</Number> | ||
<Text><Variable name="state_1_text"/></Text> | ||
<Alignment><Variable name="Align"/></Alignment> | ||
<Pressed scalemode="STRETCH_ASPECT">skins:Tango/buttons/btn_<Variable name="state_1_icon"/></Pressed> | ||
<Unpressed scalemode="STRETCH_ASPECT">skins:Tango/buttons/btn_<Variable name="state_1_icon"/></Unpressed> | ||
</State> | ||
<Connection> | ||
<ConfigKey><Variable name="ConfigKey"/></ConfigKey> | ||
<ButtonState>LeftButton</ButtonState> | ||
</Connection> | ||
<Connection> | ||
<ConfigKey><Variable name="ConfigKeyRight"/></ConfigKey> | ||
<ButtonState>RightButton</ButtonState> | ||
</Connection> | ||
<Connection> | ||
<ConfigKey><Variable name="ConfigKeyDisp"/></ConfigKey> | ||
<ConnectValueFromWidget>false</ConnectValueFromWidget> | ||
</Connection> | ||
</PlayButton> | ||
</Template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters