31862cd6f94d81902e87b30ea251ead5d24be98e
[euphoria.git] / data / themes / iio / iio.edc
1 #include "../common.inc"
2
3 #include "macros/vpanel.edc"
4 #include "macros/fd_entity.edc"
5
6 #define RIGHT "right-"
7 #define LEFT "left-"
8
9         images { 
10 #include "img/images.edc" 
11         }
12
13         fonts { 
14 #include "fonts/fonts.edc"
15         }
16
17 // author: tokyo
18 // esmart.filedialog by atmos
19 // iio for euphoria
20 // various fixed by trill
21
22         collections { 
23         group { name, "euphoria"; min, 413 94; max, 413 94;
24
25         data {
26                 item, "shaped" "you bet";
27         }
28
29         script {
30                 public message (Msg_Type:type, id, ...)
31                 {
32                         switch (id) {
33                                 case MSG_ID_SET_SONGNAME: {
34                                         new buf[128];
35
36                                         if (type != MSG_STRING_SET || numargs () < 5)
37                                                 return;
38
39                                         getsarg (2, buf, 128);
40                                         set_text (PART:"artist_name", buf);
41
42                                         getsarg (3, buf, 128);
43                                         set_text (PART:"song_name", buf);
44
45                                         getsarg (4, buf, 128);
46                                         set_text (PART:"album_name", buf);
47                                 }
48                         }
49                 }
50         }
51
52             parts { 
53 #include "collections/base_to.edc" 
54             }
55             programs { 
56 #include "programs/controls_to.edc" 
57             }
58         }
59
60         group { name, "playlist_item"; min, 122 9; max, 122 9;  
61         parts { 
62 #include "collections/playlist.edc" 
63         }
64         programs { 
65 #include "programs/playlist.edc" 
66             } 
67         }
68 /*
69         group { name, "alternate"; min, 93 187; max, 93 187;
70         parts { 
71 #include "collections/switch.edc" 
72             }
73         programs { 
74 #include "programs/switch.edc" 
75             } 
76         }
77 */
78 group { name, "esmart.filedialog"; min, 413 188; max, 413 9999;
79         data {
80 #include "hashes/containers.edc"
81 #include "hashes/window.edc"
82         }
83
84         parts { 
85 #include "collections/esmart_fd.edc" 
86             }
87         programs { 
88 #include "programs/esmart_fd.edc" 
89             } 
90         }
91         group { name, "esmart.filedialog.file"; min, 80 15; max, 800 15;
92             parts {
93                 FD_ENTITY("file", 1.0 0.5)
94             }
95             programs {
96                 FD_ENTITY_PROGS("file")
97             }
98         }
99         group { name, "esmart.filedialog.directory"; min, 80 15; max, 800 15;
100             parts {
101                 FD_ENTITY("directory", 0.0 0.5)
102             }
103             programs {
104                 FD_ENTITY_DIRECTORY_PROGS("directory")
105             }
106         }
107 }