summaryrefslogtreecommitdiff
path: root/edc/cam_ev_layout.edc
blob: 45662d61bbbd5b83d2fde69c8323ed1c3a7102e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *	  http://floralicense.org/license/
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


#include "../include/edc_image_name.h"
#include "../include/edc_string.h"

#define EV_BG_X		188
#define EV_BG_Y		72
#define EV_BG_W		116
#define EV_BG_H		576

#define EV_ICON_X	15
#define EV_ICON_Y	14
#define EV_ICON_W	86
#define EV_ICON_H	86

#define EV_SLIDE_X	0
#define EV_SLIDE_Y	120


images {
	image: ZOOM_BG_IMAGE COMP;
	image: EXPOSURE_VALUE_MINUS_2_0_ICON COMP;
	image: EXPOSURE_VALUE_MINUS_2_0_PRESS_ICON COMP;
	image: EXPOSURE_VALUE_PLUS_2_0_ICON COMP;
	image: EXPOSURE_VALUE_PLUS_2_0_PRESS_ICON COMP;
}

collections {
	group {
		name: "main";

		parts {
			part {
				name: "bg";
				type: RECT;
				scale: 1;
				description {
					state: "default" 0.0;
					visible: 0.0;
					min: MAIN_W MAIN_H;
					max: MAIN_W MAIN_H;
					fixed: 1 1;
					rel1 { relative: 0.0 0.0;}
					rel2 { relative: 1.0 1.0;}
				}
			}
			part {
				name: "bg_image";
				type: IMAGE;
				description {
					state: "default" 0.0;
					rel1 { relative: EV_BG_X/MAIN_W EV_BG_Y/MAIN_H; to: "bg";}
					rel2 { relative: (EV_BG_X+EV_BG_W)/MAIN_W (EV_BG_Y+EV_BG_H)/MAIN_H; to: "bg";}
					image { normal: ZOOM_BG_IMAGE; }
				}
			}
			part {
				name: "icon_minus";
				type: IMAGE;
				scale: 1;
				description {
					state: "default" 0.0;
					rel1 { relative: EV_ICON_X/EV_BG_W (EV_BG_H-EV_ICON_H-EV_ICON_Y)/EV_BG_H; to: "bg_image"; }
					rel2 { relative: (EV_ICON_X+EV_ICON_W)/EV_BG_W (EV_BG_H-EV_ICON_Y)/EV_BG_H; to: "bg_image"; }
					image { normal: EXPOSURE_VALUE_MINUS_2_0_ICON; }
				}
				description {
					state: "press" 0.0;
					inherit: "default" 0.0;
					image { normal: EXPOSURE_VALUE_MINUS_2_0_PRESS_ICON; }
				}
			}
			part {
				name: "icon_plus";
				type: IMAGE;
				scale: 1;
				description {
					state: "default" 0.0;
					rel1 { relative: EV_ICON_X/EV_BG_W EV_ICON_Y/EV_BG_H; to: "bg_image"; }
					rel2 { relative: (EV_ICON_X+EV_ICON_W)/EV_BG_W (EV_ICON_Y+EV_ICON_H)/EV_BG_H; to: "bg_image"; }
					image { normal: EXPOSURE_VALUE_PLUS_2_0_ICON; }
				}
				description {
					state: "press" 0.0;
					inherit: "default" 0.0;
					image { normal: EXPOSURE_VALUE_PLUS_2_0_PRESS_ICON; }
				}
			}
			part {
				name: "slider";
				type: SWALLOW;
				description {
					state: "default" 0.0;
					rel1 { relative: 0.0 EV_SLIDE_Y/EV_BG_H; to: "bg_image"; }
					rel2 { relative: 1.0 (EV_BG_H-EV_SLIDE_Y)/EV_BG_H; to: "bg_image"; }
				}
			}
		}

		programs {
			program {
				name: "icon_minus_press";
				signal: "mouse,down,1";
				source: "icon_minus";
				action: STATE_SET "press" 0.0;
				target: "icon_minus";
			}
			program {
				name: "icon_minus_release";
				signal: "mouse,up,1";
				source: "icon_minus";
				action: STATE_SET "default" 0.0;
				target: "icon_minus";
			}
			program {
				name: "icon_minus_clicked";
				signal: "mouse,clicked,1";
				source: "icon_minus";
				action: SIGNAL_EMIT "icon_minus,clicked" "ev_icon_signal";
			}
			program {
				name: "icon_plus_press";
				signal: "mouse,down,1";
				source: "icon_plus";
				action: STATE_SET "press" 0.0;
				target: "icon_plus";
			}
			program {
				name: "icon_plus_release";
				signal: "mouse,up,1";
				source: "icon_plus";
				action: STATE_SET "default" 0.0;
				target: "icon_plus";
			}
			program {
				name: "icon_plus_clicked";
				signal: "mouse,clicked,1";
				source: "icon_plus";
				action: SIGNAL_EMIT "icon_plus,clicked" "ev_icon_signal";
			}
		}
	}
}
//end files