/* * 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://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_VER_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_H MAIN_W; max: MAIN_H MAIN_W; 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: (1 - (EV_BG_Y+EV_BG_H)/MAIN_H) EV_BG_X/MAIN_W; to: "bg";} rel2 { relative: (1 - EV_BG_Y/MAIN_H) (EV_BG_X+EV_BG_W)/MAIN_W; to: "bg";} image { normal: ZOOM_BG_VER_IMAGE; } } } part { name: "icon_minus"; type: IMAGE; scale: 1; description { state: "default" 0.0; rel1 { relative: (1 - (EV_BG_H-EV_ICON_Y)/EV_BG_H) EV_ICON_X/EV_BG_W; to: "bg_image"; } rel2 { relative: (1 - (EV_BG_H-EV_ICON_H-EV_ICON_Y)/EV_BG_H) (EV_ICON_X+EV_ICON_W)/EV_BG_W; 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: (1 - (EV_ICON_Y+EV_ICON_H)/EV_BG_H) EV_ICON_X/EV_BG_W; to: "bg_image"; } rel2 { relative: (1 - EV_ICON_Y/EV_BG_H) (EV_ICON_X+EV_ICON_W)/EV_BG_W; 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: EV_SLIDE_Y/EV_BG_H 0.0 ; to: "bg_image"; } rel2 { relative: (1 - EV_SLIDE_Y/EV_BG_H) 1.0; 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