+////////////////////////////////////////////////////////////////////
+ group { name: "elm/button/base/naviframe/title_text";
+ images {
+ image: "00_title_press.png" COMP;
+ }
+ styles{
+ style { name: "btn_naviframe_title_text";
+ base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
+ tag: "br" "\n";
+ tag: "ps" "ps";
+ tag: "tab" "\t";
+ }
+ }
+ parts {
+ part { name: "button_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
+ max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
+ }
+ description { state: "landscape" 0.0;
+ min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
+ max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
+ }
+ }
+ part { name: "button_image";
+ type: IMAGE;
+ scale: 1;
+ description { state: "default" 0.0;
+ visible: 0;
+ rel1 { to: "button_bg"; }
+ rel2 { to: "button_bg"; }
+ }
+ description { state: "clicked" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ image {
+ normal: "00_title_press.png";
+ border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
+ border_scale: 1;
+ }
+ }
+ }
+ part { name: "elm.text";
+ type: TEXTBLOCK;
+ mouse_events: 0;
+ scale: 1;
+ clip_to: "button_bg";
+ description { state: "default" 0.0;
+ rel1.to: "button_bg";
+ rel2.to: "button_bg";
+ text {
+ style: "btn_naviframe_title_text";
+ min: 0 1;
+ }
+ }
+ }
+ part { name: "over2";
+ type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "over3";
+ type: RECT;
+ repeat_events: 1;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ part { name: "disabler";
+ type: RECT;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ visible: 0;
+ }
+ description { state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ }
+ programs {
+ program { name: "button_click";
+ signal: "mouse,down,1";
+ source: "over2";
+ action: SIGNAL_EMIT "elm,action,press" "";
+ after: "button_click_anim";
+ }
+ program { name: "button_click_anim";
+ script {
+ set_state(PART:"button_image", "clicked", 0.0);
+ }
+ }
+ program { name: "button_double_click";
+ signal: "mouse,down,1,double";
+ source: "over2";
+ after: "button_click_anim";
+ }
+ program { name: "button_unclick";
+ signal: "mouse,up,1";
+ source: "over3";
+ action: SIGNAL_EMIT "elm,action,unpress" "";
+ after: "button_unclick_anim";
+ }
+ program { name: "button_unclick_anim";
+ script {
+ set_state(PART:"button_image", "default", 0.0);
+ }
+ }
+ program { name: "touch_snd";
+ signal: "mouse,clicked,1";
+ source: "over2";
+ action: PLAY_SAMPLE "touch_sound" 1.0;
+ after: "button_unclick3";
+ }
+ program { name: "button_unclick3";
+ action: SIGNAL_EMIT "elm,action,click" "";
+ }
+ program { name: "change_to_landscape";
+ signal: "elm,state,landscape";
+ source: "elm";
+ action: STATE_SET "landscape" 0.0;
+ target: "button_bg";
+ }
+ program { name: "change_to_portrait";
+ signal: "elm,state,portrait";
+ source: "elm";
+ action: STATE_SET "default" 0.0;
+ target: "button_bg";
+ }
+ 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";
+ }
+ }
+ }
+