diff options
Diffstat (limited to 'main/layout/ivug-setas.edc')
-rwxr-xr-x | main/layout/ivug-setas.edc | 388 |
1 files changed, 181 insertions, 207 deletions
diff --git a/main/layout/ivug-setas.edc b/main/layout/ivug-setas.edc index 7ec8ab1..8646f0b 100755 --- a/main/layout/ivug-setas.edc +++ b/main/layout/ivug-setas.edc @@ -1,57 +1,35 @@ -/* - * 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. - */ +/*
+ * 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 "ivug-theme.edc" + +#define PADDING_VISIBILITY 0 +collections { -#define BTN_CANCEL_WIDTH 86 -#define BTN_CANCEL_HEIGHT 86 - -#define BTN_OK_WIDTH 86 -#define BTN_OK_HEIGHT 86 - -#define BTN_CANCEL "T01_btn_cancel.png" -#define BTN_CANCEL_PRESS "T01_btn_cancel_press.png" - -#define BTN_OK "T01_btn_ok.png" -#define BTN_OK_PRESS "T01_btn_ok_press.png" -#define BTN_OK_DIM "T01_btn_ok_dim.png" - -#define _STATE_ENABLED 1 -#define _STATE_DISABLED 0 +#define PROGRESSBAR_WIDTH 100 +#define PROGRESSBAR_HEIGHT 100 -collections { group { name: "setas_view"; - images { - image: BTN_CANCEL COMP; - image: BTN_CANCEL_PRESS COMP; - - image: BTN_OK COMP; - image: BTN_OK_PRESS COMP; - image: BTN_OK_DIM COMP; - } - script { - public ok_state = _STATE_ENABLED; - } parts{ part { name: "bg"; type: RECT; - mouse_events: 1; - repeat_events: 0; scale:1; description { state: "default" 0.0; @@ -70,18 +48,50 @@ collections { description { state: "default" 0.0; + visible: 1; rel1 { relative: 0 0; to:bg; } rel2 { relative: 1 1; to:bg; } } } + part{ + name: "setasview.thumbnail"; + type: SWALLOW; + mouse_events: 1; + repeat_events: 0; + scale: 1; //allow scaling + description { + state: "default" 0.0; + align: 0.5 0.5; + visible: 1; + rel1 { relative: 0 0; to:bg; } + rel2 { relative: 1 1; to:bg; } + } + } + + part{ + name: "setasview.progressbar"; + type: SWALLOW; + scale: 1; //allow scaling + + description { + state: "default" 0.0; + min: PROGRESSBAR_WIDTH PROGRESSBAR_WIDTH; + max: PROGRESSBAR_WIDTH PROGRESSBAR_WIDTH; + fixed: 1 1; + visible: 1; + align: 0.5 0.5; + rel1 { relative: 0 0; to:"setasview.photocam"; } + rel2 { relative: 1 1; to:"setasview.photocam"; } + } + } + part { name: "event"; type: RECT; repeat_events: 1; mouse_events: 1; scale:1; - description { state: "default" 0.0; color: 0 0 0 0; @@ -91,188 +101,152 @@ collections { } } - part { name: "setasview.btn_cancel"; - type: IMAGE; - scale: 1; + part{ + name: "setasview.scissorbox"; + type: SWALLOW; mouse_events: 1; + repeat_events: 1; + scale: 1; description { - visible: 0; - min: BTN_CANCEL_WIDTH BTN_CANCEL_HEIGHT; - max: BTN_CANCEL_WIDTH BTN_CANCEL_HEIGHT; - fixed: 1 1; state: "default" 0.0; - align: 1.0 1.0; - rel1 { relative: 0.0 0.0;} - rel2 { relative: 0.944 0.975;} - } - - description { - state: "show" 0.0; - inherit: "default" 0.0; - visible: 1; - image.normal: BTN_CANCEL; + visible: 0; + rel1 { relative: 0 0; to:bg; } + rel2 { relative: 1 1; to:bg; } } + } - description { - state: "pressed" 0.0; - inherit: "default" 0.0; - visible: 1; - image.normal: BTN_CANCEL_PRESS; - } - description { - state: "hide" 0.0; - visible: 0; - } + } + programs { + program { + name: "bg_clicked"; + signal: "mouse,clicked,1"; + source: "event"; + action: SIGNAL_EMIT "setasview,bg,clicked" "edc"; } + } - part { name: "setasview.btn_ok"; - type: IMAGE; - scale: 1; - mouse_events: 1; - description { - state: "default" 0.0; - visible: 1; - min: BTN_OK_WIDTH BTN_OK_HEIGHT; - max: BTN_OK_WIDTH BTN_OK_HEIGHT; - fixed: 1 1; - align: 0.0 1.0; - image.normal: BTN_OK; - rel1 { relative: 0.056 0.0;} - rel2 { relative: 1.0 0.975;} - } + } +} - description { - state: "pressed" 0.0; - inherit: "default" 0.0; - image.normal: BTN_OK_PRESS; - } - description { - state: "dim" 0.0; - inherit: "default" 0.0; - image.normal: BTN_OK_DIM; - } +collections { +#define BTN_SET_CALLER_IMAGE_WIDTH 86 +#define BTN_SET_CALLER_IMAGE_HEIGHT 86 +#if 1 + group { + name: "setas_view_btn"; + + images { + image: "00_winset_control_toolbar_bg.png" COMP; + } + + parts{ + part { + name: "base"; + type: RECT; + scale:1; + mouse_events: 1; + repeat_events: 1; description { - state: "hide" 0.0; - visible: 0; + state: "default" 0.0; + color: 0 0 0 0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; } } + part { name: "controlbar_bg"; + scale: 1; + description { state: "default" 0.0; + min: 0 CONTROLBAR_SMALL_HEIGHT_INC; + max: 999999 CONTROLBAR_SMALL_HEIGHT_INC; + fixed: 0 1; + align: 0.0 1.0; + visible: 1; + rel1 { to: "base"; } + rel2 { to: "base"; } + //image.normal: "00_winset_control_toolbar_bg.png"; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "controlbar_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "controlbar_bg"; + rel2.to: "controlbar_bg"; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } + part { name: "elm.prev_btn_bg"; + type: RECT; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 1.0 0.0; + rel1 { relative: 1.0 0.0; to: "controlbar_bg"; } + rel2.to: "controlbar_bg"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TITLE_PREV_BTN_BG_SIZE_INC 0; + } + } + part { name: "elm.swallow.prev_btn"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + fixed: 1 1; + align: 0.5 0.5; + rel1.to: "elm.prev_btn_bg"; + rel2.to: "elm.prev_btn_bg"; + } + } + part { name: "controlbar"; + type: SWALLOW; + scale: 1; + clip_to: "controlbar_clip"; + description { state: "default" 0.0; + fixed: 1 1; + rel1.to: "controlbar_bg"; + rel2 { relative: 0.0 1.0; to: "elm.prev_btn_bg"; } + visible: 1; + } + } } programs { -/* For button cancel */ - program { - name: "hide_btn_cancel"; - signal: "setasview,hide,btn_cancel"; - source: "elm"; - action: STATE_SET "hide" 0.0; - target: "setasview.btn_cancel"; - } - - program { - name: "show_btn_cancel"; - signal: "setasview,show,btn_cancel"; - source: "elm"; - action: STATE_SET "show" 0.0; - target: "setasview.btn_cancel"; - } - - program { - name: "btn_cancel_mouse_down"; - signal: "mouse,down,1"; - source: "setasview.btn_cancel"; - action: STATE_SET "pressed" 0.0; - target: "setasview.btn_cancel"; - } - - program { - name: "btn_cancel_mouse_up"; - signal: "mouse,up,1"; - source: "setasview.btn_cancel"; - after: "show_btn_cancel"; - } - - program { - name: "btn_cancel_clicked"; - signal: "mouse,clicked,1"; - source: "setasview.btn_cancel"; - action: SIGNAL_EMIT "setasview,cancel,clicked" ""; - } - -/* For button ok */ - program { - name: "hide_btn_set"; - signal: "setasview,hide,btn_ok"; - source: "elm"; - action: STATE_SET "hide" 0.0; - target: "setasview.btn_ok"; - } - - program { - name: "show_btn_set"; - signal: "setasview,show,btn_ok"; - source: "elm"; - script { - if ( get_int(ok_state) == _STATE_DISABLED ) - set_state(PART:"setasview.btn_ok", "dim", 0.0); - else - set_state(PART:"setasview.btn_ok", "default", 0.0); - } - } - program { - name: "dim_btn_set"; - signal: "setasview,disable,btn_ok"; - source: "elm"; - - script { - set_int(ok_state, _STATE_DISABLED); - set_state(PART:"setasview.btn_ok", "dim", 0.0); - } - } - - program { - name: "enable_btn_set"; - signal: "setasview,enable,btn_ok"; - source: "elm"; - script { - set_int(ok_state, _STATE_ENABLED); - set_state(PART:"setasview.btn_ok", "default", 0.0); - } - } - - program { - name: "btn_set_mouse_down"; - signal: "mouse,down,1"; - source: "setasview.btn_ok"; - - script { - if ( get_int(ok_state) == _STATE_ENABLED ) - set_state(PART:"setasview.btn_ok", "pressed", 0.0); + program { + name: "hide_menu"; + signal: "elm,state,hide"; + source: "event"; + action: STATE_SET "hide" 0.0; + target: "controlbar_clip"; + target: "controlbar_bg"; } - } - - program { - name: "btn_set_mouse_up"; - signal: "mouse,up,1"; - source: "setasview.btn_ok"; - after: "show_btn_set"; - } - - program { - name: "btn_set_clicked"; - signal: "mouse,clicked,1"; - source: "setasview.btn_ok"; - script { - if ( get_int(ok_state) == _STATE_ENABLED ) - { - emit("setasview,set,clicked", ""); - } - } - } + program { + name: "show_menu"; + signal: "elm,state,show"; + source: "event"; + action: STATE_SET "default" 0.0; + target: "controlbar_clip"; + target: "controlbar_bg"; + } } } } + |