/* * 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 "cam_funcs.edc" #define SHORTCUTS_PANEL_WIDTH 720 #define SHORTCUTS_PANEL_HEIGHT 900 #define SHORTCUTS_ITEM_BG(part_no,row,col) \ part {\ name: "menu."part_no".bg";\ type: RECT;\ scale: 1;\ mouse_events: 0;\ description {\ state: "default" 0.0;\ visible: 0;\ rel1 {\ relative: 0.0 0.0;\ to_x: "line_v."col".padding.left";\ to_y: "line_h."row".padding.top";\ }\ rel2 {\ relative: 1.0 1.0;\ to_x: "line_v."col".padding.left";\ to_y: "line_h."row".padding.top";\ }\ color: 255 255 255 255;\ align: 0.0 0.0;\ }\ } #define SHORTCUTS_MENU_H(part_name, pre_to_part, to_part, next_to_part) \ part { \ name: "row."part_name; \ type: SWALLOW; \ scale: 1; \ mouse_events: 1; \ repeat_events: 0;\ description { \ state: "default" 0.0; \ visible: 1; \ align: 0.5 0.5; \ aspect: 1.0 1.0; \ rel1 { relative: 0.0 0.0; to:to_part;} \ rel2 { relative: 1.0 1.0; to:to_part;} \ } \ description { \ state: "prev" 0.0; \ inherit: "default" 0.0;\ rel1 { relative: 0.0 0.0; to:pre_to_part;} \ rel2 { relative: 1.0 1.0; to:pre_to_part;} \ } \ description { \ state: "next" 0.0; \ inherit: "default" 0.0;\ rel1 { relative: 0.0 0.0; to:next_to_part;} \ rel2 { relative: 1.0 1.0; to:next_to_part;} \ } \ } #define SHORTCUTS_MENU_PROGRAM(part_name) \ program { \ name: "row."part_name".prev"; \ signal: "move,prev"; \ source: "row."part_name; \ action: STATE_SET "prev" 0.0; \ target: "row."part_name; \ } \ program { \ name: "row."part_name".next"; \ signal: "move,next"; \ source: "row."part_name; \ action: STATE_SET "next" 0.0; \ target: "row."part_name; \ } \ program { \ name: "row."part_name".ani"; \ signal: "ani,return"; \ source: "row."part_name; \ action: STATE_SET "default" 0.0; \ target: "row."part_name; \ transition: DECELERATE 0.4; \ } /*note: for shotcuts popup tip*/ #define CAM_SHORTCUTS_HELP_PART_PADDING_TOP( param_padding_size ) \ part { name: "elm.padding.top"; \ type: RECT; \ scale: 1; \ description { \ state: "default" 0.0; \ min: 0 param_padding_size; \ fixed: 0 1; \ visible: 0; \ rel2 {relative: 1.0 0.0; to: "bg";}\ align: 0.0 0.0; \ color: 0 0 0 64;\ } \ } #define CAM_SHORTCUTS_HELP_PART_PADDING_BOTTOM( param_padding_size ) \ part { name: "elm.padding.bottom"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: 0 param_padding_size; \ fixed: 0 1; \ visible: 0; \ rel1 {relative: 0.0 1.0; to: "bg";}\ align: 0.0 1.0; \ color: 0 0 0 64;\ } \ } #define CAM_SHORTCUTS_HELP_PART_PADDING_LEFT( param_padding_size ) \ part { name: "elm.padding.left"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: param_padding_size 0; \ fixed: 1 0; \ visible: 0; \ rel2 {relative: 0.0 1.0; to: "bg";}\ align: 0.0 0.0; \ color: 0 0 0 64;\ } \ } #define CAM_SHORTCUTS_HELP_PART_PADDING_RIGHT( param_padding_size ) \ part { name: "elm.padding.right"; \ type: RECT; \ scale: 1; \ description { state: "default" 0.0; \ min: param_padding_size 0; \ fixed: 1 0; \ visible: 0; \ rel1 {relative: 1.0 0.0; to: "bg";}\ align: 1.0 0.0; \ color: 0 0 0 64;\ } \ } //end file