+ program { name: "content_cur_pushed";
+ signal: "elm,state,cur,pushed,deferred";
+ source: "elm";
+ 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,deferred";
+ source: "elm";
+ 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,deferred";
+ source: "elm";
+ 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";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ program { name: "new_pushed";
+ signal: "elm,state,new,pushed";
+ source: "elm";
+ action: STATE_SET "right" 0.0;
+ target: "base";
+ }
+ program { name: "prev_popped";
+ signal: "elm,state,prev,popped";
+ source: "elm";
+ action: STATE_SET "left" 0.0;
+ target: "base";
+ }
+ program { name: "cur_popped";
+ signal: "elm,state,cur,popped";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ 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 {
+ if (get_int(landscape) == 0)
+ set_state(PART:"title_bg", "default", 0.0);
+ else
+ set_state(PART:"title_bg", "landscape", 0.0);
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ }
+ }
+ program { name: "prev_btn_show";
+ signal: "elm,state,prev_btn,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ }
+ }
+ program { name: "prev_btn_hide";
+ signal: "elm,state,prev_btn,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ }
+ }
+ program { name: "more_btn_show";
+ signal: "elm,state,toolbar_more_btn,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ }
+ }
+ program { name: "more_btn_hide";
+ signal: "elm,state,toolbar_more_btn,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ }
+ }
+ program { name: "toolbar_button1_show";
+ signal: "elm,state,toolbar_button1,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
+ if (get_int(toolbar_buttons_visible) >= 2)
+ {
+ set_state(PART:"toolbar_button1", "buttons_set", 0.0);
+ set_state(PART:"toolbar_button2", "buttons_set", 0.0);
+ }
+ }
+ }
+ program { name: "toolbar_button1_hide";
+ signal: "elm,state,toolbar_button1,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
+ set_state(PART:"toolbar_button1", "default", 0.0);
+ set_state(PART:"toolbar_button2", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_button2_show";
+ signal: "elm,state,toolbar_button2,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
+ if (get_int(toolbar_buttons_visible) >= 2)
+ {
+ set_state(PART:"toolbar_button1", "buttons_set", 0.0);
+ set_state(PART:"toolbar_button2", "buttons_set", 0.0);
+ }
+ }
+ }
+ program { name: "toolbar_button2_hide";
+ signal: "elm,state,toolbar_button2,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
+ set_state(PART:"toolbar_button1", "default", 0.0);
+ set_state(PART:"toolbar_button2", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_bg_show";
+ signal: "elm,state,toolbar_bg,show";
+ source: "elm";
+ script {
+ if (get_int(landscape) == 0)
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+ else
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+ set_int(tbar_bg, get_int(tbar_bg) + 1);
+ }
+ }
+ program { name: "toolbar_bg_hide";
+ signal: "elm,state,toolbar_bg,hide";
+ source: "elm";
+ script {
+ set_int(tbar_bg, get_int(tbar_bg) - 1);
+ if (get_int(tbar_bg) <= 0)
+ set_state(PART:"toolbar_bg", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_open_internal";
+ signal: "elm,state,toolbar,open,internal";
+ source: "elm";
+ script {
+ set_int(tbar_close, 0);
+ if (get_int(landscape) == 0)
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+ else
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+ }
+ }
+ program { name: "toolbar_close_internal";
+ signal: "elm,state,toolbar,close,internal";
+ source: "elm";
+ script {
+ set_int(tbar_close, 1);
+ set_state(PART:"toolbar_bg", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_open";
+ signal: "elm,state,toolbar,open";
+ source: "";
+ script {
+ if (get_int(landscape) == 0)
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+ else
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+ }
+ transition: LINEAR 0.2;
+ after: "toolbar_open_internal";
+ }
+ program { name: "toolbar_close";
+ signal: "elm,state,toolbar,close";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "toolbar_bg";
+ transition: LINEAR 0.2;
+ after: "toolbar_close_internal";
+ }
+ program { name: "toolbar_instant_open";
+ signal: "elm,state,toolbar,instant_open";
+ source: "";
+ script {
+ emit("elm,state,toolbar,open,internal", "elm");
+ }
+ }
+ program { name: "toolbar_instant_close";
+ signal: "elm,state,toolbar,instant_close";
+ source: "";
+ script {
+ emit("elm,state,toolbar,close,internal", "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: "change_to_landscape";
+ signal: "elm,state,landscape";
+ source: "elm";
+ script {
+ if (get_int(landscape) == 0) {
+ set_state(PART:"toolbar_more_btn", "landscape", 0.0);
+ set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
+ set_state(PART:"toolbar_button_padding", "landscape", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"title_bg", st, 30, vl);
+ if (!strcmp(st, "default"))
+ set_state(PART:"title_bg", "landscape", 0.0);
+
+ get_state(PART:"toolbar_bg", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+
+ set_int(landscape, 1);
+ }
+ }
+ }
+ program {
+ name: "change_to_portrait";
+ signal: "elm,state,portrait";
+ source: "elm";
+ script {
+ if (get_int(landscape) == 1) {
+ set_state(PART:"toolbar_more_btn", "default", 0.0);
+ set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
+ set_state(PART:"toolbar_button_padding", "default", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"toolbar_bg", st, 30, vl);
+ if (!strcmp(st, "visible_landscape"))
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+
+ get_state(PART:"title_bg", st, 30, vl);
+ if (!strcmp(st, "landscape"))
+ set_state(PART:"title_bg", "default", 0.0);
+
+ set_int(landscape, 0);
+ }
+ }
+ }
+ program { name: "landscape_mode";
+ source: "elm";
+ signal: "elm,state,orient,90";
+ action: SIGNAL_EMIT "elm,state,landscape" "elm";
+ }
+ program { name: "landscape_mode2";
+ source: "elm";
+ signal: "elm,state,orient,270";
+ action: SIGNAL_EMIT "elm,state,landscape" "elm";
+ }
+ program { name: "portrait_mode";
+ source: "elm";
+ signal: "elm,state,orient,0";
+ action: SIGNAL_EMIT "elm,state,portrait" "elm";
+ }
+ program { name: "portrait_mode2";
+ source: "elm";
+ signal: "elm,state,orient,180";
+ action: SIGNAL_EMIT "elm,state,portrait" "elm";
+ }
+ }
+ }
+
+ group { name: "elm/naviframe/item/empty/default";
+ script {
+ public tbar_bg = 0; //Toolbar BG Show call count
+ public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
+ public tbar_close = 0; //Toolbar lastest Open/Close status
+ public landscape = 0; //Landscape mode status
+ }
+ 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";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ rel1 { to: "title"; }
+ rel2 { to: "title"; }
+ color: NAVIFRAME_TITLE_BG_COLOR_INC;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ }
+ }
+ 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: "title_bg";
+ rel2.relative: 1.0 0.0;
+ rel2.to_x: "base";
+ rel2.to_y: "toolbar_bg";
+ }
+ description { state: "sip_visible" 0.0;
+ inherit: "default" 0.0;
+ rel1.to_y: "base";
+ }
+ }
+ 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: "title";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.0;
+ fixed: 0 1;
+ rel1 { relative: 0.0 0.0; to: "base"; }
+ rel2 { relative: 1.0 0.0; to: "base"; }
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ max: 0 0;
+ fixed: 1 1;
+ }
+ }
+ part { name: "toolbar_bg";
+ type: RECT;
+ 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"; }
+ color: NAVIFRAME_TOOLBAR_BG_COLOR_INC;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_TOOLBAR_HEIGHT_INC;
+ max: 999999 NAVIFRAME_TOOLBAR_HEIGHT_INC;
+ visible: 1;
+ }
+ description { state: "visible_landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 0 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
+ max: 999999 NAVIFRAME_LANDSCAPE_TOOLBAR_HEIGHT_INC;
+ visible: 1;
+ }
+ }
+ part { name: "more_btn_bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
+ fixed: 1 0;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "toolbar_bg"; }
+ rel2 { relative: 0.0 1.0; to: "toolbar_bg"; }
+ visible: 0;
+ }
+ }
+ part { name: "toolbar_more_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "toolbar_clip";
+ description { state: "default" 0.0;
+ max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
+ fixed: 1 1;
+ rel1.to: "more_btn_bg";
+ rel2.to: "more_btn_bg";
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
+ }
+ }
+ part { name: "prev_btn_bg";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: NAVIFRAME_TOOLBAR_BUTTON_BG_PADDING_INC;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1 { relative: 1.0 0.0; to: "toolbar_bg"; }
+ rel2.to: "toolbar_bg";
+ visible: 0;
+ }
+ }
+ part { name: "elm.swallow.prev_btn";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "toolbar_clip";
+ description { state: "default" 0.0;
+ max: NAVIFRAME_PREV_FUNC_BTN_SIZE_INC;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1.to: "prev_btn_bg";
+ rel2.to: "prev_btn_bg";
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ max: NAVIFRAME_LANDSCAPE_PREV_FUNC_BTN_SIZE_INC;
+ }
+ }
+ part { name: "toolbar_clip";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 { to: "toolbar_bg"; }
+ rel2 { to: "toolbar_bg"; }
+ }
+ }
+ part { name: "toolbar_btns_area";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ rel1 { relative: 1.0 0.0; to: "more_btn_bg"; }
+ rel2 { relative: 0.0 1.0; to: "prev_btn_bg"; }
+ visible: 0;
+ }
+ }
+ part { name: "toolbar_button1";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "toolbar_clip";
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1.to: "toolbar_btns_area";
+ rel2.to: "toolbar_btns_area";
+ }
+ description { state: "buttons_set" 0.0;
+ inherit: "default" 0.0;
+ align: 1.0 0.5;
+ rel2 {
+ relative: 0.0 1.0;
+ to: "toolbar_button_padding";
+ }
+ }
+ }
+ part { name: "toolbar_button_padding";
+ type: RECT;
+ scale : 1;
+ description { state: "default" 0.0;
+ min: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 0;
+ max: NAVIFRAME_TOOLBAR_BUTTONS_PADDING_INC 9999;
+ fixed : 1 0;
+ visible: 0;
+ align: 0.5 0.5;
+ rel1.to: "toolbar_btns_area";
+ rel2.to: "toolbar_btns_area";
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 0;
+ max: NAVIFRAME_LANDSCAPE_TOOLBAR_BUTTONS_PADDING_INC 9999;
+ }
+ }
+ part { name: "toolbar_button2";
+ type: SWALLOW;
+ scale: 1;
+ clip_to: "toolbar_clip";
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.5 0.5;
+ rel1.to: "toolbar_btns_area";
+ rel2.to: "toolbar_btns_area";
+ }
+ description { state: "buttons_set" 0.0;
+ inherit: "default" 0.0;
+ align: 0.0 0.5;
+ rel1 {
+ relative: 1.0 0.0;
+ to: "toolbar_button_padding";
+ }
+ }
+ }
+ }
+ programs {
+ program { name: "content_new_pushed";
+ signal: "elm,state,new,pushed,deferred";
+ source: "elm";
+ 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,deferred";
+ source: "elm";
+ 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,deferred";
+ source: "elm";
+ 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,deferred";
+ source: "elm";
+ 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";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ program { name: "new_pushed";
+ signal: "elm,state,new,pushed";
+ source: "elm";
+ action: STATE_SET "right" 0.0;
+ target: "base";
+ }
+ program { name: "prev_popped";
+ signal: "elm,state,prev,popped";
+ source: "elm";
+ action: STATE_SET "left" 0.0;
+ target: "base";
+ }
+ program { name: "cur_popped";
+ signal: "elm,state,cur,popped";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ 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);
+ set_state(PART:"title", "default", 0.0);
+ }
+ }
+ program { name: "title_hide";
+ signal: "elm,state,title,hide";
+ source: "elm";
+ script {
+ set_state(PART:"title_bg", "hide", 0.0);
+ set_state(PART:"title", "hide", 0.0);
+ }
+ }
+ program { name: "prev_btn_show";
+ signal: "elm,state,prev_btn,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ }
+ }
+ program { name: "prev_btn_hide";
+ signal: "elm,state,prev_btn,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ }
+ }
+ program { name: "more_btn_show";
+ signal: "elm,state,toolbar_more_btn,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ }
+ }
+ program { name: "more_btn_hide";
+ signal: "elm,state,toolbar_more_btn,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ }
+ }
+ program { name: "toolbar_button1_show";
+ signal: "elm,state,toolbar_button1,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
+ if (get_int(toolbar_buttons_visible) >= 2)
+ {
+ set_state(PART:"toolbar_button1", "buttons_set", 0.0);
+ set_state(PART:"toolbar_button2", "buttons_set", 0.0);
+ }
+ }
+ }
+ program { name: "toolbar_button1_hide";
+ signal: "elm,state,toolbar_button1,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
+ set_state(PART:"toolbar_button1", "default", 0.0);
+ set_state(PART:"toolbar_button2", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_button2_show";
+ signal: "elm,state,toolbar_button2,show";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,show", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) + 1);
+ if (get_int(toolbar_buttons_visible) >= 2)
+ {
+ set_state(PART:"toolbar_button1", "buttons_set", 0.0);
+ set_state(PART:"toolbar_button2", "buttons_set", 0.0);
+ }
+ }
+ }
+ program { name: "toolbar_button2_hide";
+ signal: "elm,state,toolbar_button2,hide";
+ source: "elm";
+ script {
+ emit("elm,state,toolbar_bg,hide", "elm");
+ set_int(toolbar_buttons_visible, get_int(toolbar_buttons_visible) - 1);
+ set_state(PART:"toolbar_button1", "default", 0.0);
+ set_state(PART:"toolbar_button2", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_bg_show";
+ signal: "elm,state,toolbar_bg,show";
+ source: "elm";
+ script {
+ if (get_int(landscape) == 0)
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+ else
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+ set_int(tbar_bg, get_int(tbar_bg) + 1);
+ }
+ }
+ program { name: "toolbar_bg_hide";
+ signal: "elm,state,toolbar_bg,hide";
+ source: "elm";
+ script {
+ set_int(tbar_bg, get_int(tbar_bg) - 1);
+ if (get_int(tbar_bg) <= 0)
+ set_state(PART:"toolbar_bg", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_open_internal";
+ signal: "elm,state,toolbar,open,internal";
+ source: "elm";
+ script {
+ set_int(tbar_close, 0);
+ if (get_int(landscape) == 0)
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+ else
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+ }
+ }
+ program { name: "toolbar_close_internal";
+ signal: "elm,state,toolbar,close,internal";
+ source: "elm";
+ script {
+ set_int(tbar_close, 1);
+ set_state(PART:"toolbar_bg", "default", 0.0);
+ }
+ }
+ program { name: "toolbar_open";
+ signal: "elm,state,toolbar,open";
+ source: "";
+ script {
+ if (get_int(landscape) == 0)
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+ else
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+ }
+ transition: LINEAR 0.2;
+ after: "toolbar_open_internal";
+ }
+ program { name: "toolbar_close";
+ signal: "elm,state,toolbar,close";
+ source: "";
+ action: STATE_SET "default" 0.0;
+ target: "toolbar_bg";
+ transition: LINEAR 0.2;
+ after: "toolbar_close_internal";
+ }
+ program { name: "toolbar_instant_open";
+ signal: "elm,state,toolbar,instant_open";
+ source: "";
+ script {
+ emit("elm,state,toolbar,open,internal", "elm");
+ }
+ }
+ program { name: "toolbar_instant_close";
+ signal: "elm,state,toolbar,instant_close";
+ source: "";
+ script {
+ emit("elm,state,toolbar,close,internal", "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: "change_to_landscape";
+ signal: "elm,state,landscape";
+ source: "elm";
+ script {
+ if (get_int(landscape) == 0) {
+ set_state(PART:"toolbar_more_btn", "landscape", 0.0);
+ set_state(PART:"elm.swallow.prev_btn", "landscape", 0.0);
+ set_state(PART:"toolbar_button_padding", "landscape", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"toolbar_bg", st, 30, vl);
+ if (!strcmp(st, "visible"))
+ set_state(PART:"toolbar_bg", "visible_landscape", 0.0);
+
+ set_int(landscape, 1);
+ }
+ }
+ }
+ program {
+ name: "change_to_portrait";
+ signal: "elm,state,portrait";
+ source: "elm";
+ script {
+ if (get_int(landscape) == 1) {
+ set_state(PART:"toolbar_more_btn", "default", 0.0);
+ set_state(PART:"elm.swallow.prev_btn", "default", 0.0);
+ set_state(PART:"toolbar_button_padding", "default", 0.0);
+
+ new st[31];
+ new Float:vl;
+ get_state(PART:"toolbar_bg", st, 30, vl);
+ if (!strcmp(st, "visible_landscape"))
+ set_state(PART:"toolbar_bg", "visible", 0.0);
+
+ set_int(landscape, 0);
+ }
+ }
+ }
+ program { name: "landscape_mode";
+ source: "elm";
+ signal: "elm,state,orient,90";
+ action: SIGNAL_EMIT "elm,state,landscape" "elm";
+ }
+ program { name: "landscape_mode2";
+ source: "elm";
+ signal: "elm,state,orient,270";
+ action: SIGNAL_EMIT "elm,state,landscape" "elm";
+ }
+ program { name: "portrait_mode";
+ source: "elm";
+ signal: "elm,state,orient,0";
+ action: SIGNAL_EMIT "elm,state,portrait" "elm";
+ }
+ program { name: "portrait_mode2";
+ source: "elm";
+ signal: "elm,state,orient,180";
+ action: SIGNAL_EMIT "elm,state,portrait" "elm";
+ }
+ }
+ }
+
+ group { name: "elm/naviframe/item/basic/uglib";
+ parts {
+ part { name: "base";
+ type: RECT;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 255 255 255 255;
+ }
+ description { state: "right" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel2.relative: 2.0 1.0;
+ color: 255 255 255 0;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ repeat_events: 0;
+ clip_to: "base";
+ description { state: "default" 0.0;
+ align: 0.0 0.0;
+ rel1.relative: 0.0 0.0;
+ rel1.to: "base";
+ rel2.relative: 1.0 1.0;
+ rel2.to: "base";
+ }
+ }
+ }
+ programs {
+ program { name: "content_new_pushed";
+ signal: "elm,state,new,pushed,deferred";
+ source: "elm";
+ 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,deferred";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ transition: DECELERATE NAVIFRAME_VIEW_TRANS_TIME;
+ after: "pushed_finished";
+ }
+ program { name: "content_prev_popped";
+ signal: "elm,state,prev,popped,deferred";
+ source: "elm";
+ 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,deferred";
+ source: "elm";
+ 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";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ program { name: "new_pushed";
+ signal: "elm,state,new,pushed";
+ source: "elm";
+ action: STATE_SET "right" 0.0;
+ target: "base";
+ }
+ program { name: "prev_popped";
+ signal: "elm,state,prev,popped";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ program { name: "cur_popped";
+ signal: "elm,state,cur,popped";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ program { name: "visible";
+ signal: "elm,state,visible";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "base";
+ }
+ 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" "";
+ }
+ }
+ }
+
+ group { name: "elm/naviframe/item/dual_title/default";
+ images {
+ image: "00_badge_bg.png" COMP;
+ image: "00_divider_line.png" COMP;
+ }
+ script {
+ public tbar_bg = 0; //Toolbar BG Show call count
+ public toolbar_buttons_visible = 0; //when both toolbar buttons are visible
+ public tbar_close = 0; //Toolbar lastest Open/Close status
+ public landscape = 0; //Landscape mode status
+ }
+ 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";
+ type: RECT;
+ 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"; }
+ color: NAVIFRAME_TITLE_BG_COLOR_INC;
+ }
+ description { state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: 1 NAVIFRAME_LANDSCAPE_TITLE_H_INC;
+ }
+ 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: "top_padding";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: NAVIFRAME_TITLE_TOP_PADDING_INC;
+ fixed: 0 1;
+ align: 0.0 0.0;
+ rel1 { relative: 0.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 0.0; to: "title_bg"; }
+ visible: 0;
+ }
+ description {
+ state: "landscape" 0.0;
+ inherit: "default" 0.0;
+ min: NAVIFRAME_LANDSCAPE_TITLE_TOP_PADDING_INC;
+ }
+ }
+ part { name: "right_padding";
+ type: RECT;
+ mouse_events: 0;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ min: NAVIFRAME_TITLE_RIGHT_PADDING_INC;
+ fixed: 1 0;
+ align: 1.0 0.0;
+ rel1 { relative: 1.0 0.0; to: "title_bg"; }
+ rel2 { relative: 1.0 1.0; to: "title_bg"; }
+ visible: 0;
+ }
+ }
+ part { name: "padding_center_text1";
+ type: RECT;
+ scale: 1;
+ mouse_events: 0;
+ description { state: "default" 0.0;
+ min: NAVIFRAME_PADDING_INC;
+ 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"; }
+ 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;