diff options
Diffstat (limited to 'main/layout/ivug-naviframe.edc')
-rwxr-xr-x | main/layout/ivug-naviframe.edc | 2196 |
1 files changed, 2045 insertions, 151 deletions
diff --git a/main/layout/ivug-naviframe.edc b/main/layout/ivug-naviframe.edc index d2d0368..0aa6895 100755 --- a/main/layout/ivug-naviframe.edc +++ b/main/layout/ivug-naviframe.edc @@ -1,66 +1,26 @@ -/* - * 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.
+ */
/* * Refer to themes/groups/naviframe.edc */ -#define NAVIFRAME_VIEW_TRANS_TIME 0.3 -#define NAVIFRAME_TEXT_PADDING_INC 144 -#define NAVIFRAME_TEXT_PADDING_MORE_BUTTON_INC 278 -#define NAVIFRAME_TEXT_PADDING_ICON_VISIBLE_INC 186 - -#define NAVIFRAME_TITLE_H_INC 100 -#define NAVIFRAME_OH_CLOSED_H_INC 8 -#define NAVIFRAME_OH_OPENED_H_INC 106 -#define NAVIFRAME_OH_CONTENT_H_INC 74 -#define NAVIFRAME_OH_PADDING_INC 16 -#define NAVIFRAME_OH_OPENED_DOUBLE_H_INC 196 -#define NAVIFRAME_OH_SHADOW_H_INC 0 -#define NAVIFRAME_INDICATOR_W_INC 128 -#define NAVIFRAME_PADDING_EXPANDED_INC 141 -#define NAVIFRAME_TITLE_FONT_SIZE_INC 36 -#define NAVIFRAME_ICON_SIZE_INC 32 32 -#define NAVIFRAME_ICON_PADDING_INC 16 0 -#define NAVIFRAME_OH_ARROW_SIZE_INC 19 12 -#define NAVIFRAME_TITLE_TEXT_COLOR_INC 235 236 237 255 -#define NAVIFRAME_TITLE_BG_COLOR_INC 92 92 92 255 -#define NAVIFRAME_TITLE_LEFT_SEPARATOR_COLOR_INC 3 3 3 255 -#define NAVIFRAME_TITLE_RIGHT_SEPARATOR_COLOR_INC 52 52 52 255 -#define NAVIFRAME_OH_BORDER_INC 0 0 4 0 +#include "ivug-theme.edc" -#define NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 10 -#define NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 10 -#define NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC 124 80 -#define NAVIFRAME_TITLE_PREV_BTN_BG_SIZE_INC 144 -#define NAVIFRAME_NO_BUTTON_ICON_PADDING_INC 52 -#define NAVIFRAME_CONTROLBAR_BG_COLOR_INC 0 0 0 255 -#define CONTROLBAR_LARGE_HEIGHT_INC 95//122 -#define CONTROLBAR_SMALL_HEIGHT_INC CONTROLBAR_LARGE_HEIGHT_INC//102 -#define NAVIFRAME_PREV_BTN_W_INC 124 -#define NAVIFRAME_CONTROLBAR_PADDING_INC 5 -#define NAVIFRAME_SEGMENT_TITLE_H_INC 136 - -#define NAVIFRAME_TITLE_SEGMENT_FONT_SIZE_INC 28 -#define NAVIFRAME_TITLE_SEGMENT_TEXT_H_INC 50 -#define NAVIFRAME_TITLE_SEGMENT_H_INC 74 - -#define LAYOUT_INDICATOR_HEIGHT_INC 50 -#define LAYOUT_INDICATOR_COLOR 0 0 0 0 //92 92 92 255 // Same as Naviframe +#define NAVIFRAME_VIEW_TRANS_TIME 0.3 /////////////////////////////////////////////////////////////////////////// // Naviframe @@ -76,11 +36,14 @@ collections { } } } - group { name:"elm/naviframe/item/basic/ivug/default"; - alias:"elm/naviframe/item/1line/ivug/default"; + group { name:"elm/naviframe/item/basic/ivug-main/default"; + alias:"elm/naviframe/item/1line/ivug-main/default"; images { - image: "T01_control_top_bg.png" COMP; - image: "T01_control_top_arrow.png" COMP; + image: "00_winset_control_top_bg.png" COMP; + image: "00_winset_control_top_arrow.png" COMP; + image: "00_winset_title_line.png" COMP; + image: "00_winset_control_toolbar_bg.png" COMP; + image: "00_winset_title_bg.png" COMP; } script { public oh_show = 0; //optionheader show/hide @@ -91,31 +54,9 @@ collections { public right_btn_visible = 0; //whether right btn is shown public more_btn_visible = 0; //whether more btn is shown public large_padded_center_align = 0; //large padding based on button size for center align for 1/2 buttons. + public subtitle_visible = 0; //whether subtitle is shown } parts { - part { - name: "indicator"; - type: RECT; - scale: 1; - repeat_events : 0; - description { - state: "default" 0.0; - rel1 { relative: 0.0 0.0; } - rel2 { relative: 1.0 0.0; } - min: 0 LAYOUT_INDICATOR_HEIGHT_INC; - fixed: 0 1; - align: 0.5 0.0; - color: LAYOUT_INDICATOR_COLOR; - visible: 1; - } - - description { - state: "hide" 0.0; - inherit: "default" 0.0; - visible: 0; - } - } - part { name: "base"; type: RECT; mouse_events: 0; @@ -160,7 +101,7 @@ collections { } } - part { name: "elm.swallow.detail"; + part { name: "elm.swallow.detail"; // Detail view. type: SWALLOW; scale: 1; repeat_events: 0; @@ -177,8 +118,31 @@ collections { } } + part { + name: "indicator"; + type: RECT; + scale: 1; + repeat_events : 0; + clip_to: "content_clip"; + description { + state: "default" 0.0; + min: 0 LAYOUT_INDICATOR_HEIGHT_INC; +// max: 0 LAYOUT_INDICATOR_HEIGHT_INC; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 0.0; + fixed: 0 1; + align: 0.5 0.0; + color: LAYOUT_INDICATOR_COLOR_INC; + visible: 1; + } + + description { + state: "hide" 0.0; + inherit: "default" 0.0; + visible: 0; + } + } part { name: "title_bg"; - type: RECT; scale: 1; description { state: "default" 0.0; min: 1 NAVIFRAME_TITLE_H_INC; @@ -186,7 +150,7 @@ collections { fixed: 0 1; rel1 { relative: 0.0 0.0; to: "base"; } rel2 { relative: 1.0 0.0; to: "base"; } - color: NAVIFRAME_TITLE_BG_COLOR_INC; + image.normal: "00_winset_title_bg.png"; } description { state: "hide" 0.0; inherit: "default" 0.0; @@ -214,7 +178,7 @@ collections { rel1.relative: 0 1; rel2.to: "title_bg"; visible: 0; - image { normal: "T01_control_top_bg.png"; + image { normal: "00_winset_control_top_bg.png"; border: NAVIFRAME_OH_BORDER_INC; } } @@ -259,7 +223,7 @@ collections { min: 0 NAVIFRAME_OH_CONTENT_H_INC; rel1 { relative: 0.0 1.0; to: "optionheader_top_padding"; } rel2 { relative: 1.0 1.0; to: "optionheader_top_padding"; } - fixed: 0 1; + fixed: 1 1; align: 0.0 0.0; } } @@ -276,76 +240,1002 @@ collections { visible: 0; } } - part { name: "padding_before_left_btn"; + part { name: "optionheader_shadow"; type: RECT; - mouse_events: 0; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_SHADOW_INC; + rel1 { relative: 0.0 1.0; to: "optionheader_bottom_padding"; } + rel2 { relative: 1.0 1.0; to: "optionheader_bottom_padding"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "left_btn_separator"; + type: IMAGE; scale: 1; clip_to: "title_clip"; description { state: "default" 0.0; - min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; - fixed: 1 0; - align: 0.0 0.5; - rel1 { relative: 0.0 0.0; to: "title_bg"; } - rel2 { relative: 0.0 1.0; to: "title_bg"; } + min: 2 48; + max: 2 48; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_left_btn"; } + rel2 { relative: 0.0 1.0; to: "title_left_btn"; } + image.normal: "00_winset_title_line.png"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "right_btn_separator"; + type: IMAGE; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 2 48; + max: 2 48; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_right_btn"; } + rel2 { relative: 0.0 1.0; to: "title_right_btn"; } + image.normal: "00_winset_title_line.png"; visible: 0; } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } } - part { name: "padding_after_left_btn"; + part { name: "padding_before_text"; type: RECT; scale: 1; + mouse_events: 0; clip_to: "title_clip"; description { state: "default" 0.0; - min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "title_bg"; } + rel2 { relative: 0.0 1.0; to: "title_bg"; } fixed: 1 0; - align: 0 0.5; - rel1 { relative: 1.0 0.0; to: "title_left_btn"; } - rel2 { relative: 1.0 1.0; to: "title_left_btn"; } + min: NAVIFRAME_ICON_PADDING_INC; visible: 0; } } - part { name: "padding_before_more_btn"; + part { name: "padding_center_text1"; type: RECT; scale: 1; + mouse_events: 0; clip_to: "title_clip"; description { state: "default" 0.0; - min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + min: 0 0; fixed: 1 0; - align: 1.0 0.5; - rel1 { relative: 0.0 0.0; to: "title_more_btn"; } - rel2 { relative: 0.0 1.0; to: "title_more_btn"; } + align: 0.0 0.0; + rel1 { relative: 1.0 0.0; to: "padding_before_text"; } + rel2 { relative: 1.0 1.0; to: "padding_before_text"; } visible: 0; } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: 0 0; + } + description { state: "icon" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_NO_BUTTON_ICON_PADDING_INC 0; + } + description { state: "icon_left_button" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_ICON_VISIBLE_INC 0; + } } - part { name: "padding_after_right_btn"; + part { name: "padding_center_text2"; type: RECT; mouse_events: 0; scale: 1; clip_to: "title_clip"; description { state: "default" 0.0; - min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + min: 0 0; fixed: 1 0; align: 1.0 0.5; rel1 { relative: 1.0 0.0; to: "title_bg"; } rel2 { relative: 1.0 1.0; to: "title_bg"; } visible: 0; } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_INC 0; } - part { name: "padding_before_right_btn"; + } + part { name: "elm.text.title"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: NAVIFRAME_TITLE_FONT_SIZE_INC; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + text_class: "slp_medium"; + } + color: NAVIFRAME_TITLE_TEXT_COLOR_INC; + align: 0.0 0.5; + fixed: 1 0; + rel1 { relative: 1.0 0.0; to_x: "padding_center_text1"; to_y: "title_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding_center_text2"; to_y: "title_bg"; } + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 1.0; to_x: "title_more_btn"; to_y: "title_bg"; } + } + description { state: "subtitle_is_set" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 0.7; to_x: "padding_center_text2"; to_y: "title_bg"; } + } + description { state: "subtitle_right_more_button_is_set" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 0.7; to_x: "title_more_btn"; to_y: "title_bg"; } + } + } + part { name: "elm.text.subtitle"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: NAVIFRAME_SUBTITLE_FONT_SIZE_INC; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + text_class: "slp_medium"; + } + color: NAVIFRAME_SUBTITLE_TEXT_COLOR_INC; + align: 0.0 0.5; + fixed: 1 0; + rel1 { + relative: 1.0 1.0; + to_x: "padding_center_text1"; + to_y: "elm.text.title"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_center_text2"; + to_y: "elm.text.title"; + } + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + rel2 { + relative: 0.0 1.0; + to_x: "title_more_btn"; + to_y: "elm.text.title"; + } + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_ICON_SIZE_INC; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "padding_center_text1"; } + rel2 { relative: 0.0 1.0; to: "padding_center_text1"; } + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + align: 0.0 0.5; + } + } + part { name: "click_event_area"; + ignore_flags: ON_HOLD; + repeat_events: 1; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + part { name: "title_left_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 1; + align: 1 0.5; + rel1 { relative: 0.0 0.0; to: "title_right_btn"; } + rel2 { relative: 0.0 1.0; to: "title_right_btn"; } + } + } + part { name: "title_right_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + align: 1 0.5; + fixed: 1 1; + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } + } + } + part { name: "title_more_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 1; + align: 1 0.5; + rel1 { relative: 0.0 0.0; to: "title_left_btn"; } + rel2 { relative: 0.0 1.0; to: "title_left_btn"; } + } + } + part { name: "optionheader_arrow"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: NAVIFRAME_OH_ARROW_SIZE_INC; + max: NAVIFRAME_OH_ARROW_SIZE_INC; + fixed: 1 1; + align: 0.5 0.0; + rel1 { relative: 0.0 1.1; to: "title_more_btn"; } + rel2 { relative: 1.0 1.2; to: "title_more_btn"; } + //image.normal: "00_winset_control_top_arrow.png"; + color: 255 255 255 0; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "controlbar_bg"; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + max: 999999 0; + fixed: 0 1; + align: 0.0 1.0; + visible: 0; + rel1 { to: "base"; } + rel2 { to: "base"; } + image.normal: "00_winset_control_toolbar_bg.png"; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 0 CONTROLBAR_SMALL_HEIGHT_INC; + max: 999999 CONTROLBAR_SMALL_HEIGHT_INC; + visible: 1; + } + } + part { name: "controlbar_clip"; type: RECT; mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "controlbar_bg"; + rel2.to: "controlbar_bg"; + } + } + part { name: "elm.prev_btn_bg"; + type: RECT; scale: 1; - clip_to: "title_clip"; + 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"; } + } + } + } + programs { + program { name: "content_new_pushed"; + signal: "elm,state,new,pushed,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_pushed"; + signal: "elm,state,cur,pushed,internal"; + source: ""; + action: STATE_SET "left" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "pushed_finished"; + } + program { name: "content_prev_popped"; + signal: "elm,state,prev,popped,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_popped"; + signal: "elm,state,cur,popped,internal"; + source: ""; + action: STATE_SET "right" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "popped_finished"; + } + program { name: "cur_pushed"; + signal: "elm,state,cur,pushed"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,pushed,internal", ""); + } + } + program { name: "new_pushed"; + signal: "elm,state,new,pushed"; + source: "elm"; + script { + set_state(PART:"base", "right", 0.0); + emit("elm,state,new,pushed,internal", ""); + } + } + program { name: "prev_popped"; + signal: "elm,state,prev,popped"; + source: "elm"; + script { + set_state(PART:"base", "left", 0.0); + emit("elm,state,prev,popped,internal", ""); + } + } + program { name: "cur_popped"; + signal: "elm,state,cur,popped"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,popped,internal", ""); + } + } + program { name: "visible"; + signal: "elm,state,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "base"; + } + program { name: "title_show"; + signal: "elm,state,title,show"; + source: "elm"; + script { + set_state(PART:"indicator", "default", 0.0); + set_state(PART:"title_bg", "default", 0.0); + if (get_int(oh_show) == 1) { + if (get_int(oh_close) == 1) { + emit("elm,state,optionheader,instant_close", ""); + }else { + emit("elm,state,optionheader,instant_open", ""); + } + } + else + set_state(PART:"optionheader_bg", "default", 0.0); + } + } + program { name: "title_hide"; + signal: "elm,state,title,hide"; + source: "elm"; + action: STATE_SET "hide" 0.0; + target: "title_bg"; + target: "optionheader_bg"; + target: "indicator"; + } + program { name: "prev_btn_show"; + signal: "elm,state,prev_btn,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + set_state(PART:"elm.prev_btn_bg", "visible", 0.0); + } + } + program { name: "prev_btn_hide"; + signal: "elm,state,prev_btn,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + set_state(PART:"elm.prev_btn_bg", "default", 0.0); + } + } + program { name: "subtitle_show"; + signal: "elm,state,subtitle,show"; + source: "elm"; + script { + set_int(subtitle_visible, 1); + if (get_int(large_padded_center_align) == 0) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "subtitle_is_set", 0.0); + } + } + program { name: "subtitle_hide"; + signal: "elm,state,subtitle,hide"; + source: "elm"; + script { + set_int(subtitle_visible, 0); + if (get_int(large_padded_center_align) == 0) + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + else + set_state(PART:"elm.text.title", "default", 0.0); + } + } + program { name: "left_btn_show"; + signal: "elm,state,title_left_btn,show"; + source: "elm"; + script { + set_int(left_btn_visible, 1); + set_state(PART:"left_btn_separator", "visible", 0.0); + if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "visible", 0.0); + if ((get_int(more_btn_visible) == 1) && (get_int(right_btn_visible) == 1)) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + } + } + program { name: "left_btn_hide"; + signal: "elm,state,title_left_btn,hide"; + source: "elm"; + script { + set_int(left_btn_visible, 0); + set_state(PART:"left_btn_separator", "default", 0.0); + if ((get_int(more_btn_visible) == 0) && (get_int(right_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_show"; + signal: "elm,state,title_right_btn,show"; + source: "elm"; + script { + set_int(right_btn_visible, 1); + set_state(PART:"right_btn_separator", "visible", 0.0); + if (get_int(more_btn_visible) == 1) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_hide"; + signal: "elm,state,title_right_btn,hide"; + source: "elm"; + script { + set_int(right_btn_visible, 0); + set_state(PART:"right_btn_separator", "default", 0.0); + if ((get_int(more_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_show"; + signal: "elm,state,title_more_btn,show"; + source: "elm"; + script { + set_int(more_btn_visible, 1); + if (get_int(right_btn_visible) == 1) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_hide"; + signal: "elm,state,title_more_btn,hide"; + source: "elm"; + script { + set_int(more_btn_visible, 0); + if ((get_int(right_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "icon_show"; + signal: "elm,state,icon,show"; + source: "elm"; + script { + set_int(icon_visible, 1); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "icon", 0.0); + } + } + program { name: "icon_hide"; + signal: "elm,state,icon,hide"; + source: "elm"; + script { + set_int(icon_visible, 0); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "controlbar_show"; + signal: "elm,state,controlbar,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + } + } + program { name: "controlbar_hide"; + signal: "elm,state,controlbar,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + } + } + program { name: "controlbar_bg_show"; + signal: "elm,state,controlbar_bg,show"; + source: "elm"; + script { + set_state(PART:"controlbar_bg", "show", 0.0); + set_int(cbar_bg, get_int(cbar_bg) + 1); + } + } + program { name: "controlbar_bg_hide"; + signal: "elm,state,controlbar_bg,hide"; + source: "elm"; + script { + set_int(cbar_bg, get_int(cbar_bg) - 1); + if (get_int(cbar_bg) <= 0) + set_state(PART:"controlbar_bg", "default", 0.0); + } + } + program { name: "optionheader_show"; + signal: "elm,state,optionheader,show"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "show", 0.0); + set_state(PART:"optionheader_arrow", "show", 0.0); + set_int(oh_show, 1); + } + } + program { name: "optionheader_hide"; + signal: "elm,state,optionheader,hide"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "default", 0.0); + set_state(PART:"optionheader_arrow", "default", 0.0); + set_int(oh_show, 0); + } + } + program { name: "optionheader_open"; + signal: "elm,state,optionheader,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_open_set"; + } + program { name: "optionheader_close"; + signal: "elm,state,optionheader,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_close_set"; + } + program { name: "optionheader_instant_open"; + signal: "elm,state,optionheader,instant_open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_open_set"; + } + program { name: "optionheader_instant_close"; + signal: "elm,state,optionheader,instant_close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_close_set"; + } + program { name: "optionheader_close_set"; + signal: "elm,state,optionheader,close_set"; + source: ""; + script { + set_int(oh_close, 1); + } + } + program { name: "optionheader_open_set"; + signal: "elm,state,optionheader,open_set"; + source: ""; + script { + set_int(oh_close, 0); + } + } + program { name: "controlbar_open"; + signal: "elm,state,controlbar,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_close"; + signal: "elm,state,controlbar,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_instant_open"; + signal: "elm,state,controlbar,instant_open"; + source: ""; + script { + emit("elm,state,prev_btn,show", "elm"); + emit("elm,state,controlbar,show", "elm"); + } + } + program { name: "controlbar_instant_close"; + signal: "elm,state,controlbar,instant_close"; + source: ""; + script { + emit("elm,state,prev_btn,hide", "elm"); + emit("elm,state,controlbar,hide", "elm"); + } + } + program { name: "show_finished"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + program { name: "pushed_finished"; + action: SIGNAL_EMIT "elm,action,pushed,finished" ""; + } + program { name: "popped_finished"; + action: SIGNAL_EMIT "elm,action,popped,finished" ""; + } + program { + name: "title_clicked"; + signal: "mouse,clicked,1"; + source: "click_event_area"; + action: SIGNAL_EMIT "elm,action,title,clicked" ""; + } + } + } + + group { name:"elm/naviframe/item/basic/ivug-main/noindicator"; + alias:"elm/naviframe/item/1line/ivug-main/noindicator"; + images { + image: "00_winset_control_top_bg.png" COMP; + image: "00_winset_control_top_arrow.png" COMP; + image: "00_winset_title_line.png" COMP; + image: "00_winset_control_toolbar_bg.png" COMP; + image: "00_winset_title_bg.png" COMP; + } + script { + public oh_show = 0; //optionheader show/hide + public oh_close = 0; //optionheader close/open + public cbar_bg = 0; //Controlbar BG Show call count + public left_btn_visible = 0; //whether left btn is shown + public icon_visible = 0; //whether icon is shown + public right_btn_visible = 0; //whether right btn is shown + public more_btn_visible = 0; //whether more btn is shown + public large_padded_center_align = 0; //large padding based on button size for center align for 1/2 buttons. + public subtitle_visible = 0; //whether subtitle is shown + } + parts { + part { name: "base"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + description { state: "left" 0.0; + inherit: "default" 0.0; + rel1.relative: -1.0 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + rel1.relative: 1.0 0.0; + rel2.relative: 2.0 1.0; + } + } + + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + mouse_events: 1; + repeat_events: 0; + clip_to: "content_clip"; + description { state: "default" 0.0; + align: 0.0 0.0; + rel1.relative: 0.0 0.0; + rel2.relative: 1.0 1.0; + } + } + part { name: "content_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + } + } + + part { name: "elm.swallow.detail"; // Detail view. + type: SWALLOW; + scale: 1; + repeat_events: 0; + description { state: "default" 0.0; + color: 255 0 0 100; + align: 0.0 0.0; + rel1.relative: 0.0 1.0; + rel1.to_x: "base"; + rel1.to_y: "optionheader_bg"; + rel2.relative: 1.0 0.0; + rel2.to_x: "base"; + rel2.to_y: "controlbar_bg"; + visible: 1; + } + } + + part { name: "title_bg"; + scale: 1; + description { state: "default" 0.0; + min: 1 NAVIFRAME_TITLE_H_INC; + align: 0.0 0.0; + fixed: 0 1; + rel1 { relative: 0.0 0.0; to: "base"; } + rel2 { relative: 1.0 0.0; to: "base"; } + image.normal: "00_winset_title_bg.png"; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "title_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + part { name: "optionheader_bg"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: 1 0; + align: 0.5 0; + fixed: 0 1; + rel1.to: "title_bg"; + rel1.relative: 0 1; + rel2.to: "title_bg"; + visible: 0; + image { normal: "00_winset_control_top_bg.png"; + border: NAVIFRAME_OH_BORDER_INC; + } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 1 NAVIFRAME_OH_OPENED_H_INC; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "optionheader_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "optionheader_bg"; } + rel2 { to: "optionheader_bg"; } + } + } + part { name: "optionheader_top_padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 0.0; to: "optionheader_bg"; } + rel2 { relative: 1.0 0.0; to: "optionheader_bg"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "optionheader"; + type: SWALLOW; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_CONTENT_H_INC; + rel1 { relative: 0.0 1.0; to: "optionheader_top_padding"; } + rel2 { relative: 1.0 1.0; to: "optionheader_top_padding"; } + fixed: 1 1; + align: 0.0 0.0; + } + } + part { name: "optionheader_bottom_padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 1.0; to: "optionheader"; } + rel2 { relative: 1.0 1.0; to: "optionheader"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "optionheader_shadow"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_SHADOW_INC; + rel1 { relative: 0.0 1.0; to: "optionheader_bottom_padding"; } + rel2 { relative: 1.0 1.0; to: "optionheader_bottom_padding"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "left_btn_separator"; + type: IMAGE; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 2 48; + max: 2 48; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_left_btn"; } + rel2 { relative: 0.0 1.0; to: "title_left_btn"; } + image.normal: "00_winset_title_line.png"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "right_btn_separator"; + type: IMAGE; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 2 48; + max: 2 48; + fixed: 1 1; align: 1.0 0.5; rel1 { relative: 0.0 0.0; to: "title_right_btn"; } rel2 { relative: 0.0 1.0; to: "title_right_btn"; } + image.normal: "00_winset_title_line.png"; visible: 0; } - description { state: "right_and_more_button" 0.0; + description { state: "visible" 0.0; inherit: "default" 0.0; - min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + visible: 1; } } part { name: "padding_before_text"; @@ -354,9 +1244,9 @@ collections { mouse_events: 0; clip_to: "title_clip"; description { state: "default" 0.0; - align: 1.0 0.5; - rel1 { relative: 0.0 0.0; to_x: "elm.text.title"; to_y: "title_bg"; } - rel2 { relative: 0.0 1.0; to_x: "elm.text.title"; to_y: "title_bg"; } + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "title_bg"; } + rel2 { relative: 0.0 1.0; to: "title_bg"; } fixed: 1 0; min: NAVIFRAME_ICON_PADDING_INC; visible: 0; @@ -368,16 +1258,16 @@ collections { mouse_events: 0; clip_to: "title_clip"; description { state: "default" 0.0; - min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + min: 0 0; fixed: 1 0; align: 0.0 0.0; - rel1 { relative: 0.0 0.0; to: "title_bg"; } - rel2 { relative: 0.0 1.0; to: "title_bg"; } + rel1 { relative: 1.0 0.0; to: "padding_before_text"; } + rel2 { relative: 1.0 1.0; to: "padding_before_text"; } visible: 0; } description { state: "visible" 0.0; inherit: "default" 0.0; - min: NAVIFRAME_TEXT_PADDING_INC 0; + min: 0 0; } description { state: "icon" 0.0; inherit: "default" 0.0; @@ -394,7 +1284,7 @@ collections { scale: 1; clip_to: "title_clip"; description { state: "default" 0.0; - min: NAVIFRAME_TITLE_FUNC_BTN_PADDING_W_INC 0; + min: 0 0; fixed: 1 0; align: 1.0 0.5; rel1 { relative: 1.0 0.0; to: "title_bg"; } @@ -411,22 +1301,65 @@ collections { scale: 1; clip_to: "title_clip"; description { state: "default" 0.0; - text { font: "HelveticaNeue:style=Medium"; + text { font: "SLP:style=Medium"; size: NAVIFRAME_TITLE_FONT_SIZE_INC; min: 0 0; max: 1 0; align: 0.5 0.5; + text_class: "slp_medium"; } color: NAVIFRAME_TITLE_TEXT_COLOR_INC; - align: 0.5 0.5; + align: 0.0 0.5; fixed: 1 0; - rel1 { relative: 1.0 0.0; to: "padding_center_text1"; } - rel2 { relative: 0.0 1.0; to: "padding_center_text2"; } + rel1 { relative: 1.0 0.0; to_x: "padding_center_text1"; to_y: "title_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding_center_text2"; to_y: "title_bg"; } } description { state: "right_and_more_button" 0.0; inherit: "default" 0.0; - rel1 { relative: 1.0 0.0; to: "padding_after_left_btn"; } - rel2 { relative: 0.0 1.0; to: "padding_before_more_btn"; } + rel2 { relative: 0.0 1.0; to_x: "title_more_btn"; to_y: "title_bg"; } + } + description { state: "subtitle_is_set" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 0.7; to_x: "padding_center_text2"; to_y: "title_bg"; } + } + description { state: "subtitle_right_more_button_is_set" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 0.7; to_x: "title_more_btn"; to_y: "title_bg"; } + } + } + part { name: "elm.text.subtitle"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: NAVIFRAME_SUBTITLE_FONT_SIZE_INC; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + text_class: "slp_medium"; + } + color: NAVIFRAME_SUBTITLE_TEXT_COLOR_INC; + align: 0.0 0.5; + fixed: 1 0; + rel1 { + relative: 1.0 1.0; + to_x: "padding_center_text1"; + to_y: "elm.text.title"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_center_text2"; + to_y: "elm.text.title"; + } + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + rel2 { + relative: 0.0 1.0; + to_x: "title_more_btn"; + to_y: "elm.text.title"; + } } } part { name: "elm.swallow.icon"; @@ -436,11 +1369,11 @@ collections { description { state: "default" 0.0; max: NAVIFRAME_ICON_SIZE_INC; fixed: 1 1; - rel1 { relative: 0.0 0.0; to: "padding_before_text"; } - rel2 { relative: 0.0 1.0; to: "padding_before_text"; } + rel1 { relative: 0.0 0.0; to: "padding_center_text1"; } + rel2 { relative: 0.0 1.0; to: "padding_center_text1"; } aspect: 1.0 1.0; aspect_preference: VERTICAL; - align: 1.0 0.5; + align: 0.0 0.5; } } part { name: "click_event_area"; @@ -458,9 +1391,9 @@ collections { description { state: "default" 0.0; max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; fixed: 1 1; - align: 0 0.5; - rel1 { relative: 1.0 0.0; to: "padding_before_left_btn"; } - rel2 { relative: 1.0 1.0; to: "padding_before_left_btn"; } + align: 1 0.5; + rel1 { relative: 0.0 0.0; to: "title_right_btn"; } + rel2 { relative: 0.0 1.0; to: "title_right_btn"; } } } part { name: "title_right_btn"; @@ -471,8 +1404,8 @@ collections { max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; align: 1 0.5; fixed: 1 1; - rel1 { relative: 0.0 0.0; to: "padding_after_right_btn"; } - rel2 { relative: 0.0 1.0; to: "padding_after_right_btn"; } + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } } } part { name: "title_more_btn"; @@ -483,8 +1416,8 @@ collections { max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; fixed: 1 1; align: 1 0.5; - rel1 { relative: 0.0 0.0; to: "padding_before_right_btn"; } - rel2 { relative: 0.0 1.0; to: "padding_before_right_btn"; } + rel1 { relative: 0.0 0.0; to: "title_left_btn"; } + rel2 { relative: 0.0 1.0; to: "title_left_btn"; } } } part { name: "optionheader_arrow"; @@ -495,9 +1428,9 @@ collections { max: NAVIFRAME_OH_ARROW_SIZE_INC; fixed: 1 1; align: 0.5 0.0; - rel1 { relative: 0.0 1.025; to: "title_more_btn"; } - rel2 { relative: 1.0 1.025; to: "title_more_btn"; } - image.normal: "T01_control_top_arrow.png"; + rel1 { relative: 0.0 1.1; to: "title_more_btn"; } + rel2 { relative: 1.0 1.2; to: "title_more_btn"; } + //image.normal: "00_winset_control_top_arrow.png"; color: 255 255 255 0; } description { state: "show" 0.0; @@ -506,7 +1439,6 @@ collections { } } part { name: "controlbar_bg"; - type: RECT; scale: 1; description { state: "default" 0.0; min: 0 0; @@ -516,7 +1448,7 @@ collections { visible: 0; rel1 { to: "base"; } rel2 { to: "base"; } - color: NAVIFRAME_CONTROLBAR_BG_COLOR_INC; + image.normal: "00_winset_control_toolbar_bg.png"; } description { state: "show" 0.0; inherit: "default" 0.0; @@ -573,7 +1505,6 @@ collections { } } programs { - program { name: "content_new_pushed"; signal: "elm,state,new,pushed,internal"; source: ""; @@ -648,7 +1579,6 @@ collections { signal: "elm,state,title,show"; source: "elm"; script { - set_state(PART:"indicator", "default", 0.0); set_state(PART:"title_bg", "default", 0.0); if (get_int(oh_show) == 1) { if (get_int(oh_close) == 1) { @@ -667,7 +1597,6 @@ collections { action: STATE_SET "hide" 0.0; target: "title_bg"; target: "optionheader_bg"; - target: "indicator"; } program { name: "prev_btn_show"; signal: "elm,state,prev_btn,show"; @@ -685,17 +1614,44 @@ collections { set_state(PART:"elm.prev_btn_bg", "default", 0.0); } } + program { name: "subtitle_show"; + signal: "elm,state,subtitle,show"; + source: "elm"; + script { + set_int(subtitle_visible, 1); + if (get_int(large_padded_center_align) == 0) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "subtitle_is_set", 0.0); + } + } + program { name: "subtitle_hide"; + signal: "elm,state,subtitle,hide"; + source: "elm"; + script { + set_int(subtitle_visible, 0); + if (get_int(large_padded_center_align) == 0) + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + else + set_state(PART:"elm.text.title", "default", 0.0); + } + } program { name: "left_btn_show"; signal: "elm,state,title_left_btn,show"; source: "elm"; script { set_int(left_btn_visible, 1); + set_state(PART:"left_btn_separator", "visible", 0.0); if (get_int(icon_visible) == 1) set_state(PART:"padding_center_text1", "icon_left_button", 0.0); else set_state(PART:"padding_center_text1", "visible", 0.0); if ((get_int(more_btn_visible) == 1) && (get_int(right_btn_visible) == 1)) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); set_int(large_padded_center_align, 0); } else { @@ -709,6 +1665,7 @@ collections { source: "elm"; script { set_int(left_btn_visible, 0); + set_state(PART:"left_btn_separator", "default", 0.0); if ((get_int(more_btn_visible) == 0) && (get_int(right_btn_visible) == 0)) { set_state(PART:"padding_center_text2", "default", 0.0); set_int(large_padded_center_align, 0); @@ -732,9 +1689,13 @@ collections { source: "elm"; script { set_int(right_btn_visible, 1); + set_state(PART:"right_btn_separator", "visible", 0.0); if (get_int(more_btn_visible) == 1) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else set_state(PART:"elm.text.title", "right_and_more_button", 0.0); - set_state(PART:"padding_before_right_btn", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); set_int(large_padded_center_align, 0); } else { @@ -757,7 +1718,7 @@ collections { source: "elm"; script { set_int(right_btn_visible, 0); - set_state(PART:"padding_before_right_btn", "default", 0.0); + set_state(PART:"right_btn_separator", "default", 0.0); if ((get_int(more_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { set_state(PART:"padding_center_text2", "default", 0.0); set_int(large_padded_center_align, 0); @@ -782,8 +1743,11 @@ collections { script { set_int(more_btn_visible, 1); if (get_int(right_btn_visible) == 1) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else set_state(PART:"elm.text.title", "right_and_more_button", 0.0); - set_state(PART:"padding_before_right_btn", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); set_int(large_padded_center_align, 0); } else { @@ -806,7 +1770,6 @@ collections { source: "elm"; script { set_int(more_btn_visible, 0); - set_state(PART:"padding_before_right_btn", "default", 0.0); if ((get_int(right_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { set_state(PART:"padding_center_text2", "default", 0.0); set_int(large_padded_center_align, 0); @@ -826,7 +1789,7 @@ collections { } } program { name: "icon_show"; - signal: "elm,state,elm.swallow.icon,show"; + signal: "elm,state,icon,show"; source: "elm"; script { set_int(icon_visible, 1); @@ -837,7 +1800,7 @@ collections { } } program { name: "icon_hide"; - signal: "elm,state,elm.swallow.icon,hide"; + signal: "elm,state,icon,hide"; source: "elm"; script { set_int(icon_visible, 0); @@ -992,5 +1955,936 @@ collections { } } -} + group { name:"elm/naviframe/item/basic/ivug/default"; + alias:"elm/naviframe/item/1line/ivug/default"; + images { + image: "00_winset_control_top_bg.png" COMP; + image: "00_winset_control_top_arrow.png" COMP; + image: "00_winset_title_line.png" COMP; + image: "00_winset_control_toolbar_bg.png" COMP; + image: "00_winset_title_bg.png" COMP; + } + script { + public oh_show = 0; //optionheader show/hide + public oh_close = 0; //optionheader close/open + public cbar_bg = 0; //Controlbar BG Show call count + public left_btn_visible = 0; //whether left btn is shown + public icon_visible = 0; //whether icon is shown + public right_btn_visible = 0; //whether right btn is shown + public more_btn_visible = 0; //whether more btn is shown + public large_padded_center_align = 0; //large padding based on button size for center align for 1/2 buttons. + public subtitle_visible = 0; //whether subtitle is shown + } + parts { + part { name: "base"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + visible: 0; + } + description { state: "left" 0.0; + inherit: "default" 0.0; + rel1.relative: -1.0 0.0; + rel2.relative: 0.0 1.0; + } + description { state: "right" 0.0; + inherit: "default" 0.0; + rel1.relative: 1.0 0.0; + rel2.relative: 2.0 1.0; + } + } + part { name: "title_bg"; + scale: 1; + description { state: "default" 0.0; + min: 1 NAVIFRAME_TITLE_H_INC; + align: 0.0 0.0; + fixed: 0 1; + rel1 { relative: 0.0 0.0; to: "base"; } + rel2 { relative: 1.0 0.0; to: "base"; } + image.normal: "00_winset_title_bg.png"; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "title_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + part { name: "optionheader_bg"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: 1 0; + align: 0.5 0; + fixed: 0 1; + rel1.to: "title_bg"; + rel1.relative: 0 1; + rel2.to: "title_bg"; + visible: 0; + image { normal: "00_winset_control_top_bg.png"; + border: NAVIFRAME_OH_BORDER_INC; + } + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 1 NAVIFRAME_OH_OPENED_H_INC; + visible: 1; + } + description { state: "hide" 0.0; + inherit: "default" 0.0; + min: 0 0; + max: 0 0; + fixed: 1 1; + } + } + part { name: "optionheader_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1 { to: "optionheader_bg"; } + rel2 { to: "optionheader_bg"; } + } + } + part { name: "optionheader_top_padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 0.0; to: "optionheader_bg"; } + rel2 { relative: 1.0 0.0; to: "optionheader_bg"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "optionheader"; + type: SWALLOW; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_CONTENT_H_INC; + rel1 { relative: 0.0 1.0; to: "optionheader_top_padding"; } + rel2 { relative: 1.0 1.0; to: "optionheader_top_padding"; } + fixed: 1 1; + align: 0.0 0.0; + } + } + part { name: "optionheader_bottom_padding"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_PADDING_INC; + rel1 { relative: 0.0 1.0; to: "optionheader"; } + rel2 { relative: 1.0 1.0; to: "optionheader"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "optionheader_shadow"; + type: RECT; + scale: 1; + clip_to: "optionheader_clip"; + description { state: "default" 0.0; + min: 0 NAVIFRAME_OH_SHADOW_INC; + rel1 { relative: 0.0 1.0; to: "optionheader_bottom_padding"; } + rel2 { relative: 1.0 1.0; to: "optionheader_bottom_padding"; } + fixed: 0 1; + align: 0.0 0.0; + visible: 0; + } + } + part { name: "elm.swallow.content"; + type: SWALLOW; + scale: 1; + repeat_events: 0; + clip_to: "content_clip"; + description { state: "default" 0.0; + align: 0.0 0.0; + rel1.relative: 0.0 1.0; + rel1.to_x: "base"; + rel1.to_y: "optionheader_bg"; + rel2.relative: 1.0 0.0; + rel2.to_x: "base"; + rel2.to_y: "controlbar_bg"; + } + } + part { name: "content_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "elm.swallow.content"; + rel2.to: "elm.swallow.content"; + } + } + + + + + + part { name: "left_btn_separator"; + type: IMAGE; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 2 48; + max: 2 48; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_left_btn"; } + rel2 { relative: 0.0 1.0; to: "title_left_btn"; } + image.normal: "00_winset_title_line.png"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "right_btn_separator"; + type: IMAGE; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 2 48; + max: 2 48; + fixed: 1 1; + align: 1.0 0.5; + rel1 { relative: 0.0 0.0; to: "title_right_btn"; } + rel2 { relative: 0.0 1.0; to: "title_right_btn"; } + image.normal: "00_winset_title_line.png"; + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + visible: 1; + } + } + part { name: "padding_before_text"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + align: 0.0 0.0; + rel1 { relative: 0.0 0.0; to: "title_bg"; } + rel2 { relative: 0.0 1.0; to: "title_bg"; } + fixed: 1 0; + min: NAVIFRAME_ICON_PADDING_INC; + visible: 0; + } + } + part { name: "padding_center_text1"; + type: RECT; + scale: 1; + mouse_events: 0; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 0.0 0.0; + rel1 { relative: 1.0 0.0; to: "padding_before_text"; } + rel2 { relative: 1.0 1.0; to: "padding_before_text"; } + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: 0 0; + } + description { state: "icon" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_NO_BUTTON_ICON_PADDING_INC 0; + } + description { state: "icon_left_button" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_ICON_VISIBLE_INC 0; + } + } + part { name: "padding_center_text2"; + type: RECT; + mouse_events: 0; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + min: 0 0; + fixed: 1 0; + align: 1.0 0.5; + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } + visible: 0; + } + description { state: "visible" 0.0; + inherit: "default" 0.0; + min: NAVIFRAME_TEXT_PADDING_INC 0; + } + } + part { name: "elm.text.title"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: NAVIFRAME_TITLE_FONT_SIZE_INC; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + text_class: "slp_medium"; + } + color: NAVIFRAME_TITLE_TEXT_COLOR_INC; + align: 0.0 0.5; + fixed: 1 0; + rel1 { relative: 1.0 0.0; to_x: "padding_center_text1"; to_y: "title_bg"; } + rel2 { relative: 0.0 1.0; to_x: "padding_center_text2"; to_y: "title_bg"; } + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 1.0; to_x: "title_more_btn"; to_y: "title_bg"; } + } + description { state: "subtitle_is_set" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 0.7; to_x: "padding_center_text2"; to_y: "title_bg"; } + } + description { state: "subtitle_right_more_button_is_set" 0.0; + inherit: "default" 0.0; + rel2 { relative: 0.0 0.7; to_x: "title_more_btn"; to_y: "title_bg"; } + } + } + part { name: "elm.text.subtitle"; + type: TEXT; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + text { font: "SLP:style=Medium"; + size: NAVIFRAME_SUBTITLE_FONT_SIZE_INC; + min: 0 0; + max: 1 0; + align: 0.5 0.5; + text_class: "slp_medium"; + } + color: NAVIFRAME_SUBTITLE_TEXT_COLOR_INC; + align: 0.0 0.5; + fixed: 1 0; + rel1 { + relative: 1.0 1.0; + to_x: "padding_center_text1"; + to_y: "elm.text.title"; + } + rel2 { + relative: 0.0 1.0; + to_x: "padding_center_text2"; + to_y: "elm.text.title"; + } + } + description { state: "right_and_more_button" 0.0; + inherit: "default" 0.0; + rel2 { + relative: 0.0 1.0; + to_x: "title_more_btn"; + to_y: "elm.text.title"; + } + } + } + part { name: "elm.swallow.icon"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_ICON_SIZE_INC; + fixed: 1 1; + rel1 { relative: 0.0 0.0; to: "padding_center_text1"; } + rel2 { relative: 0.0 1.0; to: "padding_center_text1"; } + aspect: 1.0 1.0; + aspect_preference: VERTICAL; + align: 0.0 0.5; + } + } + part { name: "click_event_area"; + ignore_flags: ON_HOLD; + repeat_events: 1; + description { state: "default" 0.0; + rel1 { to: "title_bg"; } + rel2 { to: "title_bg"; } + } + } + part { name: "title_left_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 1; + align: 1 0.5; + rel1 { relative: 0.0 0.0; to: "title_right_btn"; } + rel2 { relative: 0.0 1.0; to: "title_right_btn"; } + } + } + part { name: "title_right_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + align: 1 0.5; + fixed: 1 1; + rel1 { relative: 1.0 0.0; to: "title_bg"; } + rel2 { relative: 1.0 1.0; to: "title_bg"; } + } + } + part { name: "title_more_btn"; + type: SWALLOW; + scale: 1; + clip_to: "title_clip"; + description { state: "default" 0.0; + max: NAVIFRAME_TITLE_FUNC_BTN_SIZE_INC; + fixed: 1 1; + align: 1 0.5; + rel1 { relative: 0.0 0.0; to: "title_left_btn"; } + rel2 { relative: 0.0 1.0; to: "title_left_btn"; } + } + } + part { name: "optionheader_arrow"; + type: IMAGE; + scale: 1; + description { state: "default" 0.0; + min: NAVIFRAME_OH_ARROW_SIZE_INC; + max: NAVIFRAME_OH_ARROW_SIZE_INC; + fixed: 1 1; + align: 0.5 0.0; + rel1 { relative: 0.0 1.1; to: "title_more_btn"; } + rel2 { relative: 1.0 1.2; to: "title_more_btn"; } + //image.normal: "00_winset_control_top_arrow.png"; + color: 255 255 255 0; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "controlbar_bg"; + scale: 1; + description { state: "default" 0.0; + min: 0 0; + max: 999999 0; + fixed: 0 1; + align: 0.0 1.0; + visible: 0; + rel1 { to: "base"; } + rel2 { to: "base"; } + image.normal: "00_winset_control_toolbar_bg.png"; + } + description { state: "show" 0.0; + inherit: "default" 0.0; + min: 0 CONTROLBAR_SMALL_HEIGHT_INC; + max: 999999 CONTROLBAR_SMALL_HEIGHT_INC; + visible: 1; + } + } + part { name: "controlbar_clip"; + type: RECT; + mouse_events: 0; + description { state: "default" 0.0; + rel1.to: "controlbar_bg"; + rel2.to: "controlbar_bg"; + } + } + 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"; } + } + } + } + programs { + program { name: "content_new_pushed"; + signal: "elm,state,new,pushed,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_pushed"; + signal: "elm,state,cur,pushed,internal"; + source: ""; + action: STATE_SET "left" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "pushed_finished"; + } + program { name: "content_prev_popped"; + signal: "elm,state,prev,popped,internal"; + source: ""; + action: STATE_SET "default" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "show_finished"; + } + program { name: "content_cur_popped"; + signal: "elm,state,cur,popped,internal"; + source: ""; + action: STATE_SET "right" 0.0; + target: "base"; + transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME; + after: "popped_finished"; + } + program { name: "cur_pushed"; + signal: "elm,state,cur,pushed"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,pushed,internal", ""); + } + } + program { name: "new_pushed"; + signal: "elm,state,new,pushed"; + source: "elm"; + script { + set_state(PART:"base", "right", 0.0); + emit("elm,state,new,pushed,internal", ""); + } + } + program { name: "prev_popped"; + signal: "elm,state,prev,popped"; + source: "elm"; + script { + set_state(PART:"base", "left", 0.0); + emit("elm,state,prev,popped,internal", ""); + } + } + program { name: "cur_popped"; + signal: "elm,state,cur,popped"; + source: "elm"; + script { + set_state(PART:"base", "default", 0.0); + emit("elm,state,cur,popped,internal", ""); + } + } + program { name: "visible"; + signal: "elm,state,visible"; + source: "elm"; + action: STATE_SET "default" 0.0; + target: "base"; + } + program { name: "title_show"; + signal: "elm,state,title,show"; + source: "elm"; + script { + set_state(PART:"title_bg", "default", 0.0); + if (get_int(oh_show) == 1) { + if (get_int(oh_close) == 1) { + emit("elm,state,optionheader,instant_close", ""); + }else { + emit("elm,state,optionheader,instant_open", ""); + } + } + else + set_state(PART:"optionheader_bg", "default", 0.0); + } + } + program { name: "title_hide"; + signal: "elm,state,title,hide"; + source: "elm"; + action: STATE_SET "hide" 0.0; + target: "title_bg"; + target: "optionheader_bg"; + } + program { name: "prev_btn_show"; + signal: "elm,state,prev_btn,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + set_state(PART:"elm.prev_btn_bg", "visible", 0.0); + } + } + program { name: "prev_btn_hide"; + signal: "elm,state,prev_btn,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + set_state(PART:"elm.prev_btn_bg", "default", 0.0); + } + } + program { name: "subtitle_show"; + signal: "elm,state,subtitle,show"; + source: "elm"; + script { + set_int(subtitle_visible, 1); + if (get_int(large_padded_center_align) == 0) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "subtitle_is_set", 0.0); + } + } + program { name: "subtitle_hide"; + signal: "elm,state,subtitle,hide"; + source: "elm"; + script { + set_int(subtitle_visible, 0); + if (get_int(large_padded_center_align) == 0) + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + else + set_state(PART:"elm.text.title", "default", 0.0); + } + } + program { name: "left_btn_show"; + signal: "elm,state,title_left_btn,show"; + source: "elm"; + script { + set_int(left_btn_visible, 1); + set_state(PART:"left_btn_separator", "visible", 0.0); + if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "visible", 0.0); + if ((get_int(more_btn_visible) == 1) && (get_int(right_btn_visible) == 1)) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + } + } + program { name: "left_btn_hide"; + signal: "elm,state,title_left_btn,hide"; + source: "elm"; + script { + set_int(left_btn_visible, 0); + set_state(PART:"left_btn_separator", "default", 0.0); + if ((get_int(more_btn_visible) == 0) && (get_int(right_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_show"; + signal: "elm,state,title_right_btn,show"; + source: "elm"; + script { + set_int(right_btn_visible, 1); + set_state(PART:"right_btn_separator", "visible", 0.0); + if (get_int(more_btn_visible) == 1) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "right_btn_hide"; + signal: "elm,state,title_right_btn,hide"; + source: "elm"; + script { + set_int(right_btn_visible, 0); + set_state(PART:"right_btn_separator", "default", 0.0); + if ((get_int(more_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_show"; + signal: "elm,state,title_more_btn,show"; + source: "elm"; + script { + set_int(more_btn_visible, 1); + if (get_int(right_btn_visible) == 1) { + if (get_int(subtitle_visible) == 1) + set_state(PART:"elm.text.title", "subtitle_right_more_button_is_set", 0.0); + else + set_state(PART:"elm.text.title", "right_and_more_button", 0.0); + set_state(PART:"elm.text.subtitle", "right_and_more_button", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(icon_visible) == 1) && ((get_int(left_btn_visible) == 1) || + (get_int(large_padded_center_align) == 1))) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if ((get_int(left_btn_visible) == 1) || (get_int(large_padded_center_align) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "more_btn_hide"; + signal: "elm,state,title_more_btn,hide"; + source: "elm"; + script { + set_int(more_btn_visible, 0); + if ((get_int(right_btn_visible) == 0) && (get_int(left_btn_visible) == 0)) { + set_state(PART:"padding_center_text2", "default", 0.0); + set_int(large_padded_center_align, 0); + } + else { + set_state(PART:"padding_center_text2", "visible", 0.0); + set_int(large_padded_center_align, 1); + } + if ((get_int(large_padded_center_align) == 1) && (get_int(icon_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else if (get_int(large_padded_center_align) == 1) + set_state(PART:"padding_center_text1", "visible", 0.0); + else if (get_int(icon_visible) == 1) + set_state(PART:"padding_center_text1", "icon", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "icon_show"; + signal: "elm,state,icon,show"; + source: "elm"; + script { + set_int(icon_visible, 1); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "icon_left_button", 0.0); + else + set_state(PART:"padding_center_text1", "icon", 0.0); + } + } + program { name: "icon_hide"; + signal: "elm,state,icon,hide"; + source: "elm"; + script { + set_int(icon_visible, 0); + if ((get_int(large_padded_center_align) == 1) || (get_int(left_btn_visible) == 1)) + set_state(PART:"padding_center_text1", "visible", 0.0); + else + set_state(PART:"padding_center_text1", "default", 0.0); + } + } + program { name: "controlbar_show"; + signal: "elm,state,controlbar,show"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,show", "elm"); + } + } + program { name: "controlbar_hide"; + signal: "elm,state,controlbar,hide"; + source: "elm"; + script { + emit("elm,state,controlbar_bg,hide", "elm"); + } + } + program { name: "controlbar_bg_show"; + signal: "elm,state,controlbar_bg,show"; + source: "elm"; + script { + set_state(PART:"controlbar_bg", "show", 0.0); + set_int(cbar_bg, get_int(cbar_bg) + 1); + } + } + program { name: "controlbar_bg_hide"; + signal: "elm,state,controlbar_bg,hide"; + source: "elm"; + script { + set_int(cbar_bg, get_int(cbar_bg) - 1); + if (get_int(cbar_bg) <= 0) + set_state(PART:"controlbar_bg", "default", 0.0); + } + } + program { name: "optionheader_show"; + signal: "elm,state,optionheader,show"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "show", 0.0); + set_state(PART:"optionheader_arrow", "show", 0.0); + set_int(oh_show, 1); + } + } + program { name: "optionheader_hide"; + signal: "elm,state,optionheader,hide"; + source: "elm"; + script { + set_state(PART:"optionheader_bg", "default", 0.0); + set_state(PART:"optionheader_arrow", "default", 0.0); + set_int(oh_show, 0); + } + } + program { name: "optionheader_open"; + signal: "elm,state,optionheader,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_open_set"; + } + program { name: "optionheader_close"; + signal: "elm,state,optionheader,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + transition: LINEAR 0.2; + after: "optionheader_close_set"; + } + program { name: "optionheader_instant_open"; + signal: "elm,state,optionheader,instant_open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_open_set"; + } + program { name: "optionheader_instant_close"; + signal: "elm,state,optionheader,instant_close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "optionheader_bg"; + target: "optionheader_arrow"; + after: "optionheader_close_set"; + } + program { name: "optionheader_close_set"; + signal: "elm,state,optionheader,close_set"; + source: ""; + script { + set_int(oh_close, 1); + } + } + program { name: "optionheader_open_set"; + signal: "elm,state,optionheader,open_set"; + source: ""; + script { + set_int(oh_close, 0); + } + } + program { name: "controlbar_open"; + signal: "elm,state,controlbar,open"; + source: ""; + action: STATE_SET "show" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_close"; + signal: "elm,state,controlbar,close"; + source: ""; + action: STATE_SET "default" 0.0; + target: "controlbar_bg"; + transition: LINEAR 0.2; + } + program { name: "controlbar_instant_open"; + signal: "elm,state,controlbar,instant_open"; + source: ""; + script { + emit("elm,state,prev_btn,show", "elm"); + emit("elm,state,controlbar,show", "elm"); + } + } + program { name: "controlbar_instant_close"; + signal: "elm,state,controlbar,instant_close"; + source: ""; + script { + emit("elm,state,prev_btn,hide", "elm"); + emit("elm,state,controlbar,hide", "elm"); + } + } + program { name: "show_finished"; + action: SIGNAL_EMIT "elm,action,show,finished" ""; + } + program { name: "pushed_finished"; + action: SIGNAL_EMIT "elm,action,pushed,finished" ""; + } + program { name: "popped_finished"; + action: SIGNAL_EMIT "elm,action,popped,finished" ""; + } + program { + name: "title_clicked"; + signal: "mouse,clicked,1"; + source: "click_event_area"; + action: SIGNAL_EMIT "elm,action,title,clicked" ""; + } + } + } +} |