-
Notifications
You must be signed in to change notification settings - Fork 1
/
slidercomposed.sublime-snippet
62 lines (60 loc) · 2.77 KB
/
slidercomposed.sublime-snippet
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
<snippet>
<!-- Example: Hello, ${1:this} is a ${2:snippet}. -->
<content><![CDATA[
<!--
Widget name:
SliderComposed
Description:
Display cross-, line-, and pitch-fader.
Tags:
ObjectName:
Optional. Allows setting of widget object name, useful for styling the widget explicitly using CSS.
TooltipId:
Tooltips to display on mouse-over, available IDs are in src/skin/tooltips.cpp
If no existing tooltip meets your needs, you can create a custom tooltip using the <Tooltip> tag.
SizePolicy:
Tell Mixxx how widgets should grow or shrink based on the available space. The <SizeHint>
property is formatted as the skin abbreviation for the horizontal size and the skin abbreviation
for the vertical size policy separated by a comma.
http://mixxx.org/wiki/doku.php/creating_skins#properties_common_to_all_widgets
MinimimSize:
Tell Mixxx the smallest size a widget should be. The widget will never be resized to be smaller
than this size. <MinimumSize> is formatted as the minimum horizontal size and the minimum
vertical size separated by a comma. A value of -1 for a dimension means no minimum in that dimension.
MaximumSize:
Tell Mixxx the largest size a widget should be. The widget will never be resized to be larger
than this size. <MaximumSize> is formatted as the maximum horizontal size and the maximum
vertical size separated by a comma. A value of -1 for a dimension means no maximum in that dimension.
Handle:
Slider image (knob) which can be dragged with mouse. Supports *.png, *.jpg, *.svg
Slider:
Slider background image the <Handle> moves up and down on. Supports *.png, *.jpg, *.svg
Horizontal:
Slider orientation (``true`` or ``false``)
ConfigKey:
See http://mixxx.org/wiki/doku.php/mixxxcontrols
A combination of ``Group,Control``, e.g
* PreviewDeck volume fader = <ConfigKey>PreviewDeck,volume</ConfigKey>
* Channel 1 Pitch (Speed) fader = <ConfigKey>Channel1,rate</ConfigKey>
* Crossfader = <ConfigKey>Master,crossfader</ConfigKey>
-->
<SliderComposed>
<ObjectName>${10:Channel_volume}</ObjectName>
<TooltipId>${20:channel_volume}</TooltipId>
<SizePolicy>${30:min,me}</SizePolicy>
<MinimumSize>${40:40,100}</MinimumSize>
<MaximumSize>${50:40-1}</MaximumSize>
<Handle>${60:handle.png}</Handle>
<Slider>${70:slider.png}</Slider>
<Horizontal>false</Horizontal>
<Connection>
<ConfigKey>[Channel${80:1},volume]</ConfigKey>
</Connection>
</SliderComposed>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>slidercomposed</tabTrigger>
<description>Mixxx -> SliderComposed: Display cross-, line-, and pitch-fader </description>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.xml</scope>
</snippet>