/* * 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 "../include/edc_image_name.h" #include "cam_funcs.edc" #define SHORTCUTS_PANEL_WIDTH 720 #define SHORTCUTS_PANEL_HEIGHT 900 #define SHOTCUTS_MENU_H(part_name, relx1, rely1, relx2, rely2, to_part) \ part { \ name: "row."part_name; \ type: SWALLOW; \ scale: 1; \ mouse_events: 1; \ description { \ state: "default" 0.0; \ visible: 1; \ min: (180) (180); \ max: (180) (180); \ align: 0.5 0.5; \ aspect: 1.0 1.0; \ fixed: 1 1; \ rel1 { relative: (relx1/SHORTCUTS_PANEL_HEIGHT) (rely1/SHORTCUTS_PANEL_HEIGHT); to:to_part;} \ rel2 { relative: (relx2/SHORTCUTS_PANEL_HEIGHT) (rely2/SHORTCUTS_PANEL_HEIGHT); to:to_part;} \ } \ } /*#define SHOTCUTS_LINE_V_IMAGE*/ images { image: SHOTCUTS_LINE_V_IMAGE COMP; image: SHOTCUTS_EDIT_BG_H_IMAGE COMP; image: SHOTCUTS_EDIT_MENU_BG_H_IMAGE COMP; image: SHOTCUTS_LINE_H_IMAGE COMP; } collections { group { name: "camera/shortcuts/ele"; parts { part { name: "bg"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; min: 180 180; max: 180 180; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } part { name: "ele.bg.top"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; to:"bg";} rel2 { relative: 1.0 100/180; to:"bg";} } } part { name: "ele.bg.bottom"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 100/180; to:"bg";} rel2 { relative: 1.0 1.0; to:"bg";} } } part { name: "ele.icon"; type: SWALLOW; scale: 1; mouse_events: 1; description { state: "default" 0.0; visible: 1; min: 86 86; max: 86 86; fixed: 1 1; align: 0.5 0.5; aspect: 1.0 1.0; rel1 { relative: 14/180 0.0; to:"ele.bg.top";} rel2 { relative: (1-14/180) 1.0; to:"ele.bg.top";} } } part { name: "ele.txt.1"; type: TEXT; scale: 1; mouse_events: 1; description { state: "default" 0.0; visible: 1; align: 0.5 0.5; fixed: 1 1; rel1 { relative: 0.0 0.0; to:"ele.bg.bottom";} rel2 { relative: 1.0 0.45; to:"ele.bg.bottom";} text { font: FONT_NAME; size: 30; align: 0.5 0.5; min: 1 1; text: ""; } } } part { name: "ele.txt.2"; type: TEXT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 1; align: 0.5 0.5; fixed: 1 1; rel1 { relative: 0.0 0.55; to:"ele.bg.bottom";} rel2 { relative: 1.0 1.0; to:"ele.bg.bottom";} text { font: FONT_NAME; size: 30; align: 0.5 0.5; min: 1 1; text: ""; } } } part { name: "ele.bg.bottom.pad"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; align: 0.0 0.0; min: 0 4; fixed: 0 1; rel1 { relative: 1.0 1.0; to:"ele.txt.2";} rel2 { relative: 1.0 1.0; to:"ele.txt.2";} } } } } #define SHORTCUST_LAYOUT_WIDTH 720 #define SHORTCUST_LAYOUT_HEIGHT 930 group { name : "camera/shortcuts/layout/description"; parts { part { name: "bg"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; min: 720 138; fixed: 1 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } part { name: "bg.content.img"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 1; rel1 { relative: 0.0 0.0; to: "bg";} rel2 { relative: 1.0 1.0; to: "bg";} image{ normal: SHOTCUTS_EDIT_BG_H_IMAGE ; } } } part { name: "description.txt.1"; type: TEXT; scale: 1; description { state: "default" 0.0; visible: 1; rel1 { relative: 0.0 48/138; to: "bg.content.img"; } rel2 { relative: 1.0 78/138; to: "bg.content.img"; } align: 0.0 0.0; text { font: FONT_NAME; size: 30; align: 0.5 0.5; min: 1 1; text: "Tap and hold an icon and move to edit"; } /*color: 0 0 0 255;*/ } } part { name: "description.txt.2"; type: TEXT; scale: 1; description { state: "default" 0.0; visible: 1; rel1 { relative: 0.0 78/138; to: "bg.content.img"; } rel2 { relative: 1.0 108/138; to: "bg.content.img"; } align: 0.0 0.0; text { font: FONT_NAME; size: 30; align: 0.5 0.5; min: 1 1; text: "your shortcuts"; } /*color: 0 0 0 255;*/ } }//end part: "line_v.txt.2" }//end parts } group { name:"camera/shortcuts/layout"; parts { part { name: "bg"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; /*min: 980 880;*/ min: SHORTCUST_LAYOUT_WIDTH SHORTCUST_LAYOUT_HEIGHT; fixed: 1 0; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 1.0; } } } part { name: "bg.content.img"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 1; rel1 { relative: 0.0 0.0; to: "bg";} rel2 { relative: 1.0 1.0; to: "bg";} image{ normal: SHOTCUTS_EDIT_BG_H_IMAGE ; } } } part { name: "bg.content.shortcuts"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 0.0; to: "bg";} rel2 { relative: 1.0 900/SHORTCUST_LAYOUT_HEIGHT; to: "bg";} } } part { name: "bg.content.text"; type: RECT; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 0; rel1 { relative: 0.0 900/SHORTCUST_LAYOUT_HEIGHT; to: "bg";} rel2 { relative: 1.0 1.0; to: "bg";} } } part { name: "bg.padding.top"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 13; fixed: 0 1; visible: 0; rel1 { relative: 0.0 0.0; to: "bg.content.shortcuts"; } rel2 { relative: 1.0 0.0; to: "bg.content.shortcuts"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_v.1.padding.top"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 180; fixed: 0 1; visible: 0; rel1 { relative: 0.0 0.0; to: "bg.content.shortcuts"; } rel2 { relative: 1.0 0.0; to: "bg.content.shortcuts"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_v.1"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: 0 4; fixed: 0 1; visible: 1; rel1 { relative: 0.0 1.0; to: "line_v.1.padding.top"; } rel2 { relative: 1.0 1.0; to: "line_v.1.padding.top"; } align: 0.0 0.0; image{ normal: SHOTCUTS_LINE_V_IMAGE ; } /*color: 0 0 0 255;*/ } } part { name: "line_v.2.padding.top"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 180; fixed: 0 1; visible: 0; rel1 { relative: 0.0 1.0; to: "line_v.1"; } rel2 { relative: 1.0 1.0; to: "line_v.1"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_v.2"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: 0 4; fixed: 0 1; visible: 1; rel1 { relative: 0.0 1.0; to: "line_v.2.padding.top"; } rel2 { relative: 1.0 1.0; to: "line_v.2.padding.top"; } image{ normal: SHOTCUTS_LINE_V_IMAGE ; } align: 0.0 0.0; /*color: 0 0 0 255;*/ } } part { name: "line_v.3.padding.top"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 180; fixed: 0 1; visible: 0; rel1 { relative: 0.0 1.0; to: "line_v.2"; } rel2 { relative: 1.0 1.0; to: "line_v.2"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_v.3"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: 0 4; fixed: 0 1; visible: 1; rel1 { relative: 0.0 1.0; to: "line_v.3.padding.top"; } rel2 { relative: 1.0 1.0; to: "line_v.3.padding.top"; } align: 0.0 0.0; image{ normal: SHOTCUTS_LINE_V_IMAGE ; } /*color: 0 0 0 255;*/ } } part { name: "line_v.4.padding.top"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 180; fixed: 0 1; visible: 0; rel1 { relative: 0.0 1.0; to: "line_v.3"; } rel2 { relative: 1.0 1.0; to: "line_v.3"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_v.4"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: 0 4; fixed: 0 1; visible: 1; rel1 { relative: 0.0 1.0; to: "line_v.4.padding.top"; } rel2 { relative: 1.0 1.0; to: "line_v.4.padding.top"; } align: 0.0 0.0; image{ normal: SHOTCUTS_LINE_V_IMAGE ; } /*color: 0 0 0 255;*/ } } part { name: "line_v.5.padding.top"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 180; fixed: 0 1; visible: 0; rel1 { relative: 0.0 1.0; to: "line_v.4"; } rel2 { relative: 1.0 1.0; to: "line_v.4"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_v.5"; type: IMAGE; scale: 1; description { state: "default" 0.0; min: 0 4; fixed: 0 1; visible: 1; rel1 { relative: 0.0 1.0; to: "line_v.5.padding.top"; } rel2 { relative: 1.0 1.0; to: "line_v.5.padding.top"; } align: 0.0 0.0; image{ normal: SHOTCUTS_LINE_V_IMAGE ; } /*color: 0 0 0 255;*/ } } #if 0 part { name: "line_v.6.padding.top"; type: RECT; scale: 1; description { state: "default" 0.0; min: 0 48; fixed: 0 1; visible: 0; rel1 { relative: 0.0 1.0; to: "line_v.5"; } rel2 { relative: 1.0 1.0; to: "line_v.5"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_v.txt.1"; type: TEXT; scale: 1; description { state: "default" 0.0; min: 0 30; fixed: 0 1; visible: 1; rel1 { relative: 0.0 1.0; to: "line_v.6.padding.top"; } rel2 { relative: 1.0 1.0; to: "line_v.6.padding.top"; } align: 0.0 0.0; text { font: FONT_NAME; size: 30; align: 0.5 0.5; min: 1 1; text: "Tap and hold an icon and move to edit"; } /*color: 0 0 0 255;*/ } } part { name: "line_v.txt.2"; type: TEXT; scale: 1; description { state: "default" 0.0; min: 0 30; fixed: 0 1; visible: 1; rel1 { relative: 0.0 1.0; to: "line_v.txt.1"; } rel2 { relative: 1.0 1.0; to: "line_v.txt.1"; } align: 0.0 0.0; text { font: FONT_NAME; size: 30; align: 0.5 0.5; min: 1 1; text: "your shortcuts"; } /*color: 0 0 0 255;*/ } } #endif part { name: "line_h.1.padding.left"; type: RECT; scale: 1; description { state: "default" 0.0; min: 180 0; fixed: 1 0; visible: 0; rel1 { relative: 0.0 0.0; to:"bg.content.shortcuts"; } rel2 { relative: 0.0 1.0; to:"bg.content.shortcuts"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_h.1"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 1; min: 4 900; fixed: 1 1; visible: 1; rel1 { relative: 1.0 0.0; to:"line_h.1.padding.left"; } rel2 { relative: 1.0 1.0; to:"line_h.1.padding.left"; } image{ normal: SHOTCUTS_LINE_H_IMAGE ; } align: 0.0 0.0; } } part { name: "line_h.2.padding.left"; type: RECT; scale: 1; description { state: "default" 0.0; min: 180 0; fixed: 1 0; visible: 0; rel1 { relative: 1.0 0.0; to:"line_h.1"; } rel2 { relative: 1.0 1.0; to:"line_h.1"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_h.2"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 1; min: 4 0; fixed: 1 0; rel1 { relative: 1.0 0.0; to:"line_h.2.padding.left"; } rel2 { relative: 1.0 1.0; to:"line_h.2.padding.left"; } image{ normal: SHOTCUTS_LINE_H_IMAGE ; } align: 0.0 0.0; } } part { name: "line_h.3.padding.left"; type: RECT; scale: 1; description { state: "default" 0.0; min: 180 0; fixed: 1 0; visible: 0; rel1 { relative: 1.0 0.0; to:"line_h.2"; } rel2 { relative: 1.0 1.0; to:"line_h.2"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_h.3"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 1; min: 4 0; fixed: 1 0; rel1 { relative: 1.0 0.0; to:"line_h.3.padding.left"; } rel2 { relative: 1.0 1.0; to:"line_h.3.padding.left"; } image{ normal: SHOTCUTS_LINE_H_IMAGE ; } align: 0.0 0.0; } } part { name: "line_h.4.padding.left"; type: RECT; scale: 1; description { state: "default" 0.0; min: 180 0; fixed: 1 0; visible: 0; rel1 { relative: 1.0 0.0; to:"line_h.3"; } rel2 { relative: 1.0 1.0; to:"line_h.3"; } align: 0.0 0.0; color: 0 0 0 255; } } part { name: "line_h.4"; type: IMAGE; scale: 1; mouse_events: 0; description { state: "default" 0.0; visible: 1; min: 4 0; fixed: 1 0; rel1 { relative: 1.0 0.0; to:"line_h.4.padding.left"; } rel2 { relative: 1.0 1.0; to:"line_h.4.padding.left"; } image{ normal: SHOTCUTS_LINE_H_IMAGE ; } align: 0.0 0.0; } } SHOTCUTS_MENU_H("0", 0, 0, SHORTCUTS_PANEL_HEIGHT, 180, "line_h.1.padding.left") SHOTCUTS_MENU_H("4", 0, 180, SHORTCUTS_PANEL_HEIGHT, 360, "line_h.1.padding.left") SHOTCUTS_MENU_H("8", 0, 360, SHORTCUTS_PANEL_HEIGHT, 540, "line_h.1.padding.left") SHOTCUTS_MENU_H("12", 0, 540, SHORTCUTS_PANEL_HEIGHT, 720, "line_h.1.padding.left") SHOTCUTS_MENU_H("16", 0, 720, SHORTCUTS_PANEL_HEIGHT, 900, "line_h.1.padding.left") /*SHOTCUTS_MENU_H("20", 0, 900, 1280, 1080, "line_h.1.padding.left") SHOTCUTS_MENU_H("24", 0, 1080, 1280, 1160, "line_h.1.padding.left")*/ SHOTCUTS_MENU_H("1", 0, 0, SHORTCUTS_PANEL_HEIGHT, 180, "line_h.2.padding.left") SHOTCUTS_MENU_H("5", 0, 180, SHORTCUTS_PANEL_HEIGHT, 360, "line_h.2.padding.left") SHOTCUTS_MENU_H("9", 0, 360, SHORTCUTS_PANEL_HEIGHT, 540, "line_h.2.padding.left") SHOTCUTS_MENU_H("13", 0, 540, SHORTCUTS_PANEL_HEIGHT, 720, "line_h.2.padding.left") SHOTCUTS_MENU_H("17", 0, 720, SHORTCUTS_PANEL_HEIGHT, 900, "line_h.2.padding.left") /*SHOTCUTS_MENU_H("21", 0, 900, 1280, 1080, "line_h.2.padding.left") SHOTCUTS_MENU_H("25", 0, 1080, 1280, 1160, "line_h.2.padding.left")*/ SHOTCUTS_MENU_H("2", 0, 0, SHORTCUTS_PANEL_HEIGHT, 180, "line_h.3.padding.left") SHOTCUTS_MENU_H("6", 0, 180, SHORTCUTS_PANEL_HEIGHT, 360, "line_h.3.padding.left") SHOTCUTS_MENU_H("10", 0, 360, SHORTCUTS_PANEL_HEIGHT, 540, "line_h.3.padding.left") SHOTCUTS_MENU_H("14", 0, 540, SHORTCUTS_PANEL_HEIGHT, 720, "line_h.3.padding.left") SHOTCUTS_MENU_H("18", 0, 720, SHORTCUTS_PANEL_HEIGHT, 900, "line_h.3.padding.left") /*SHOTCUTS_MENU_H("22", 0, 900, 1280, 1080, "line_h.3.padding.left") SHOTCUTS_MENU_H("26", 0, 1080, 1280, 1160, "line_h.3.padding.left")*/ SHOTCUTS_MENU_H("3", 0, 0, SHORTCUTS_PANEL_HEIGHT, 180, "line_h.4.padding.left") SHOTCUTS_MENU_H("7", 0, 180, SHORTCUTS_PANEL_HEIGHT, 360, "line_h.4.padding.left") SHOTCUTS_MENU_H("11", 0, 360, SHORTCUTS_PANEL_HEIGHT, 540, "line_h.4.padding.left") SHOTCUTS_MENU_H("15", 0, 540, SHORTCUTS_PANEL_HEIGHT, 720, "line_h.4.padding.left") SHOTCUTS_MENU_H("19", 0, 720, SHORTCUTS_PANEL_HEIGHT, 900, "line_h.4.padding.left") /*SHOTCUTS_MENU_H("23", 0, 900, 1280, 1080, "line_h.4.padding.left") SHOTCUTS_MENU_H("27", 0, 1080, 1280, 1160, "line_h.4.padding.left")*/ } } }//END connection //end file