/* * Copyright 2012 Samsung Electronics Co., Ltd * * Licensed under the Flora License, Version 1.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.tizenopensource.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 "cam_funcs.edc" #include "../include/edc_image_name.h" #define CAM_FOCUS_IMG "CAMERA_FOCUS_IMG" images { image: FOCUS_GUIDE_NOTREADY_IMAGE COMP; image: FOCUS_GUIDE_FOCUSED_IMAGE COMP; image: FOCUS_GUIDE_FAILED_IMAGE COMP; image: SHOTTING_MODE_POPUP_BG_IMAGE COMP; image: TIMER_ICON_BG_IMAGE COMP; } styles { style { name: "textblock_style"; base: "font=system_content font_size=34 align=center valign=top color=#ffffff wrap=word"; tag: "br" " \n"; } } collections { group { name: "focus_image"; min: CAMERA_FOCUS_W CAMERA_FOCUS_H; max: CAMERA_FOCUS_W CAMERA_FOCUS_H; parts{ part { name: CAM_FOCUS_IMG; type: IMAGE; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } description { state: "notready" 0.0; inherit: "default" 0.0; visible: 1; image{ normal: FOCUS_GUIDE_NOTREADY_IMAGE; } } description { state: "focused" 0.0; inherit: "default" 0.0; visible: 1; image{ normal: FOCUS_GUIDE_FOCUSED_IMAGE; } } description { state: "failed" 0.0; inherit: "default" 0.0; visible: 1; image{ normal: FOCUS_GUIDE_FAILED_IMAGE; } } } } programs { program { name: "focus,hide"; source: "program"; signal: "focus,hide"; action: STATE_SET "default" 0.0; target: CAM_FOCUS_IMG; } program { name: "focus,notready"; source: "program"; signal: "focus,notready"; action: STATE_SET "notready" 0.0; target: CAM_FOCUS_IMG; } program { name: "focus,focused"; source: "program"; signal: "focus,focused"; action: STATE_SET "focused" 0.0; target: CAM_FOCUS_IMG; } program { name: "focus,failed"; source: "program"; signal: "focus,failed"; action: STATE_SET "failed" 0.0; target: CAM_FOCUS_IMG; } } } #define PX_POPUP_BOX_X 180 #define PX_POPUP_BOX_Y 84 #define PX_POPUP_BOX_W 440 #define PX_POPUP_BOX_H 242 #define PX_POPUP_TEXT_Y 40 #define PX_POPUP_BAR_X 40 #define PX_POPUP_BAR_Y 182 #define PX_POPUP_BAR_W 350 #define PX_POPUP_BAR_H 14 group { name: "progress_popup"; parts { part { name: "progress_popup_bg"; type: IMAGE; mouse_events: 0; description { state: "default" 0.0; rel1 { relative: PX_POPUP_BOX_X/MAIN_W_AUTO PX_POPUP_BOX_Y/MAIN_H_AUTO; } rel2 { relative: (PX_POPUP_BOX_X+PX_POPUP_BOX_W)/MAIN_W_AUTO (PX_POPUP_BOX_Y+PX_POPUP_BOX_H)/MAIN_H_AUTO; } image{ normal: SHOTTING_MODE_POPUP_BG_IMAGE; } } } part { name: "progress_popup_text"; type: TEXTBLOCK; description { state: "default" 0.0; fixed: 1 1; rel1 { relative: 0.0 PX_POPUP_TEXT_Y/PX_POPUP_BOX_H; to: progress_popup_bg; } rel2 { relative: 1.0 1.0; to: progress_popup_bg; } color: FONT_COLOR; text { style: "textblock_style"; min: 0 1; } } } //to swallow progressbar part { name: "progress_popup_bar"; type: SWALLOW; description { state: "default" 0.0; fixed: 1 1; rel1 { relative: PX_POPUP_BAR_X/PX_POPUP_BOX_W PX_POPUP_BAR_Y/PX_POPUP_BOX_H; to: progress_popup_bg; } rel2 { relative: (PX_POPUP_BAR_X+PX_POPUP_BAR_W)/PX_POPUP_BOX_W (PX_POPUP_BAR_Y+PX_POPUP_BAR_H)/PX_POPUP_BOX_H; to: progress_popup_bg; } } } } } #define TIMER_ICON_W 188 #define TIMER_ICON_H 158 group{ name: "timer_icon_landscape"; parts{ part { name: "icon"; type: IMAGE; description { state: "default" 0.0; rel1 { relative: (1 - TIMER_ICON_W/MAIN_W)/2 (1 - TIMER_ICON_H/MAIN_H)/2; offset: 0 0; } rel2 { relative: (1 + TIMER_ICON_W/MAIN_W)/2 (1 + TIMER_ICON_H/MAIN_H)/2; offset: -1 -1; } image { normal: TIMER_ICON_BG_IMAGE; } } } part { name: "text"; type: TEXT; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; } color: COLOR_1; text { font: FONT_NAME; size: 60; min: 1 1; align: 0.8 0.8; } } } } } group{ name: "timer_icon_portrait"; parts{ part { name: "icon"; type: IMAGE; description { state: "default" 0.0; rel1 { relative: (1 - TIMER_ICON_W/MAIN_H)/2 (1 - TIMER_ICON_H/MAIN_W)/2; offset: 0 0; } rel2 { relative: (1 + TIMER_ICON_W/MAIN_H)/2 (1 + TIMER_ICON_H/MAIN_W)/2; offset: -1 -1; } image { normal: TIMER_ICON_BG_IMAGE; } } } part { name: "text"; type: TEXT; scale: 1; description { state: "default" 0.0; rel1 { relative: 0.0 0.0; offset: 0 0; to: "icon"; } rel2 { relative: 1.0 1.0; offset: -1 -1; to: "icon"; } color: COLOR_1; text { font: FONT_NAME; size: 60; min: 1 1; align: 0.8 0.8; } } } } } }