Initial commit.
[euphoria.git] / data / themes / iio / programs / controls_to.edc
1 program { 
2         name, "titlebar_click"; signal, "mouse,clicked,*"; source, BASE; 
3         action, SIGNAL_EMIT "RAISE" BASE; }
4 program {
5         name, "rslider_bar_click"; signal, "mouse,clicked,*"; source, "CenterClipArea"; 
6         action, SIGNAL_EMIT "RAISE" "CenterClipArea"; }
7
8 #define PB "PLAYBACK_STATE_"
9 ///////////////////////////////////////////////////////////////////////
10 // slides
11 /*
12 program { name, "hide_Lpanel"; signal, "mouse,clicked,*"; source, LEFT"border";
13         action, STATE_SET "slide" 0.0; transition, DECELERATE, 0.5; 
14         target, LEFT"border"; target, LEFT"border-slide"; target, LEFT"lcd";
15         target, "trans_Rect";
16 }
17
18 program { name, "show_Lpanel"; signal, "mouse,clicked,*"; source, LEFT"border-slide";
19         action, STATE_SET "default" 0.0; transition, DECELERATE, 0.5;
20         target, LEFT"border"; target, LEFT"border-slide"; target, LEFT"lcd";
21         target, "trans_Rect";
22 }
23
24 program { name, "hide_Rpanel"; signal, "mouse,clicked,*"; source, RIGHT"border";
25         action, STATE_SET "slide" 0.0; transition, DECELERATE, 0.5; 
26         target, RIGHT"border"; target, RIGHT"border-slide"; target, RIGHT"lcd";
27 }
28
29 program { name, "show_Rpanel"; signal, "mouse,clicked,*"; source, RIGHT"border-slide";
30         action, STATE_SET "default" 0.0; transition, DECELERATE, 0.5;
31         target, RIGHT"border"; target, RIGHT"border-slide"; target, RIGHT"lcd";
32 }
33 */
34 ///////////////////////////////////////////////////////////////////////
35 // playback signals
36 // no longer in use
37
38 //program { name, "pb_started";  signal, PB"PLAYING"; source, "*";
39 //      action, SIGNAL_EMIT "PLAY" "play_button"; 
40 //}
41 //
42 //program { 
43 //      name, "pb_paused"; signal, PB"PAUSED"; source, "*";
44 //      action, SIGNAL_EMIT "PAUSE" "pause_button"; 
45 //} 
46 //
47 //program { 
48 //      name, "pb_stopped"; signal, PB"STOPPED"; source, "*";
49 //      action, SIGNAL_EMIT "STOP" "stop_button"; 
50 //}
51
52 ///////////////////////////////////////////////////////////////////////
53 // seeker program
54
55 program { name, "seeker-start"; signal, "mouse,down,1"; source, "seeker_grabber";
56         action, SIGNAL_EMIT "SEEKER_START" ""; 
57 }
58      
59 program { name, "seeker-update"; signal, "mouse,move"; source, "seeker_grabber";
60         action, SIGNAL_EMIT "SEEKER_UPDATE" ""; 
61 }
62       
63 program { name, "seeker-stop"; signal, "mouse,up,1"; source, "seeker_grabber";
64         action, SIGNAL_EMIT "SEEKER_STOP" ""; 
65 }
66 ///////////////////////////////////////////////////////////////////////
67 // switch
68 /*
69 program { name, "switch_hi"; signal, "mouse,in"; source, "switch_stance";
70         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, "switch_stance";
71 }
72 program { name, "switch_unhilited"; signal, "mouse,out";  source, "switch_stance";
73         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, "switch_stance";
74 }
75 program { name, "switch_clicked"; signal, "mouse,down,*"; source, "switch_stance";
76         action, STATE_SET "clicked" 0.0; transition, LINEAR 1.0; target, "switch_stance";
77 }
78 program { name, "switch_unclicked"; signal, "mouse,up,*"; source, "switch_stance";
79         action, STATE_SET "clicked" 0.0; transition, LINEAR 1.0; target, "switch_stance";
80 }
81 program { name, "switch_exec"; signal,  "mouse,down,*"; source, "switch_stance";
82         action, SIGNAL_EMIT "SWITCH_GROUP" "alternate"; }
83 */
84 ///////////////////////////////////////////////////////////////////////
85
86 #define PLAY "play_button"
87
88 program { name, "play_hilited"; signal, "mouse,in"; source, PLAY;
89         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, PLAY;
90         /*after, "play_unhilited";*/ in, 0.15 0.0;
91 }
92 program { name, "play_unhilited"; signal, "mouse,out"; source, PLAY;
93         action, ACTION_STOP; target, "play_hilited";
94         after, "play_unhilited_real";
95 }       
96 program { name, "play_unhilited_real";
97         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, PLAY;
98 }       
99 program { name, "play_click"; signal, "mouse,down,*";source, PLAY;
100         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, PLAY;
101         after, "play_unclick"; in, 0.15 0.0;
102 }       
103 program { name, "play_unclick"; signal, "mouse,up,*"; source, PLAY;
104         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, PLAY;
105 }
106 program { name, "play_click_emission"; signal, "mouse,down,*"; source, PLAY;
107         action, SIGNAL_EMIT "playback.play" PLAY; }
108
109 #define PREV "prev_button"
110
111 program { name, "prev_button_hilited"; signal, "mouse,in"; source, PREV;
112         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, PREV;
113         /*after, "prev_button_unhilited";*/ in, 0.15 0.0;
114 }
115 program { name, "prev_button_unhilited"; signal, "mouse,out"; source, PREV;
116         action, ACTION_STOP; target, "prev_button_hilited";
117         after, "prev_button_unhilited_real";
118 }
119 program { name, "prev_button_unhilited_real";
120         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, PREV;
121 }
122 program { name, "prev_clicked"; signal, "mouse,down,*"; source, PREV;
123         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, PREV;
124         after, "prev_unclicked"; in, 0.15 0.0;
125 }
126 program { name, "prev_unclicked"; signal, "mouse,up,*"; source, PREV;
127         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, PREV;
128 }
129 program { name, "previous_click"; signal, "mouse,down,*"; source, PREV;
130         action, SIGNAL_EMIT "playback.prev" PREV; }
131
132 #define NEXT "next_button"
133
134 program { name, "next_hilited"; signal, "mouse,in"; source, NEXT;
135         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, NEXT;
136         /*after, "next_unhilited";*/ in, 0.15 0.0;
137 }
138 program { name, "next_unhilited"; signal, "mouse,out"; source, NEXT;
139         action, ACTION_STOP; target, "next_hilited";
140         after, "next_unhilited_real";
141 }
142 program { name, "next_unhilited_real";
143         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, NEXT;
144 }
145 program { name, "next_click"; signal, "mouse,down,*"; source, NEXT;
146         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, NEXT;
147         after, "next_unclick"; in, 0.15 0.0;
148 }
149 program { name, "next_unclick"; signal, "mouse,up,*"; source, NEXT;
150         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, NEXT;
151 }
152 program { name, "next_click_emission"; signal, "mouse,down,*"; source, NEXT;
153         action, SIGNAL_EMIT "playback.next" NEXT; }
154
155 #define PAUSE "pause_button"
156
157 program { name, "pause_hilited"; signal, "mouse,in"; source, PAUSE;
158         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, PAUSE;
159         /*after, "pause_unhilited";*/ in, 0.15 0.0;
160 }
161 program { name, "pause_unhilited"; signal, "mouse,out"; source, PAUSE;
162         action, ACTION_STOP; target, "pause_hilited";
163         after, "pause_unhilited_real";
164 }
165 program { name, "pause_unhilited_real";
166         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, PAUSE;
167 }
168 program { name, "pause_click"; signal, "mouse,down,*"; source, PAUSE;
169         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, PAUSE;
170 }
171 program { name, "pause_unclick"; signal, "mouse,up,*"; source, PAUSE;
172         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, PAUSE;
173 }
174 program { name, "pause_click_emission"; signal, "mouse,down,*"; source, PAUSE;
175         action, SIGNAL_EMIT "PAUSE" PAUSE; }
176
177 #define STOP "stop_button"
178
179 program { name, "stop_hilited"; signal, "mouse,in"; source, STOP;
180         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, STOP;
181         /*after, "stop_unhilited";*/ in, 0.15 0.0;
182
183 program { name, "stop_unhilited"; signal, "mouse,out"; source, STOP;
184         action, ACTION_STOP; target, "stop_hilited";
185         after, "stop_unhilited_real";
186 }       
187 program { name, "stop_unhilited_real";
188         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, STOP;
189 }
190 program { name, "stop_click"; signal, "mouse,down,*"; source, STOP;
191         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, STOP;
192         after, "stop_unclick"; in, 0.15 0.0;
193 }
194 program { name, "stop_unclick"; signal, "mouse,up,*"; source, STOP;
195         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, STOP;
196 }
197 program { name, "stop_click_emission"; signal, "mouse,down,*"; source, STOP;
198         action, SIGNAL_EMIT "STOP" STOP; }
199 ///////////////////////////////////////////////////////////////////////
200
201 #define ADD "add_button"
202 #define DELETE "delete_button"
203 #define EDIT "edit_button"
204
205 program { name, "addFile_hilited"; signal, "mouse,in"; source, ADD;
206         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, ADD;
207 }
208 program { name, "addFile_unhilited"; signal, "mouse,out";  source, ADD;
209         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, ADD;
210 }
211 program { name, "addFile_clicked"; signal, "mouse,down,1"; source, ADD;
212         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, ADD;
213 }
214 program { name, "addFile_unclicked"; signal, "mouse,down"; source, ADD;
215         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, ADD;
216 }
217 program { name, "AddFile"; signal,  "mouse,up,1"; source, ADD;
218         action, SIGNAL_EMIT "file_dialog.open" ADD; }
219 //
220 program { name, "deleteFile_hilited"; signal, "mouse,in"; source, DELETE;
221         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, DELETE;
222 }
223 program { name, "deleteFile_unhilited"; signal, "mouse,out";  source, DELETE;
224         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, DELETE;
225 }
226 program { name, "deleteFile_clicked"; signal, "mouse,down,1"; source, DELETE;
227         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, DELETE;
228 }
229 program { name, "deleteFile_unclicked"; signal, "mouse,down"; source, DELETE;
230         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, DELETE;
231 }
232 program { name, "deleteFile"; signal,  "mouse,up,1"; source, DELETE;
233         action, SIGNAL_EMIT "PLAYLIST_DEL" "*"; }
234 //
235 program { name, "editFile_hilited"; signal, "mouse,in"; source, EDIT;
236         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, EDIT;
237 }
238 program { name, "editFile_unhilited"; signal, "mouse,out";  source, EDIT;
239         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, EDIT;
240 }
241 program { name, "editFile_clicked"; signal, "mouse,down,1"; source, EDIT;
242         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, EDIT;
243 }
244 program { name, "editFile_unclicked"; signal, "mouse,down"; source, EDIT;
245         action, STATE_SET "clicked" 0.0; transition, LINEAR 0.1; target, EDIT;
246 }
247 program { name, "editFile"; signal,  "mouse,up,1"; source, EDIT;
248         action, SIGNAL_EMIT "PLAYLIST_EDIT" EDIT; }
249
250 ///////////////////////////////////////////////////////////////////////
251 // program: quit
252
253 program { name, "quit_hilited"; signal, "mouse,in"; source, "quit";
254         action, STATE_SET "hilited" 0.0; transition, LINEAR 0.1; target, "quit";
255 }
256 program { name, "quit_unhilited"; signal, "mouse,out";  source, "quit";
257         action, STATE_SET "default" 0.0; transition, LINEAR 0.1; target, "quit";
258 }
259 program { name, "quit_clicked"; signal, "mouse,down,*"; source, "quit";
260         action, STATE_SET "clicked" 0.0; transition, LINEAR 1.0; target, "quit";
261 }
262 program { name, "quit_unclicked"; signal, "mouse,up,*"; source, "quit";
263         action, STATE_SET "clicked" 0.0; transition, LINEAR 1.0; target, "quit";
264 }
265 program { name, "quit_exit"; signal,  "mouse,down,*"; source, "quit";
266         action, SIGNAL_EMIT "close" "quit"; }