diff options
Diffstat (limited to 'edc/cam_zoom_layout_inverse.edc')
-rwxr-xr-x | edc/cam_zoom_layout_inverse.edc | 146 |
1 files changed, 146 insertions, 0 deletions
diff --git a/edc/cam_zoom_layout_inverse.edc b/edc/cam_zoom_layout_inverse.edc new file mode 100755 index 0000000..8193260 --- /dev/null +++ b/edc/cam_zoom_layout_inverse.edc @@ -0,0 +1,146 @@ +/* + * 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 ZOOM_BG_X 188 +#define ZOOM_BG_Y 89 + +#define ZOOM_BG_W 96 +#define ZOOM_BG_H 542 + +#define ZOOM_TEXT_X 0 +#define ZOOM_TEXT_Y 26 +#define ZOOM_TEXT_W 96 +#define ZOOM_TEXT_H 44 + +#define ZOOM_SLIDE_X 0 +#define ZOOM_SLIDE_Y 104 + + +images { + image: ZOOM_BG_IMAGE COMP; +} + +collections { + group { + name: "main"; + + parts { + part { + name: "bg"; + type: RECT; + scale: 1; + description { + state: "default" 0.0; + visible: 0.0; + min: MAIN_W MAIN_H; + max: MAIN_W MAIN_H; + 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 - (ZOOM_BG_X+ZOOM_BG_W)/MAIN_W) (1 - (ZOOM_BG_Y+ZOOM_BG_H)/MAIN_H) ; offset: 0 0; to: "bg";} + rel2 { relative: (1 - ZOOM_BG_X/MAIN_W) (1 - ZOOM_BG_Y/MAIN_H); offset: -1 -1; to: "bg";} + image { normal: ZOOM_BG_IMAGE; } + + } + } + part { + name: "text_min"; + type: TEXT; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 (1 - (ZOOM_BG_H-ZOOM_TEXT_Y)/ZOOM_BG_H); to: "bg_image"; } + rel2 { relative: 1.0 (1 - (ZOOM_BG_H-ZOOM_TEXT_H-ZOOM_TEXT_Y)/ZOOM_BG_H); to: "bg_image"; } + text { + font : FONT_NAME; + size : 40; + align: 0.5 0.5; + } + } + } + part { + name: "text_max"; + type: TEXT; + scale: 1; + description { + state: "default" 0.0; + rel1 { relative: 0.0 (1.0 - (ZOOM_TEXT_Y+ZOOM_TEXT_H)/ZOOM_BG_H); to: "bg_image"; } + rel2 { relative: 1.0 (1.0 - ZOOM_TEXT_Y/ZOOM_BG_H); to: "bg_image"; } + text { + font : FONT_NAME; + size : 40; + align: 0.5 0.5; + } + } + } + part { + name: "slider"; + type: SWALLOW; + description { + state: "default" 0.0; + rel1 { relative: 0.0 (1.0 - (ZOOM_BG_H-ZOOM_SLIDE_Y)/ZOOM_BG_H); to: "bg_image"; } + rel2 { relative: 1.0 (1.0 - ZOOM_SLIDE_Y/ZOOM_BG_H); to: "bg_image"; } + } + } + programs { + program { + name:"set.zoom.default"; + source: "prog"; + signal: "set.zoom.default"; + script: { + set_state(PART:"bg_image", "default", 0.0); + } + } + program { + name:"set.zoom.landscape_inverse"; + source: "prog"; + signal: "set.zoom.landscape_inverse"; + script: { + set_state(PART:"bg_image", "landscape_inverse", 0.0); + } + } + program { + name:"set.zoom.portrait"; + source: "prog"; + signal: "set.zoom.portrait"; + script: { + set_state(PART:"bg_image", "portrait", 0.0); + } + } + program { + name:"set.zoom.portrait_inverse"; + source: "prog"; + signal: "set.zoom.portrait_inverse"; + script: { + set_state(PART:"bg_image", "portrait_inverse", 0.0); + } + } + } + } + } +} +//end files |