Handle broadcast_playlist_loaded.
[euphoria.git] / data / themes / winter / groups / playlist_item.edc
1     group {
2         name, "playlist_item";
3         min, 50 15;
4         max, 9999 15;
5         parts {
6             part {
7               name, "bg";
8               type, RECT;
9               mouse_events, 1;
10
11               description {
12                 state, "default" 0.0;
13                 color, 0 0 0 0;
14               }
15             }
16             part {
17                 name, "title";
18                 type, TEXT;
19                 mouse_events, 1;
20                 description {
21                     state, "default" 0.0;
22                     color, 0 0 0 128;
23                     rel1 {
24                         relative, 0.0 0.0;
25                         offset, 5 0;
26                     }
27                     rel2 {
28                         to_x, "duration";
29                         relative, 0.0 1.0;
30                         offset, -5 0;
31                     }
32                     text {
33                         text, "title";
34                         font, "Vera";
35                         size, 12;
36                         align, 0.0 0.0;
37                     }
38                 }
39                 description {
40                     state, "selected" 0.0;
41                     color, 0 0 0 255;
42                     rel1 {
43                         relative, 0.0 0.0;
44                         offset, 5 0;
45                     }
46                     rel2 {
47                         to_x, "duration";
48                         relative, 0.0 1.0;
49                         offset, -5 0;
50                     }
51                     text {
52                         text, "title";
53                         font, "Vera";
54                         size, 12;
55                         align, 0.0 0.0;
56                     }
57                 }
58             } //part
59             part {
60                 name, "duration";
61                 type, TEXT;
62                 mouse_events, 1;
63                 description {
64                     state, "default" 0.0;
65                     color, 0 0 0 128;
66                     rel1 {
67                         relative, 1.0 0.0;
68                         offset, -30 0;
69                     }
70                     rel2 {
71                         relative, 1.0 1.0;
72                         offset, -5 -1;
73                     }
74                     text {
75                         text, "00:00";
76                         font, "Vera";
77                         size, 12;
78                         min, 1 1;
79                         align, 1.0 0.0;
80                     }
81                 }
82                 description {
83                     state, "selected" 0.0;
84                     color, 0 0 0 255;
85                     rel1 {
86                         relative, 1.0 0.0;
87                         offset, -30 0;
88                     }
89                     rel2 {
90                         relative, 1.0 1.0;
91                         offset, -5 -1;
92                     }
93                     text {
94                         text, "00:00";
95                         font, "Vera";
96                         size, 12;
97                         min, 1 1;
98                         align, 1.0 0.0;
99                     }
100                 }
101             } //part
102         
103         } //parts
104
105         programs {
106             
107             program {
108                 name, "selected_mouse";
109                 signal, "mouse,clicked,1";
110                 source, "*";
111                 action, SIGNAL_EMIT "PLAYLIST_ITEM_SELECTED" "";
112             } 
113             program {
114                 name, "selected";
115                 signal, "PLAYLIST_ITEM_SELECTED";
116                 source, "";
117                 action, STATE_SET "selected" 0.0;
118                 transition, DECELERATE 0.5;
119                 target, "title";
120                 target, "duration";
121             } 
122             program {
123                 name, "unselected";
124                 signal, "PLAYLIST_ITEM_UNSELECTED";
125                 source, "";
126                 action, STATE_SET "default" 0.0;
127                 transition, DECELERATE 0.5;
128                 target, "title";
129                 target, "duration";
130             } 
131             program {
132                 name, "play_it";
133                 signal, "mouse,down,1,double";
134                 source, "*";
135                 action, SIGNAL_EMIT "PLAYLIST_ITEM_PLAY" "";
136             } 
137             program {
138                 name, "scroll_up";
139                 signal, "mouse,wheel,0,-1";
140                 source, "*";
141                 action, SIGNAL_EMIT "PLAYLIST_SCROLL_UP" "";
142             } 
143             program {
144                 name, "scroll_down";
145                 signal, "mouse,wheel,0,1";
146                 source, "*";
147                 action, SIGNAL_EMIT "PLAYLIST_SCROLL_DOWN" "";
148             } 
149         
150         } //programs
151         
152     } //group