upload codes for TIZEN 2.0
[apps/home/clock.git] / worldclock / res / edc / worldclock_search_area.edc
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://www.tizenopensource.org/license
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 #define SEARCH_ADD_VIEW_WIDTH  480
20 //#define ADD_VIEW_HEIGHT 114
21
22 // input area left
23 #define INPUT_LEFT_X1 ((SEARCH_ENTRY_L_R1_X)/SEARCH_ADD_VIEW_WIDTH)
24 #define INPUT_LEFT_Y1 ((SEARCH_ENTRY_C_R1_Y+2)/SEARCHBAR_H)
25 #define INPUT_LEFT_X2 ((SEARCH_ENTRY_L_R1_X)/SEARCH_ADD_VIEW_WIDTH)
26 #define INPUT_LEFT_Y2 ((SEARCH_ENTRY_C_R2_Y-7)/SEARCHBAR_H)
27
28 // input area center
29 #define INPUT_CENTER_X1 ((SEARCH_ENTRY_C_R1_X)/SEARCH_ADD_VIEW_WIDTH)
30 #define INPUT_CENTER_Y1 ((SEARCH_ENTRY_C_R1_Y+2)/SEARCHBAR_H)
31 #define INPUT_CENTER_X2 ((SEARCH_ENTRY_C_R2_X)/SEARCH_ADD_VIEW_WIDTH)
32 #define INPUT_CENTER_Y2 ((SEARCH_ENTRY_C_R2_Y-7)/SEARCHBAR_H)
33
34 // input area right
35 #define INPUT_RIGHT_X1 ((SEARCH_ENTRY_R_R1_X)/SEARCH_ADD_VIEW_WIDTH)
36 #define INPUT_RIGHT_Y1 ((SEARCH_ENTRY_C_R1_Y+2)/SEARCHBAR_H)
37 #define INPUT_RIGHT_X2 ((SEARCH_ENTRY_R_R2_X)/SEARCH_ADD_VIEW_WIDTH)
38 #define INPUT_RIGHT_Y2 ((SEARCH_ENTRY_C_R2_Y-7)/SEARCHBAR_H)
39
40 // button area
41 #define BUTTON_X1 ((412)/SEARCH_ADD_VIEW_WIDTH)
42 #define BUTTON_Y1 ((3)/SEARCHBAR_H)
43 #define BUTTON_X2 ((412+60)/SEARCH_ADD_VIEW_WIDTH)
44 #define BUTTON_Y2 ((3+60)/SEARCHBAR_H)
45
46 // entry swallow
47 #define ENTRY_SWALLOW_X1 ((SEARCH_ENTRY_C_R1_X)/SEARCH_ADD_VIEW_WIDTH)
48 #define ENTRY_SWALLOW_Y1 ((SEARCH_ENTRY_C_R1_Y)/SEARCHBAR_H)
49 #define ENTRY_SWALLOW_X2 ((SEARCH_ENTRY_C_R2_X)/SEARCH_ADD_VIEW_WIDTH)
50 #define ENTRY_SWALLOW_Y2 ((SEARCH_ENTRY_C_R2_Y)/SEARCHBAR_H)
51
52     images {
53         image: "label_bg.png" COMP;
54
55         image: "01_search_input_bg.png" COMP;
56         image: "01_search_button.png" COMP;
57         image: "01_search_input_field_bg_l.png" COMP;
58         image: "01_search_input_field_bg_c.png" COMP;
59         image: "01_search_input_field_bg_r.png" COMP;
60
61     }
62
63     group {
64         name: "search_area";
65
66         parts {
67             part {
68                 name: "search_rect";
69                 type: RECT;
70                 mouse_events: 0;
71                 scale: 1;
72                 description {
73                     state: "default" 0.0;
74                     rel1 { relative: 0.0 0.0;  }
75                     rel2 { relative: 1.0 1.0;  }
76                     color: 0 0 0 0;
77                 }
78             }
79
80             /* Image bg */
81             part {
82                 name: "search_input_bg";
83                 type: IMAGE;
84                 mouse_events: 0;
85                 scale: 1;
86                 description {
87                     state: "default" 0.0;
88                     visible: 1;
89                     rel1 { relative: 0.0 0.0; }
90                     rel2 { relative: 1.0 1.0; }
91                     image { normal: "01_search_input_bg.png"; border_scale: 1;}
92                 }
93             }
94
95             /* Image bg */
96             part {
97                 name: "search_entry_bgl";
98                 type: IMAGE;
99                 mouse_events: 0;
100                 scale: 1;
101                 description {
102                     state: "default" 0.0;
103                     visible: 1;
104                     rel1 { relative: INPUT_LEFT_X1 INPUT_LEFT_Y1;  to: "search_rect";}
105                     rel2 { relative: INPUT_LEFT_X2 INPUT_LEFT_Y2;  to: "search_rect";}
106                     image { normal: "01_search_input_field_bg_l.png"; border_scale: 1;}
107                 }
108             }
109
110             part {
111                 name: "search_entry_bgc";
112                 type: RECT;
113                 mouse_events: 1;
114                 scale: 1;
115                 description {
116                     state: "default" 0.0;
117                     visible: 1;
118                     rel1 { relative: INPUT_CENTER_X1 INPUT_CENTER_Y1;  to: "search_rect";}
119                     rel2 { relative: INPUT_CENTER_X2 INPUT_CENTER_Y2;  to: "search_rect";}
120                     color:195 190 200 255;
121                 }
122             }
123
124             part {
125                 name: "search_entry_bgr";
126                 type: IMAGE;
127                 mouse_events: 0;
128                 scale: 1;
129                 description {
130                     state: "default" 0.0;
131                     visible: 1;
132                     rel1 { relative: INPUT_RIGHT_X1 INPUT_RIGHT_Y1;  to: "search_rect";}
133                     rel2 { relative: INPUT_RIGHT_X2 INPUT_RIGHT_Y2;  to: "search_rect";}
134                     image { normal: "01_search_input_field_bg_r.png"; border_scale: 1;}
135                 }
136             }
137
138             part {
139                 name: "search_button_bg";
140                 type: IMAGE;
141                 mouse_events: 0;
142                 scale: 1;
143                 description {
144                     state: "default" 0.0;
145                     visible: 1;
146                     rel1 { relative: BUTTON_X1 BUTTON_Y1;  to: "search_rect";}
147                     rel2 { relative: BUTTON_X2 BUTTON_Y2;  to: "search_rect";}
148                     image { normal: "01_search_button.png"; border_scale: 1;}
149                 }
150             }
151
152             part{
153                 name: "entry";
154                 type: SWALLOW;
155                 scale: 1;
156                 description {
157                     state: "default" 0.0;
158                     rel1 { relative: ENTRY_SWALLOW_X1 ENTRY_SWALLOW_Y1;  to: "search_rect";}
159                     rel2 { relative: ENTRY_SWALLOW_X2 ENTRY_SWALLOW_Y2;  to: "search_rect";}
160                 }
161             }
162         }
163     }
164