summaryrefslogtreecommitdiff
path: root/examples/example.options
blob: fc32c916bf07cf510cb21b09fef2f5b8357e1e01 (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
<plugin name="example">
	<screen>
		<group name="Nice options">
			<subgroup name="First subgroup">
				<option name="intoption" type="int">
					<short>test int option</short>
					<long>test int option long</long>
					<default>5</default>
					<min>1</min>
					<max>10</max>
				</option>
				<option name="floatoption" type="float">
					<short>test float option</short>
					<long>test float option long</long>
					<default>1.2</default>
					<min>0.0</min>
					<max>5.0</max>
					<precision>0.1</precision>
				</option>
				<option name="booloption" type="bool">
					<short>test bool option </short>
					<long>test bool option long</long>
					<default>true</default>
				</option>
				<option name="stringoption" type="string">
					<short>test string option </short>
					<long>test string option long</long>
					<default>Hello world 1</default>
				</option>
				<option name="color" type="color">
					<short>test color option</short>
					<long>test color option long</long>
					<red>0xffff</red>
					<green>0xcf</green>
					<blue>65535</blue>
					<alpha>0x1f</alpha>
				</option>
				<option name="stringlist" type="stringlist">
					<short>test stringlist option</short>
					<long>test stringlist option long</long>
					<hints>file;image;</hints>
					<default>string1</default>
					<default>string2</default>
					<default raw="true">"string3"</default>
				</option>
				<option name="enumoption" type="enum">
					<short>test enum option</short>
					<long>test enum option long</long>
					<value name="val1">Enum Value 1</value>
					<value name="val2">Enum Value 2</value>
					<value name="val3" default="true">Enum Value 3</value>
					<value name="val4">Enum Value 4</value>
				</option>
			</subgroup>
			<subgroup name="Second subgroup">
				<option name="myselection" type="selection">
					<short>test selection option</short>
					<long>test selection option long</long>
					<value name="val1">Value 1</value>
					<value name="val2" default="true">Value 2</value>
					<value name="val3">Value 3</value>
					<value name="val4" default="true">Value 4</value>
				</option>
			</subgroup>
		</group>
		<option name="myname" type="string">
			<short>test string option name</short>
			<long>test string option name long</long>
			<hint>window</hint>
			<default>My name</default>
		</option>
		<subgroup name="Last subgroup">
			<option name="size" type="int">
				<short>test int option size</short>
				<long>test int option size long</long>
				<default>3</default>
				<min>2</min>
				<max>4</max>
			</option>
		</subgroup>
	</screen>
	<display>
		<group name="Nice options">
			<subgroup name="Another subgroup">
				<option name="action1" type="action">
					<short>test action 1</short>
					<long>test key/mouse action long</long>
					<key>Alt+F2</key>
					<mouse>Button1</mouse>
				</option>
			</subgroup>
			<option name="d_action2" type="action">
				<short>test action 2</short>
				<long>test key/mouse both without default action long</long>
				<key></key>
				<mouse></mouse>
			</option>
			<option name="float2" type="float">
				<short>test float option 2</short>
				<long>test float option 2 long</long>
				<default>1.3</default>
				<min>0.0</min>
				<max>5.0</max>
				<precision>0.01</precision>
			</option>
		</group>
		<option name="action" type="action">
			<short>test action 3</short>
			<long>test all action long</long>
			<key state="init">Control+A</key>
			<mouse state="init">Button2</mouse>
			<edge state="init,initdnd">topleft,topright</edge>
			<bell>true</bell>
		</option>
	</display>
</plugin>