forked from enlightenment/efl
actionslider.edc: support disabled state.
This commit is contained in:
parent
5c13855416
commit
e2a52ad07b
|
@ -186,6 +186,18 @@ group { name: "elm/actionslider/base/default";
|
|||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
color: 20 20 20 20;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { name: "elm.drag_button,mouse,up";
|
||||
|
@ -203,6 +215,18 @@ group { name: "elm/actionslider/base/default";
|
|||
source: "elm.drag_button_base";
|
||||
action: SIGNAL_EMIT "elm.drag_button,mouse,move" "";
|
||||
}
|
||||
program { name: "disable";
|
||||
signal: "elm,state,disabled";
|
||||
source: "elm";
|
||||
action: STATE_SET "disabled" 0.0;
|
||||
target: "disabler";
|
||||
}
|
||||
program { name: "enable";
|
||||
signal: "elm,state,enabled";
|
||||
source: "elm";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "disabler";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -409,6 +433,18 @@ group { name: "elm/actionslider/base/bar";
|
|||
}
|
||||
}
|
||||
}
|
||||
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;
|
||||
color: 20 20 20 20;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { name: "elm.drag_button,mouse,up";
|
||||
|
@ -426,6 +462,18 @@ group { name: "elm/actionslider/base/bar";
|
|||
source: "elm.drag_button_base";
|
||||
action: SIGNAL_EMIT "elm.drag_button,mouse,move" "";
|
||||
}
|
||||
program { name: "disable";
|
||||
signal: "elm,state,disabled";
|
||||
source: "elm";
|
||||
action: STATE_SET "disabled" 0.0;
|
||||
target: "disabler";
|
||||
}
|
||||
program { name: "enable";
|
||||
signal: "elm,state,enabled";
|
||||
source: "elm";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "disabler";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue