tizen 2.3.1 release
[apps/home/settings.git] / setting-common / include / setting-common-data-edj-define.h
1 /*
2  * setting
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
5  *
6  * Contact: MyoungJune Park <mj2004.park@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22 #ifndef __SETTING_COMMON_DATA_EDJ_DEFINE_H__
23 #define __SETTING_COMMON_DATA_EDJ_DEFINE_H__
24 /*Cnnot be fixed when select multiple resolution */
25 #define ITEM_X_DEN (480.0)
26 #define ITEM_Y_DEN (112.0)
27 #define ITEM_Y_DEN2 (60.0)
28 #define MAIN_Y_DEN (800.0)
29
30 #define GROUP_ITEM_HEIGHT (61.0)
31
32 /*"personal_vib_layout" */
33 #define TOP_AREA_H                      171
34 #define BOTTOM_BAR_AREA_H       98
35 #define HD_HEIGHT                       1280
36 #define PERSONAL_VIBRATION_LAYOUT_H     ((HD_HEIGHT)-(TOP_AREA_H)-(BOTTOM_BAR_AREA_H))
37
38 #define SETTING_LAYOUT_FOCUS_PART(bg) \
39         part { name: "focus_bg_left_top_padding";\
40         type: RECT;\
41                 scale : 1;\
42         description { state: "default" 0.0;\
43                         min: 2 2;\
44                         align: 0.0 0.0;\
45                         visible: 0;\
46                         fixed: 1 1;\
47         rel1.to: bg;\
48                         rel2 {\
49                                 relative: 0.0 0.0;\
50         to: bg;\
51                         }\
52                 }\
53         }\
54         part { name: "focus_bg_right_bottom_padding";\
55         type: RECT;\
56                 scale: 1;\
57         description { state: "default" 0.0;\
58                         min: 2 2;\
59                         align: 1.0 1.0;\
60                         visible: 0;\
61                         fixed: 1 1;\
62                         rel1 {\
63                                 relative: 1.0 1.0;\
64         to: bg;\
65                         }\
66         rel2.to: bg;\
67                 }\
68         }\
69         part { name: "focus_bg";\
70         type: IMAGE;\
71         description { state: "default" 0.0;\
72                         visible: 0;\
73                         rel1 {\
74                                 relative: 1.0 1.0;\
75         to: "focus_bg_left_top_padding";\
76                         }\
77                         rel2 {\
78                                 relative: 0.0 0.0;\
79         to: "focus_bg_right_bottom_padding";\
80                         }\
81         image.normal: "org.tizen.setting.png";\
82                         image.border: 13 13 13 13;\
83                 }\
84         description { state: "enabled" 0.0;\
85         inherit: "default" 0.0;\
86                         visible: 1;\
87                 }\
88         }
89
90 #define SETTING_LAYOUT_FOCUS_PROGRAME \
91         program { name: "focus_in";\
92         signal: "elm,action,focus_highlight,show";\
93         source: "elm";\
94         action: STATE_SET "enabled" 0.0;\
95         target: "focus_bg";\
96         }\
97         program { name: "focus_out";\
98         signal: "elm,action,focus_highlight,hide";\
99         source: "elm";\
100         action: STATE_SET "default" 0.0;\
101         target: "focus_bg";\
102         }\
103          
104
105 #define ADD_PART_CLICKED_SOUND_HEADER \
106         sounds {\
107                 sample {\
108         name: "touch_sound" AS_IS;\
109         source: "button-pressed.wav";\
110                 }\
111         }
112
113 #define ADD_PART_CLICKED_SOUND(part)\
114         program { name: "touch_snd"part;\
115         signal: "mouse,clicked,1";\
116         source: part;\
117         action: PLAY_SAMPLE "touch_sound" 1.0;\
118         }
119
120 #endif                          /* __SETTING_COMMON_DATA_EDJ_DEFINE_H__ */