/* * 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. */ #ifndef __H_EDC_CAM_SETTING_POPUP_LAYOUT_EDC_H__ #define __H_EDC_CAM_SETTING_POPUP_LAYOUT_EDC_H__ #define SETTING_POPUP_WIDTH 550 #define SETTING_POPUP_HEIGHT 661 #define CAMERA_SETTING_POPUP_AREA_PART(part_name, width, height) \ part { name: "camera/setting/popup/area/"part_name;\ type: SWALLOW;\ scale: 1;\ repeat_events: 0;\ description {\ state:"default" 0.0;\ min: width height;\ max: width height;\ fixed: 1 1;\ align: 0 0;\ rel1{ relative: 0.0 0.0; to: "popup_area";}\ rel2{ relative: 0.0 0.0; to: "popup_area";}\ } \ } /*Ctxpopup Style*/ #define CTXPOPUP_BORDER_CORNER_SIZE 9 #define CAMERA_SETTING_POPUP_GROUP_LAYOUT(group_name, width, height)\ group { \ name: "camera/setting/popup/"group_name;\ min: width height;\ max: width height;\ parts {\ part { name: "elm.padding.top"; \ type: RECT; \ scale: 1; \ description { \ state: "default" 0.0; \ min: 0 CTXPOPUP_BORDER_CORNER_SIZE; \ fixed: 0 1; \ visible: 0; \ rel2.relative: 1.0 0.0; \ align: 0.0 0.0; \ color: 255 255 255 255;\ } \ description {\ state: "show" 0.0;\ inherit: "default" 0.0;\ visible: 1;\ }\ description {\ state: "dim" 0.0;\ inherit: "default" 0.0;\ }\ }\ part { name: "elm.padding.bottom"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: 0 CTXPOPUP_BORDER_CORNER_SIZE; \ fixed: 0 1; \ visible: 0; \ rel1.relative: 0.0 1.0; \ align: 0.0 1.0; \ color: 255 255 255 255;\ } \ description {\ state: "show" 0.0;\ inherit: "default" 0.0;\ visible: 1;\ }\ description {\ state: "dim" 0.0;\ inherit: "default" 0.0;\ }\ }\ part { name: "elm.padding.left"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: CTXPOPUP_BORDER_CORNER_SIZE 0; \ fixed: 1 0; \ visible: 0; \ rel2.relative: 0.0 1.0; \ align: 0.0 0.0; \ color: 255 255 255 255;\ } \ description {\ state: "show" 0.0;\ inherit: "default" 0.0;\ visible: 1;\ }\ description {\ state: "dim" 0.0;\ inherit: "default" 0.0;\ }\ }\ part { name: "elm.padding.right"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: CTXPOPUP_BORDER_CORNER_SIZE 0; \ fixed: 1 0; \ visible: 0; \ rel1.relative: 1.0 0.0; \ align: 1.0 0.0; \ color: 255 255 255 255;\ } \ description {\ state: "show" 0.0;\ inherit: "default" 0.0;\ visible: 1;\ }\ description {\ state: "dim" 0.0;\ inherit: "default" 0.0;\ }\ }\ part {\ name: "bg";\ type: RECT;\ mouse_events: 0;\ repeat_events: 0;\ description {\ state: "default" 0.0;\ visible: 0;\ rel1 { relative: 0.0 0.0; }\ rel2 { relative: 1.0 1.0; }\ }\ }\ part {\ name: "bg_image";\ type: IMAGE;\ scale: 1;\ mouse_events: 0;\ repeat_events: 0;\ description {\ align: 1 1;\ visible: 0;\ image {\ normal: CTXPOPUP_BG_IMAGE;\ border: 67 67 92 42;\ border_scale: 1;\ }\ rel1 {relative: 0.0 0.0; to: "bg";}\ rel2 {relative: 1.0. 1.0; to: "bg";}\ }\ description {\ state: "show" 0.0;\ inherit: "default" 0.0;\ visible: 1;\ }\ description {\ state: "dim" 0.0;\ inherit: "default" 0.0;\ }\ }\ part {\ name: "ele.bg.top";\ type: RECT;\ scale: 1;\ mouse_events: 0;\ repeat_events: 0;\ description {\ state: "default" 0.0;\ visible: 0;\ rel1 { relative: 0.0 0.0; to:"bg";}\ rel2 { relative: 1.0 60/height; to:"bg";}\ }\ }\ part {\ name: "ele.bg.bottom";\ type: RECT;\ scale: 1;\ mouse_events: 0;\ repeat_events: 0;\ description {\ state: "default" 0.0;\ visible: 0;\ rel1 { relative: 0.0 60/height; to:"bg";}\ rel2 { relative: 1.0 1.0; to:"bg";}\ }\ }\ part {\ name: "elm.text";\ type: TEXT;\ scale: 1;\ mouse_events: 1;\ repeat_events: 0;\ description {\ state: "default" 0.0;\ visible: 0;\ align: 0.5 0.5;\ rel1 { relative: 0.0 0.0; to:"ele.bg.top";}\ rel2 { relative: 1.0 1.0; to:"ele.bg.top";}\ text {\ font: FONT_NAME;\ size: 30;\ align: 0.5 0.5;\ min: 1 1;\ text: "";\ }\ }\ description {\ state: "show" 0.0;\ inherit: "default" 0.0;\ visible: 1;\ }\ description {\ state: "dim" 0.0;\ inherit: "default" 0.0;\ }\ }\ part {\ name: "elm.swallow.box";\ type: SWALLOW;\ scale: 1;\ mouse_events: 1;\ repeat_events: 0;\ description {\ state: "default" 0.0;\ visible: 0;\ align: 0.5 0.5;\ rel1 { relative: 0.0 0.0; to:"ele.bg.bottom";}\ rel2 { relative: 1.0 1.0; to:"ele.bg.bottom";}\ }\ description {\ state: "show" 0.0;\ inherit: "default" 0.0;\ visible: 1;\ }\ description {\ state: "dim" 0.0;\ inherit: "default" 0.0;\ }\ }\ }\ programs {\ program {\ name: "set.popup.dim";\ source: "prog";\ signal: "set.popup.dim";\ script: {\ set_state(PART:"bg_image", "dim", 0.0);\ set_state(PART:"elm.text", "dim", 0.0);\ set_state(PART:"elm.swallow.box", "dim", 0.0);\ set_state(PART:"elm.padding.right", "dim", 0.0);\ set_state(PART:"elm.padding.left", "dim", 0.0);\ set_state(PART:"elm.padding.top", "dim", 0.0);\ set_state(PART:"elm.padding.bottom", "dim", 0.0);\ }\ }\ program {\ name: "set.popup.show";\ source: "prog";\ signal: "set.popup.show";\ script: {\ set_state(PART:"bg_image", "show", 0.0);\ set_state(PART:"elm.text", "show", 0.0);\ set_state(PART:"elm.swallow.box", "show", 0.0);\ set_state(PART:"elm.padding.right", "show", 0.0);\ set_state(PART:"elm.padding.left", "show", 0.0);\ set_state(PART:"elm.padding.top", "show", 0.0);\ set_state(PART:"elm.padding.bottom", "show", 0.0);\ }\ }\ }\ } #endif /*__H_EDC_CAM_SETTING_POPUP_LAYOUT_EDC_H__*/ //end file