normal: IMAGE_VIEWER_PREV_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ min: 90 72;
+ max: 90 72;
+ image {
+ normal: IMAGE_VIEWER_PREV_FOCUS;
+ }
+ }
}
}
programs {
name: SIG_BTN_CLICKED;
signal: SIG_BTN_CLICKED;
source: "";
+ after: "anim,clicked,start";
+ }
+ program {
+ name: "anim,clicked,start";
+ action: STATE_SET "clicked" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "anim,clicked,end";
+ }
+ program {
+ name: "anim,clicked,end";
+ action: STATE_SET "selected" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
after: "emit,signal";
}
program {
normal: IMAGE_VIEWER_REW_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ image {
+ normal: IMAGE_VIEWER_REW_FOCUS;
+ }
+ }
}
}
programs {
normal: IMAGE_VIEWER_FF_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ image {
+ normal: IMAGE_VIEWER_FF_FOCUS;
+ }
+ }
}
}
programs {
normal: IMAGE_VIEWER_NEXT_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ image {
+ normal: IMAGE_VIEWER_NEXT_FOCUS;
+ }
+ }
}
}
programs {
normal: IMAGE_VIEWER_PHOTO_PREV_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ image {
+ normal: IMAGE_VIEWER_PHOTO_PREV_FOCUS;
+ }
+ }
}
}
programs {
normal: IMAGE_VIEWER_PHOTO_NEXT_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ image {
+ normal: IMAGE_VIEWER_PHOTO_NEXT_FOCUS;
+ }
+ }
}
}
programs {
group {
name: "elm/button/base/viewer_btn_play";
- inherit: "elm/button/base/viewer_btn_prev";
+ data.item, "focus_highlight" "on";
images {
image: IMAGE_VIEWER_PLAY_NORMAL COMP;
image: IMAGE_VIEWER_PLAY_FOCUS COMP;
parts {
part {
name: "color";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "selected" 0.0;
+ color: COLOR_ITEM_FOCUS;
+ }
description {
state: "default_pause" 0.0;
}
scale: 1;
description {
state: "default" 0.0;
+ min: 180 143;
image {
normal: IMAGE_VIEWER_PLAY_NORMAL;
}
}
}
description {
+ state: "clicked" 0.0;
+ min: 90 72;
+ max: 90 72;
+ image {
+ normal: IMAGE_VIEWER_PLAY_FOCUS;
+ }
+ }
+ description {
state: "default_pause" 0.0;
inherit: "default" 0.0;
image {
normal: IMAGE_VIEWER_PAUSE_FOCUS;
}
}
+ description {
+ state: "clicked_pause" 0.0;
+ min: 90 72;
+ max: 90 72;
+ image {
+ normal: IMAGE_VIEWER_PAUSE_FOCUS;
+ }
+ }
}
}
programs {
name: SIG_BTN_CLICKED;
signal: SIG_BTN_CLICKED;
source: "";
- after: "emit,signal";
script {
new state;
state = get_int(cur_state);
if (state == STATE_PLAY) {
set_int(cur_state, STATE_PAUSE);
- set_state(PART:"bg", "selected_pause", 0.0);
+ run_program(PROGRAM:"anim,clicked,start,pause");
} else {
set_int(cur_state, STATE_PLAY);
- set_state(PART:"bg", "selected", 0.0);
+ run_program(PROGRAM:"anim,clicked,start,play");
}
}
}
program {
+ name: "anim,clicked,start,play";
+ action: STATE_SET "clicked_pause" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "anim,clicked,set,play";
+ }
+ program {
+ name: "anim,clicked,set,play";
+ action: STATE_SET "clicked" 0.0;
+ target: "bg";
+ after: "anim,clicked,end,play";
+ }
+ program {
+ name: "anim,clicked,end,play";
+ action: STATE_SET "selected" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "emit,signal";
+ }
+ program {
+ name: "anim,clicked,start,pause";
+ action: STATE_SET "clicked" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "anim,clicked,set,pause";
+ }
+ program {
+ name: "anim,clicked,set,pause";
+ action: STATE_SET "clicked_pause" 0.0;
+ target: "bg";
+ after: "anim,clicked,end,pause";
+ }
+ program {
+ name: "anim,clicked,end,pause";
+ action: STATE_SET "selected_pause" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "emit,signal";
+ }
+ program {
name: "emit,signal";
action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_PLAY;
}
normal: IMAGE_MUSIC_PREV_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ min: 82 71;
+ max: 82 71;
+ image {
+ normal: IMAGE_MUSIC_PREV_FOCUS;
+ }
+ }
}
}
programs {
normal: IMAGE_MUSIC_NEXT_FOCUS;
}
}
+ description {
+ state: "clicked" 0.0;
+ image {
+ normal: IMAGE_MUSIC_NEXT_FOCUS;
+ }
+ }
}
}
programs {
group {
name: "elm/button/base/music_btn_play";
- inherit: "elm/button/base/music_btn_prev";
+ data.item, "focus_highlight" "on";
images {
image: IMAGE_MUSIC_PLAY_NORMAL COMP;
image: IMAGE_MUSIC_PLAY_FOCUS COMP;
parts {
part {
name: "color";
+ type: RECT;
+ scale: 1;
+ description {
+ state: "default" 0.0;
+ }
+ description {
+ state: "selected" 0.0;
+ color: COLOR_ITEM_FOCUS;
+ }
description {
state: "default_pause" 0.0;
}
scale: 1;
description {
state: "default" 0.0;
+ min: 164 142;
image {
normal: IMAGE_MUSIC_PLAY_NORMAL;
}
}
}
description {
+ state: "clicked" 0.0;
+ min: 82 71;
+ max: 82 71;
+ image {
+ normal: IMAGE_MUSIC_PLAY_FOCUS;
+ }
+ }
+ description {
state: "default_pause" 0.0;
inherit: "default" 0.0;
image {
}
description {
state: "selected_pause" 0.0;
- inherit: "default" 0.0;
+ inherit: "selected" 0.0;
+ image {
+ normal: IMAGE_MUSIC_PAUSE_FOCUS;
+ }
+ }
+ description {
+ state: "clicked_pause" 0.0;
+ inherit: "clicked" 0.0;
image {
normal: IMAGE_MUSIC_PAUSE_FOCUS;
}
name: SIG_BTN_CLICKED;
signal: SIG_BTN_CLICKED;
source: "";
- after: "emit,signal";
script {
new state;
state = get_int(cur_state);
if (state == STATE_PLAY) {
set_int(cur_state, STATE_PAUSE);
- set_state(PART:"bg", "selected_pause", 0.0);
+ run_program(PROGRAM:"anim,clicked,start,pause");
} else {
set_int(cur_state, STATE_PLAY);
- set_state(PART:"bg", "selected", 0.0);
+ run_program(PROGRAM:"anim,clicked,start,play");
}
}
}
program {
+ name: "anim,clicked,start,play";
+ action: STATE_SET "clicked_pause" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "anim,clicked,set,play";
+ }
+ program {
+ name: "anim,clicked,set,play";
+ action: STATE_SET "clicked" 0.0;
+ target: "bg";
+ after: "anim,clicked,end,play";
+ }
+ program {
+ name: "anim,clicked,end,play";
+ action: STATE_SET "selected" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "emit,signal";
+ }
+ program {
+ name: "anim,clicked,start,pause";
+ action: STATE_SET "clicked" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "anim,clicked,set,pause";
+ }
+ program {
+ name: "anim,clicked,set,pause";
+ action: STATE_SET "clicked_pause" 0.0;
+ target: "bg";
+ after: "anim,clicked,end,pause";
+ }
+ program {
+ name: "anim,clicked,end,pause";
+ action: STATE_SET "selected_pause" 0.0;
+ target: "bg";
+ transition: TRANSITION_CLICK;
+ after: "emit,signal";
+ }
+ program {
name: "emit,signal";
action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_MUSIC_PLAY;
}