Initial commit.
[euphoria.git] / data / themes / iio / programs / switch.edc
1
2 // switch_mode
3 program { name, "switch_mode_hilited"; signal, "mouse,in"; source, "sw_base";
4         action, STATE_SET "hilited" 0.0; transition, LINEAR, 0.1; target, "sw_base"; }
5
6 program { name, "switch_mode_un_unhilited"; signal, "mouse,out"; source, "sw_base";
7         action, STATE_SET "default" 0.0; transition, LINEAR, 0.1; target, "sw_base"; }
8
9 program { name, "switch_mode_clicked"; signal, "mouse,down,1"; source, "sw_base";
10         action, STATE_SET "clicked" 0.0; transition, LINEAR, 1.0; target, "sw_base"; }
11
12 program { name, "switch_mode_unclicked"; signal, "mouse,down"; source, "sw_base";
13         action, STATE_SET "clicked" 0.0; transition, LINEAR, 1.0; target, "sw_base"; }
14
15 program { name, "switch_mode_2"; signal, "mouse,down,1"; source, "sw_base";
16         action, SIGNAL_EMIT "SWITCH_GROUP", "euphoria"; }
17 //
18 program { name, "_titlebar_click"; signal, "mouse,clicked,1"; source, "small_base";
19         action, SIGNAL_EMIT "RAISE", "small_base"; }
20 // 
21 program { name, "_play_hilited"; signal, "mouse,in"; source, "_play_button";
22         action, STATE_SET "hilited" 0.0; transition, LINEAR, 0.1; target, "_play_button"; 
23 }
24 program { name, "_play_unhilited"; signal, "mouse,out"; source, "_play_button";
25         action, STATE_SET "default" 0.0; transition, LINEAR, 1.0; target, "_play_button";
26 }       
27 program { name, "_play_click"; signal, "mouse,down,1"; source, "_play_button";
28         action, STATE_SET "clicked" 0.0; transition, LINEAR, 0.1; target, "_play_button";
29 }       
30 program { name, "_play_unclick"; signal, "mouse,down"; source, "_play_button";
31         action, STATE_SET "default" 0.0; transition, LINEAR, 0.1; target, "_play_button";
32 }
33 program { name, "_play_click"; signal, "mouse,down,1"; source, "_play_button";
34         action, SIGNAL_EMIT "playback.play" "play_button"; 
35 }
36
37 //
38 program { name, "_prev_button_hilited"; signal, "mouse,in"; source, "_prev_button";
39         action, STATE_SET "hilited" 0.0; transition, LINEAR, 0.1; target, "_prev_button";
40 }
41 program { name, "_prev_button_unhilited"; signal, "mouse,out"; source, "_prev_button";
42         action, STATE_SET "default" 0.0; transition, LINEAR, 1.0; target, "_prev_button";
43 }
44 program { name, "_prev_clicked"; signal, "mouse,down,1"; source, "_prev_button";
45         action, STATE_SET "clicked" 0.0; transition, LINEAR, 0.1; target, "_prev_button";
46 }
47 program { name, "_prev_unclicked"; signal, "mouse,down"; source, "_prev_button";
48         action, STATE_SET "default" 0.0; transition, LINEAR, 0.1; target, "_prev_button";
49 }
50 program { name, "_previous_click"; signal, "mouse,down,1"; source, "_prev_button";
51         action, SIGNAL_EMIT "playback.prev" "previous_button";
52 }
53         
54 //
55 program { name, "_next_hilited"; signal, "mouse,in"; source, "_next_button";
56         action, STATE_SET "hilited" 0.0; transition, LINEAR, 0.1; target, "_next_button";
57 }
58 program { name, "_next_unhilited"; signal, "mouse,out"; source, "_next_button";
59         action, STATE_SET "default" 0.0; transition, LINEAR, 1.0; target, "_next_button";
60 }
61 program { name, "_next_click"; signal, "mouse,down,1"; source, "_next_button";
62 action, STATE_SET "clicked" 0.0; transition, LINEAR, 0.1; target, "_next_button";
63 }
64 program { name, "_next_unclick"; signal, "mouse,down"; source, "_next_button";
65         action, STATE_SET "default" 0.0; transition, LINEAR, 0.1; target, "_next_button";
66 }
67 program { name, "_next_click"; signal, "mouse,down,1"; source, "_next_button";
68         action, SIGNAL_EMIT "playback.next" "next_button";
69 }
70
71 //
72 program { name, "_pause_hilited"; signal, "mouse,in"; source, "_pause_button";
73         action, STATE_SET "hilited" 0.0; transition, LINEAR, 0.1; target, "_pause_button";
74 }
75 program { name, "_pause_unhilited"; signal, "mouse,out"; source, "_pause_button";
76         action, STATE_SET "default" 0.0; transition, LINEAR, 1.0; target, "_pause_button";
77 }
78 program { name, "_pause_click"; signal, "mouse,down,1"; source, "_pause_button";
79         action, STATE_SET "clicked" 0.0; transition, LINEAR, 0.1; target, "_pause_button";
80 }
81 program { name, "_pause_unclick"; signal, "mouse,down"; source, "_pause_button";
82         action, STATE_SET "default" 0.0; transition, LINEAR, 0.1; target, "_pause_button";
83 }
84 program { name, "_pause_click"; signal, "mouse,down,1"; source, "_pause_button";
85         action, SIGNAL_EMIT "PAUSE" "pause_button";
86 }
87
88 //
89 program { name, "_stop_hilited"; signal, "mouse,in"; source, "_stop_button";
90         action, STATE_SET "hilited" 0.0; transition, LINEAR, 0.1; target, "_stop_button";
91
92 program { name, "_stop_unhilited"; signal, "mouse,out"; source, "_stop_button";
93         action, STATE_SET "default" 0.0; transition, LINEAR, 1.0; target, "_stop_button";
94 }       
95 program { name, "_stop_click"; signal, "mouse,down,1"; source, "_stop_button";
96         action, STATE_SET "clicked" 0.0; transition, LINEAR, 0.1; target, "_stop_button";
97 }
98 program { name, "_stop_unclick"; signal, "mouse,down"; source, "_stop_button";
99         action, STATE_SET "default" 0.0; transition, LINEAR, 0.1; target, "_stop_button";
100 }
101 program { name, "_stop_click"; signal, "mouse,down,1"; source, "_stop_button";
102         action, SIGNAL_EMIT "STOP" "stop_button";
103 }
104
105 program { name, "playback_has_begun"; signal, "PLAYBACK_STATE_PLAYING"; source, "*";
106         action, STATE_SET "active" 0.0; transition, DECELERATE 0.1; 
107         target, "small_lcd"; 
108         target, "strans_Rect";
109         after, "playback_has_begun"; }
110 //
111 program { name, "playback_is_paused"; signal, "PLAYBACK_STATE_PAUSED"; source, "*";
112         action, STATE_SET "default" 0.0; transition, DECELERATE 0.1; 
113         target, "small_lcd";
114         target, "strans_Rect";
115         after, "playback_blink"; }
116 //
117 program { name, "playback_blink"; signal, "PLAYBACK_STATE_PAUSED"; source, "*";
118         action, STATE_SET "active" 0.0; transition, LINEAR 0.5; 
119         target, "small_lcd"; 
120         target, "strans_Rect";
121         after, "playback_is_paused"; }
122 //
123 program { name, "playback_has_stopped"; signal, "PLAYBACK_STATE_STOPPED"; source, "*";
124         action, STATE_SET "default" 0.0; transition, DECELERATE 0.5; 
125         target, "small_lcd";
126         target, "strans_Rect"; }
127 //
128 program { name, "_quit_hilited"; signal, "mouse,in"; source, "_quit";
129         action, STATE_SET "hilited" 0.0; transition, LINEAR, 0.1; target, "_quit"; 
130 }
131 program { name, "_quit_unhilited"; signal, "mouse,out"; source, "_quit"; 
132         action, STATE_SET "default" 0.0; transition, LINEAR, 0.1; target, "_quit";
133 }
134 program { name, "_quit_clicked"; signal, "mouse,down,1"; source, "_quit";
135         action, STATE_SET "clicked" 0.0; transition, LINEAR, 1.0; target, "_quit";
136 }
137 program { name, "_quit_unclicked"; signal, "mouse,down"; source, "_quit";
138         action, STATE_SET "clicked" 0.0; transition, LINEAR, 1.0; target, "_quit";
139 }
140 program { name, "_quit_exit"; signal, "mouse,down,1"; source, "_quit";
141         action, SIGNAL_EMIT "close" "quit";
142 }