2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (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
8 * http://floralicense.org/license/
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.
18 #include "cam_funcs.edc"
19 #include "../include/edc_image_name.h"
25 part { name: "transparent_layout";
28 description { state: "default" 0.0; }
30 part { name: "guideline_layout";
33 description { state: "default" 0.0; }
35 part { name: "shot_guide_popup_layout";
38 description { state: "default" 0.0; }
40 part { name: "indicator_layout";
43 description { state: "default" 0.0; }
45 part { name: "recording_layout";
48 description { state: "default" 0.0; }
50 part { name: "mouse_event_layer";
55 rel1 { relative: 0.0 0.0; offset: 0 0; }
56 rel2 { relative: 1.0 1.0; offset: -1 -1; }
60 part { name: "timer_layout";
63 description { state: "default" 0.0; }
65 part { name: "best_photo_thumbnail_layout";
68 description { state: "default" 0.0; }
70 part { name: "progressbar_layout";
73 description { state: "default" 0.0; }
75 part { name: "progress_popup_layout";
78 description { state: "default" 0.0; }
80 part { name: "tip_popup_layout";
83 description { state: "default" 0.0; }
85 part { name: "pinch_layout";
88 description { state: "default" 0.0; }
90 part { name: "zoom_layout";
93 description { state: "default" 0.0; }
95 part { name: "ev_layout";
98 description { state: "default" 0.0; }
100 part { name: "toolbar_layout";
103 description { state: "default" 0.0; }
108 #include "cam_guideline_edje.edc"
116 #define PROGRESS_BAR_X 320
117 #define PROGRESS_BAR_Y 657
118 #define PROGRESS_BAR_W 639
119 #define PROGRESS_BAR_H 20
125 state: "default" 0.0;
128 rel1 { relative: PROGRESS_BAR_X/MAIN_W PROGRESS_BAR_Y/MAIN_H; }
129 rel2 { relative: (PROGRESS_BAR_X+PROGRESS_BAR_W)/MAIN_W (PROGRESS_BAR_Y+PROGRESS_BAR_H)/MAIN_H; }
133 state: "landscape" 0.0;
136 rel1 { relative: PROGRESS_BAR_X/MAIN_W PROGRESS_BAR_Y/MAIN_H; }
137 rel2 { relative: (PROGRESS_BAR_X+PROGRESS_BAR_W)/MAIN_W (PROGRESS_BAR_Y+PROGRESS_BAR_H)/MAIN_H; }
141 state: "vertical" 0.0;
144 rel1 { relative: PROGRESS_BAR_X/MAIN_W (PROGRESS_BAR_Y - 60)/MAIN_H; }
145 rel2 { relative: (PROGRESS_BAR_X+PROGRESS_BAR_W)/MAIN_W (PROGRESS_BAR_Y+PROGRESS_BAR_H - 60)/MAIN_H; }
150 name: "progressbar_text";
154 state: "default" 0.0;
155 rel1 { relative: 1.0 (-20)/PROGRESS_BAR_H; to: "progressbar"; }
156 rel2 { relative: (1.0+90/PROGRESS_BAR_W) (1.0+20/PROGRESS_BAR_H); to: "progressbar"; }
165 state: "vertical" 0.0;
166 rel1 { relative: 1.0 (-20)/PROGRESS_BAR_H; to: "progressbar"; }
167 rel2 { relative: (1.0+90/PROGRESS_BAR_W*MAIN_W/MAIN_H) (1.0+20/PROGRESS_BAR_H); to: "progressbar"; }
180 name: "progressbar,default";
182 signal: "progressbar,default";
184 set_state(PART:"progressbar", "landscape", 0.0);
185 set_state(PART:"progressbar_text", "default", 0.0);
189 name: "progressbar,vertical";
191 signal: "progressbar,vertical";
193 set_state(PART:"progressbar", "vertical", 0.0);
194 set_state(PART:"progressbar_text", "vertical", 0.0);
201 name: "shutter_image";
206 name: "camera_image_bg";
209 state: "default" 0.0;
210 rel1 { relative: 0.0 0.0; offset: 0 0; }
211 rel2 { relative: 1.0 1.0; offset: -1 -1; }
216 rel1 { relative: 0.0 0.0; offset: 0 0; }
217 rel2 { relative: 1.0 1.0; offset: -1 -1; }
225 state: "default" 0.0;
226 rel1 { relative: 0.0 0.0; offset: 0 0; to : "camera_image_bg"; }
227 rel2 { relative: 1.0 0.0; offset: -1 0; to : "camera_image_bg"; }
233 rel1 { relative: 0.0 0.0; offset: 0 0; to : "camera_image_bg"; }
234 rel2 { relative: 1.0 0.5; offset: -1 -1; to : "camera_image_bg"; }
240 part { name: "down_part";
243 state: "default" 0.0;
244 rel1 { relative: 0.0 1.0; offset: 0 -1; to : "camera_image_bg"; }
245 rel2 { relative: 1.0 1.0; offset: -1 -1; to : "camera_image_bg"; }
251 rel1 { relative: 0.0 0.5; offset: 0 -1; to : "camera_image_bg"; }
252 rel2 { relative: 1.0 1.0; offset: -1 -1; to : "camera_image_bg"; }
262 signal: "start_animation";
264 action: STATE_SET "middle" 0.0;
266 target: "down_part" ;
267 transition: ACCELERATE 0.25;
274 action: STATE_SET "default" 0.0;
276 target: "down_part" ;
277 transition: DECELERATE 0.25;
283 action: STATE_SET "gray" 0.0;
284 target: "camera_image_bg" ;
291 action: STATE_SET "default" 0.0;
292 target: "camera_image_bg" ;
293 transition: DECELERATE 0.2;
294 after: "animation_finish";
297 name: "animation_finish";
298 signal: "animation_finish";
300 action: SIGNAL_EMIT "animation_finish" "*";
306 name: "shutter_rect";
311 name: "shutter_rect_bg";
315 state: "default" 0.0;
316 rel1 { relative: 0.0 0.0;}
317 rel2 { relative: 1.0 1.0;}
322 rel1 { relative: 0.0 0.0;}
323 rel2 { relative: 1.0 1.0;}
333 state: "default" 0.0;
338 rel1 { relative: 0.0 0.0; to : "shutter_rect_bg"; }
339 rel2 { relative: 0.0 0.0; to : "shutter_rect_bg"; }
340 color : 255 255 255 0;
345 inherit: "default" 0.0;
356 state: "default" 0.0;
361 rel1 { relative: 1.0 0.0; to : "shutter_rect_bg"; }
362 rel2 { relative: 1.0 0.0; to : "shutter_rect_bg"; }
363 color : 255 255 255 0;
368 inherit: "default" 0.0;
379 state: "default" 0.0;
384 rel1 { relative: 1.0 1.0; to : "shutter_rect_bg"; }
385 rel2 { relative: 1.0 1.0; to : "shutter_rect_bg"; }
386 color : 255 255 255 0;
391 inherit: "default" 0.0;
402 state: "default" 0.0;
407 rel1 { relative: 0.0 1.0; to : "shutter_rect_bg"; }
408 rel2 { relative: 0.0 1.0; to : "shutter_rect_bg"; }
409 color : 255 255 255 0;
414 inherit: "default" 0.0;
426 state: "default" 0.0;
427 rel1 { relative: 0.0 0.0; offset: 0 0; to_x : "point_0"; to_y : "point_0";}
428 rel2 { relative: 0.0 1.0; offset: 0 0; to_x : "point_1"; to_y : "point_1";}
429 color : 255 255 255 200;
439 state: "default" 0.0;
440 rel1 { relative: 0.0 0.0; offset: 1 0; to_x : "point_1"; to_y : "point_1";}
441 rel2 { relative: 1.0 1.0; offset: 0 0; to_x : "point_2"; to_y : "point_2";}
442 color : 255 255 255 200;
452 state: "default" 0.0;
453 rel1 { relative: 0.0 0.0; offset: 0 0; to_x : "point_3"; to_y : "point_3";}
454 rel2 { relative: 0.0 1.0; offset: 0 0; to_x : "point_2"; to_y : "point_2";}
455 color : 255 255 255 200;
464 state: "default" 0.0;
465 rel1 { relative: 0.0 1.0; offset: 0 1; to_x : "point_0"; to_y : "point_0";}
466 rel2 { relative: 1.0 0.0; offset: 0 -1; to_x : "point_3"; to_y : "point_3";}
467 color : 255 255 255 200;
475 name: "shutter_rect,start";
476 signal: "shutter_rect,start";
478 action: STATE_SET "end" 0.0;
483 transition: DECELERATE 0.20;
484 after: "shutter_rect,finish";
487 name: "shutter_rect,finish";
488 signal: "shutter_rect,finish";
490 action: SIGNAL_EMIT "shutter_rect,finish" "*";