e-modules/engage: add option for mouse-over animation. without zoom it has the same effect as ibar now (but no clipping :)
SVN revision: 58570
This commit is contained in:
parent
bb373b8daf
commit
1f2813e8ee
|
@ -14,7 +14,7 @@ images
|
||||||
}
|
}
|
||||||
|
|
||||||
collections{
|
collections{
|
||||||
group {
|
group {
|
||||||
/* bg frame that keeps is not affected by 'Background
|
/* bg frame that keeps is not affected by 'Background
|
||||||
* Transparency' setting */
|
* Transparency' setting */
|
||||||
name: "e/modules/engage/frame_bottom";
|
name: "e/modules/engage/frame_bottom";
|
||||||
|
@ -53,10 +53,10 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if REFLECTION
|
#if REFLECTION
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/frame_bottom";
|
name: "e/modules/engage/frame_bottom";
|
||||||
|
|
||||||
data {
|
data {
|
||||||
|
@ -82,9 +82,9 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/bg_bottom";
|
name: "e/modules/engage/bg_bottom";
|
||||||
parts {
|
parts {
|
||||||
|
|
||||||
|
@ -105,9 +105,9 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/bg_bottom";
|
name: "e/modules/engage/bg_bottom";
|
||||||
parts {
|
parts {
|
||||||
part {
|
part {
|
||||||
|
@ -128,10 +128,10 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/bg_top";
|
name: "e/modules/engage/bg_top";
|
||||||
parts {
|
parts {
|
||||||
part {
|
part {
|
||||||
|
@ -152,8 +152,8 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/bg_left";
|
name: "e/modules/engage/bg_left";
|
||||||
parts {
|
parts {
|
||||||
part {
|
part {
|
||||||
|
@ -173,9 +173,9 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/bg_right";
|
name: "e/modules/engage/bg_right";
|
||||||
parts {
|
parts {
|
||||||
part {
|
part {
|
||||||
|
@ -195,19 +195,19 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* the vertical and horizontal separator image. it can be a rectangle
|
/* the vertical and horizontal separator image. it can be a rectangle
|
||||||
* as it is in this example.
|
* as it is in this example.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if REFLECTION
|
#if REFLECTION
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/separator_bottom";
|
name: "e/modules/engage/separator_bottom";
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/separator_bottom";
|
name: "e/modules/engage/separator_bottom";
|
||||||
|
|
||||||
parts {
|
parts {
|
||||||
|
@ -227,10 +227,10 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/separator_top";
|
name: "e/modules/engage/separator_top";
|
||||||
|
|
||||||
parts {
|
parts {
|
||||||
|
@ -250,9 +250,9 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/separator_left";
|
name: "e/modules/engage/separator_left";
|
||||||
alias: "e/modules/engage/separator_right";
|
alias: "e/modules/engage/separator_right";
|
||||||
|
|
||||||
|
@ -273,9 +273,9 @@ group {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/label_bottom";
|
name: "e/modules/engage/label_bottom";
|
||||||
|
|
||||||
parts {
|
parts {
|
||||||
|
@ -416,9 +416,9 @@ group {
|
||||||
target: "label.clip";
|
target: "label.clip";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/label_top";
|
name: "e/modules/engage/label_top";
|
||||||
parts {
|
parts {
|
||||||
part {
|
part {
|
||||||
|
@ -527,15 +527,15 @@ group {
|
||||||
target: "label.clip";
|
target: "label.clip";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO needs to be supported in code */
|
/* TODO needs to be supported in code */
|
||||||
/* group {
|
/* group {
|
||||||
* name: "e/modules/engage/label_left";
|
* name: "e/modules/engage/label_left";
|
||||||
* alias: "e/modules/engage/label_right";
|
* alias: "e/modules/engage/label_right";
|
||||||
* } */
|
* } */
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/icon";
|
name: "e/modules/engage/icon";
|
||||||
alias: "e/modules/engage/icon_top";
|
alias: "e/modules/engage/icon_top";
|
||||||
alias: "e/modules/engage/icon_left";
|
alias: "e/modules/engage/icon_left";
|
||||||
|
@ -761,9 +761,9 @@ group {
|
||||||
* target: "input_clip";
|
* target: "input_clip";
|
||||||
* } */
|
* } */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
group {
|
group {
|
||||||
name: "e/modules/engage/icon_over_top";
|
name: "e/modules/engage/icon_over_top";
|
||||||
alias: "e/modules/engage/icon_over_left";
|
alias: "e/modules/engage/icon_over_left";
|
||||||
alias: "e/modules/engage/icon_over_right";
|
alias: "e/modules/engage/icon_over_right";
|
||||||
|
@ -827,10 +827,10 @@ group {
|
||||||
}
|
}
|
||||||
|
|
||||||
programs {
|
programs {
|
||||||
#if HOVER_EFFECT == 1
|
|
||||||
program {
|
program {
|
||||||
name: "go_active";
|
name: "go_active";
|
||||||
signal: "e,state,mouse,in";
|
signal: "e,state,animate,in";
|
||||||
source: "e";
|
source: "e";
|
||||||
action: STATE_SET "visible" 0.0;
|
action: STATE_SET "visible" 0.0;
|
||||||
target: "background";
|
target: "background";
|
||||||
|
@ -845,7 +845,7 @@ group {
|
||||||
}
|
}
|
||||||
program {
|
program {
|
||||||
name: "go_passive";
|
name: "go_passive";
|
||||||
signal: "e,state,mouse,out";
|
signal: "e,state,animate,out";
|
||||||
source: "e";
|
source: "e";
|
||||||
action: ACTION_STOP;
|
action: ACTION_STOP;
|
||||||
target: "go_active";
|
target: "go_active";
|
||||||
|
@ -857,7 +857,7 @@ group {
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
target: "background";
|
target: "background";
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
program {
|
program {
|
||||||
name: "go_big";
|
name: "go_big";
|
||||||
action: STATE_SET "visible" 0.0;
|
action: STATE_SET "visible" 0.0;
|
||||||
|
@ -890,6 +890,6 @@ group {
|
||||||
after: "go_big";
|
after: "go_big";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -198,6 +198,9 @@ _basic_create_widgets(E_Config_Dialog *cfd, Evas *evas, E_Config_Dialog_Data *cf
|
||||||
ob = e_widget_check_add(evas, D_("Show Background Box"), &(cfdata->show_background));
|
ob = e_widget_check_add(evas, D_("Show Background Box"), &(cfdata->show_background));
|
||||||
e_widget_framelist_object_append(of, ob);
|
e_widget_framelist_object_append(of, ob);
|
||||||
|
|
||||||
|
ob = e_widget_check_add(evas, D_("Show Mouse-Over Animation"), &(cfdata->mouse_over_anim));
|
||||||
|
e_widget_framelist_object_append(of, ob);
|
||||||
|
|
||||||
e_widget_list_object_append(ol, of, 1, 0, 0.0);
|
e_widget_list_object_append(ol, of, 1, 0, 0.0);
|
||||||
|
|
||||||
of = e_widget_framelist_add(evas, D_("Orientation"), 0);
|
of = e_widget_framelist_add(evas, D_("Orientation"), 0);
|
||||||
|
|
|
@ -174,6 +174,9 @@ ngi_item_mouse_in(Ngi_Item *it)
|
||||||
|
|
||||||
ngi_item_signal_emit(it,"e,state,mouse,in");
|
ngi_item_signal_emit(it,"e,state,mouse,in");
|
||||||
|
|
||||||
|
if (it->box->ng->cfg->mouse_over_anim)
|
||||||
|
ngi_item_signal_emit(it,"e,state,animate,in");
|
||||||
|
|
||||||
if (it->cb_mouse_in)
|
if (it->cb_mouse_in)
|
||||||
it->cb_mouse_in(it);
|
it->cb_mouse_in(it);
|
||||||
}
|
}
|
||||||
|
@ -185,6 +188,9 @@ ngi_item_mouse_out(Ngi_Item *it)
|
||||||
|
|
||||||
ngi_item_signal_emit(it,"e,state,mouse,out");
|
ngi_item_signal_emit(it,"e,state,mouse,out");
|
||||||
|
|
||||||
|
if (it->box->ng->cfg->mouse_over_anim)
|
||||||
|
ngi_item_signal_emit(it,"e,state,animate,out");
|
||||||
|
|
||||||
if (it->cb_mouse_out)
|
if (it->cb_mouse_out)
|
||||||
it->cb_mouse_out(it);
|
it->cb_mouse_out(it);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue