Initial commit.
[euphoria.git] / data / themes / winter / groups / collapsed.edc
1   group {
2     name, "collapsed";
3     min, 118 32;
4     max, 9999 32;
5     parts {
6       part {
7         name, "main";
8         mouse_events, 1;
9         repeat_events, 1;
10         description {
11           state, "default" 0.0;
12           min, 110 32;
13           max, 110 32;
14           rel1 {
15             relative, 0 0;
16             offset, 0 0;
17           }
18           rel2 {
19             relative, 0 1;
20             offset, 110 -1;
21           }
22           image {
23               normal, "small-main.png";
24                   border, 10 2 2 2;
25           }
26         }
27       } //part
28       part {
29         name, "left-grad";
30         mouse_events, 0;
31         description {
32           state, "default" 0.0;
33           min, 9 32;
34           max, 9 32;
35           color, WINTER_COLOR;
36           rel1 {
37             to, "main";
38             relative, 0 0;
39             offset, 0 0;
40           }
41           rel2 {
42             to, "main";
43             relative, 0 1;
44             offset, 9 -1;
45           }
46           image {
47               normal, "small-left-grad.png";
48           }
49         }
50       } //part
51       part {
52         name, "right";
53         mouse_events, 1;
54         repeat_events, 1;
55         description {
56           state, "default" 0.0;
57           min, 9 32;
58           max, 9 32;
59           rel1 {
60             relative, 1 0;
61             offset, -9 0;
62           }
63           rel2 {
64             relative, 1 1;
65             offset, -1 -1;
66           }
67           image {
68               normal, "small-right.png";
69           }
70         }
71       } //part
72       part {
73         name, "right-grad";
74         mouse_events, 0;
75         description {
76           state, "default" 0.0;
77           min, 9 32;
78           max, 9 32;
79           color, WINTER_COLOR;
80           rel1 {
81             to, "right";
82             relative, 0 0;
83             offset, 0 0;
84           }
85           rel2 {
86             to, "right";
87             relative, 1 1;
88             offset, -1 -1;
89           }
90           image {
91               normal, "small-right-grad.png";
92           }
93         }
94       } //part
95       part {
96         name, "panel";
97         mouse_events, 1;
98         repeat_events, 1;
99         description {
100           state, "default" 0.0;
101           min, 0 30;
102           max, 9999 30;
103           rel1 {
104             to, "main";
105             relative, 1 0;
106             offset, 0 1;
107           }
108           rel2 {
109             to, "right";
110             relative, 0 1;
111             offset, -1 -2;
112           }
113           image {
114               normal, "small-panel.png";
115                   border, 10 2 2 2;
116           }
117         }
118       } //part
119
120     BUTTON("prev", "small-prev1.png", "small-prev2.png", 16, 14,
121            "main", 0 1, 31 -17,
122            "main", 0 1, 47 -3);
123     BUTTON("rew", "small-rew1.png", "small-rew2.png", 11, 14,
124            "main", 0 1, 45 -17,
125            "main", 0 1, 56 -3);
126     TOGGLE_BUTTON("play", "small-play1.png", "small-play2.png",
127            "small-pause1.png", "small-pause2.png", 13, 13,
128            "main", 0 1, 55 -17,
129            "main", 0 1, 68 -4);
130     BUTTON("ff", "small-ff1.png", "small-ff2.png", 11, 14,
131            "main", 0 1, 66 -17,
132            "main", 0 1, 77 -3);
133     BUTTON("next", "small-next1.png", "small-next2.png", 16, 14,
134            "main", 0 1, 75 -17,
135            "main", 0 1, 91 -3);
136
137       part {
138         name, "seekerTrough";
139         mouse_events, 0;
140         description {
141           state, "default" 0.0;
142           min, 17 4;
143           max, 9999 4;
144           rel1 {
145             to, "main";
146             relative, 0 0;
147             offset, 18 7;
148           }
149           rel2 {
150             to, "main";
151             relative, 1 0;
152             offset, -9 11;
153           }
154           image {
155               normal, "small-seeker-trough.png";
156                   border, 3 3 2 2;
157           }
158         }
159       } //part
160
161       part {
162         name, "seekerBar";
163         mouse_events, 0;
164         description {
165           state, "default" 0.0;
166           min, 0 2;
167           max, 9999 2;
168           color, WINTER_COLOR;
169           rel1 {
170             to, "seekerTrough";
171             relative, 0 0;
172             offset, 1 1;
173           }
174           rel2 {
175             to_x, "seeker";
176             to_y, "seekerTrough";
177             relative, 0 1;
178             offset, 0 -2;
179           }
180           image {
181               normal, "small-seeker-bar.png";
182                   border, 3 3 2 2;
183           }
184         }
185       } //part
186
187       part {
188         name, "seeker";
189         type, RECT;
190         mouse_events, 0;
191         dragable {
192           x, 1 1 1;
193           y, 0 0 0;
194           confine, "seekerTrough";
195         }
196         description {
197           state, "default" 0.0;
198           visible, 0;
199           min, 1 4;
200           max, 1 4;
201           rel1 {
202             to, "seekerTrough";
203             relative, 0 0;
204             offset, 0 0;
205           }
206           rel2 {
207             to, "seekerTrough";
208             relative, 1 1;
209             offset, -1 -1;
210           }
211         }
212       } //part
213
214       part {
215         name, "seeker_grabber";
216         type, RECT;
217         mouse_events, 1;
218         description {
219           state, "default" 0.0;
220           visible, 1;
221           color, 0 0 0 0;
222           rel1 {
223             to, "seekerTrough";
224             relative, 0 0;
225             offset, -2 -2;
226           }
227           rel2 {
228             to, "seekerTrough";
229             relative, 1 1;
230             offset,  1 1;
231           }
232         }
233       } //part
234
235     } //parts 
236
237     programs {
238       BUTTON_PROG("prev", "playback.prev")
239       BUTTON_PROG3("rew", "SEEK_BACK_START", "SEEK_BACK_STOP")
240       TOGGLE_BUTTON_PROG("play", "playback.play", "playback.pause")
241       BUTTON_PROG3("ff", "SEEK_FORWARD_START", "SEEK_FORWARD_STOP")
242       BUTTON_PROG("next", "playback.next")
243
244       program {
245         name, "switch";
246         signal, "mouse,down,1,double";
247         source, "main";
248         action, SIGNAL_EMIT "SWITCH_GROUP" "euphoria";
249       }
250       program {
251         name, "seeker-start";
252         signal, "mouse,down,1";
253         source, "seeker_grabber";
254         action, SIGNAL_EMIT "SEEKER_START" "";
255       }
256       program {
257         name, "seeker-update";
258         signal, "mouse,move";
259         source, "seeker_grabber";
260         action, SIGNAL_EMIT "SEEKER_UPDATE" "";
261       }
262       program {
263         name, "seeker-stop";
264         signal, "mouse,up,1";
265         source, "seeker_grabber";
266         action, SIGNAL_EMIT "SEEKER_STOP" "";
267       }
268       program {
269         name, "toggle-playing";
270         signal, "PLAYBACK_STATE_PLAYING";
271         source, "*";
272         action, STATE_SET "toggled" 0.0; 
273         transition, LINEAR 0.0; 
274         target, "play"; 
275         target, "play-2"; 
276       }
277       program {
278         name, "toggle-stopped";
279         signal, "PLAYBACK_STATE_STOPPED";
280         source, "*";
281         action, STATE_SET "default" 0.0; 
282         transition, LINEAR 0.0; 
283         target, "play"; 
284         target, "play-2"; 
285       }
286       program {
287         name, "toggle-paused";
288         signal, "PLAYBACK_STATE_PAUSED";
289         source, "*";
290         action, STATE_SET "default" 0.0; 
291         transition, LINEAR 0.0; 
292         target, "play"; 
293         target, "play-2"; 
294       }
295     } //programs
296   } //group