[Request]Update Flora license version
[apps/home/clock.git] / worldclock / res / edc / worldclock_select_all.edc
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #define SELECTALL_FONT       "Helvetica Neue:style=Roman"
19 #define SELECTALL_FONT_SIZE  44
20
21 #define CHECK_X1 (15/480)
22 #define CHECK_Y1 (14/SELECTALL_H)
23 #define CHECK_X2 ((15+44)/480)
24 #define CHECK_Y2 ((14+44)/SELECTALL_H)
25 #define TEXT_X1  (74/480)
26
27 #define COLOR_DLETE_SELECTALL               59 59 59 255
28
29         group {
30                 name: "select_all";
31
32                 parts {
33                         part {
34                                 name: "bg_rect";
35                                 type: RECT;
36                                 mouse_events: 1;
37                                 scale: 1;
38                                 description {
39                                         state: "default" 0.0;
40                                         rel1 { relative: 0.0 0.0;  }
41                                         rel2 { relative: 1.0 1.0;  }
42                                         color: COLOR_DLETE_SELECTALL;
43                                 }
44                         }
45
46                         GENLIST_PART_BG_IMAGE
47                         GENLIST_PART_BOTTOM_LINE
48
49                         part {
50                                 name: "selectall.txt";
51                                 type: TEXT;
52                                 mouse_events: 0;
53                                 scale: 1;
54                                 description {
55                                         state: "default" 0.0;
56                                         rel1 { relative: TEXT_X1  0.0; }
57                                         rel2 { relative: 1.0 1.0; }
58                                         align: 0.5 0.5;
59                                         color: 72 72 72 255;
60                                         text {
61                                                 font: SELECTALL_FONT;
62                                                 size: SELECTALL_FONT_SIZE;
63                                                 align: 0.0 0.5;
64                                         }
65                                 }
66                                 description { state: "selected" 0.0;
67                                 inherit: "default" 0.0;
68                                 color: 249 249 249 255;
69                                 }
70                         }
71
72                         part{
73                                 name: "selectall.checkbox";
74                                 type: SWALLOW;
75                                 scale: 1;
76                                 mouse_events:   0;
77                                 description {
78                                         /*state: "default" 0.0;*/
79                                         fixed: 1 0;
80                                         align: 1.0 0.5;
81                                         aspect: 1.0 1.0;
82                                         aspect_preference: VERTICAL;
83                                         rel1{ relative: CHECK_X1 CHECK_Y1; }
84                                         rel2{ relative: CHECK_X2 CHECK_Y2; }
85                                 }
86                         }
87                         GENLIST_PART_DISCLIP
88                 }
89
90                 programs {
91                         // signal: elm,state,%s,active
92                         //   a "check" item named %s went active
93                         // signal: elm,state,%s,passive
94                         //   a "check" item named %s went passive
95                         // default is passive
96                         program {
97                                 name:    "go_active";
98                                 signal:  "mouse,down,*";
99                                 source:  "bg_rect";
100                                 action:  STATE_SET "selected" 0.0;
101                                 target:  "bg_image";
102                                 target:  "selectall.txt";
103                         }
104                         program {
105                                 name:    "go_passive";
106                                 signal:  "mouse,up,*";
107                                 source:  "bg_rect";
108                                 action:  STATE_SET "default" 0.0;
109                                 target:  "bg_image";
110                                 target:  "selectall.txt";
111                         }
112                 }
113         }