legacy/experimental/ecdb/trunk/data/themes/default/groups/check.edc

289 lines
5.9 KiB
Plaintext
Raw Normal View History

2008-12-09 20:18:11 +00:00
/* vim: set sw=3 ts=3 sts=3 expandtab: */
2008-11-05 14:54:58 +00:00
group {
2008-12-09 20:18:11 +00:00
name: "ecdb/check";
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
script {
public s;
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
public toggle_state() {
if (get_int(s) == 0)
{
set_state(PART:"check", "active", 0.0);
emit("ecdb,check,checked", "ecdb");
2008-12-09 20:18:11 +00:00
set_int(s, 1);
}
else
{
set_state(PART:"check", "default", 0.0);
emit("ecdb,check,unchecked", "ecdb");
2008-12-09 20:18:11 +00:00
set_int(s, 0);
}
}
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
parts {
part {
name: "check_base";
type: IMAGE;
scale: 1;
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
description {
state: "default" 0.0;
min: 20 18;
max: 20 18;
fixed: 1 1;
align: 0.0 0.5;
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
rel1 {
relative: 0.0 0.0;
offset: 2 2;
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
rel2 {
relative: 0.0 1.0;
offset: 2 -3;
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
image {
normal: "check_base.png";
}
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
description {
state: "disabled" 0.0;
inherit: "default" 0.0;
color: 255 255 255 128;
}
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
part {
name: "check_shadow";
type: IMAGE;
2009-01-16 04:07:47 +00:00
scale: 1;
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
description {
state: "default" 0.0;
color: 255 255 255 128;
image.normal: "check_shadow.png";
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
rel1 {
to: "check";
relative: 0.0 0.0;
offset: 0 1;
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
rel2 {
to: "check";
relative: 1.0 1.0;
offset: -1 -1;
}
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
description {
state: "focused" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
image.normal: "check_focus.png";
rel1 {
to: "check";
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
to: "check";
relative: 1.0 1.0;
offset: -1 -1;
}
}
description {
state: "disabled" 0.0;
inherit: "default" 0.0;
color: 255 255 255 0;
}
}
part {
name: "check";
scale: 1;
2008-12-09 20:18:11 +00:00
description {
state: "default" 0.0;
min: 20 18;
max: 20 18;
fixed: 1 1;
align: 0.0 0.5;
rel1 {
relative: 0.0 0.0;
offset: 2 2;
}
rel2 {
relative: 0.0 1.0;
offset: 2 -3;
}
image {
normal: "check0.png";
}
}
description {
state: "active" 0.0;
inherit: "default" 0.0;
image {
normal: "check2.png";
}
}
description {
state: "disabled_unsel" 0.0;
inherit: "default" 0.0;
color: 255 255 255 128;
}
2008-11-06 19:04:00 +00:00
2008-12-09 20:18:11 +00:00
description {
state: "disabled_sel" 0.0;
inherit: "active" 0.0;
color: 255 255 255 128;
}
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
part {
name: "ecdb.label";
2008-12-09 20:18:11 +00:00
type: TEXT;
scale: 1;
2008-12-09 20:18:11 +00:00
description {
state: "default" 0.0;
color: 60 60 60 255;
fixed: 1 1;
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
rel1 {
to: "check";
offset: 25 0;
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
rel2 {
relative: 1.0 1.0;
to_y: "check";
offset: -1 0;
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
text {
text: "";
2008-12-09 20:18:11 +00:00
font: "ecdb/default";
min: 1 1;
size: 11;
align: 0.0 0.5;
}
}
}
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
programs {
program {
name: "focus_in";
signal: "ecdb,focus,in";
signal: "mouse,down,1";
action: STATE_SET "focused" 0.0;
source: "*";
target: "check_shadow";
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
program {
name: "focus_out";
signal: "ecdb,focus,out";
action: STATE_SET "default" 0.0;
source: "ecdb";
target: "check_shadow";
}
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
program {
name: "clicked";
signal: "mouse,down,1";
source: "*";
2008-11-05 14:54:58 +00:00
2008-12-09 20:18:11 +00:00
script {
toggle_state();
}
}
2008-11-06 19:04:00 +00:00
2008-12-09 20:18:11 +00:00
program {
name: "disabled";
signal: "ecdb,disable";
source: "ecdb";
action: STATE_SET "disabled" 0.0;
target: "check_base";
target: "check_shadow";
}
2008-11-06 19:04:00 +00:00
2008-12-09 20:18:11 +00:00
program {
name: "disabled_check";
signal: "ecdb,disable";
source: "ecdb";
2008-11-06 19:04:00 +00:00
2008-12-09 20:18:11 +00:00
script {
if (get_int(s) == 1)
set_state(PART:"check", "disabled_sel",
0.0);
else
set_state(PART:"check",
"disabled_unsel", 0.0);
}
}
2008-11-06 19:04:00 +00:00
2008-12-09 20:18:11 +00:00
program {
name: "enabled";
signal: "ecdb,enable";
source: "ecdb";
action: STATE_SET "default" 0.0;
target: "check_base";
target: "check_shadow";
}
2008-11-06 19:04:00 +00:00
2008-12-09 20:18:11 +00:00
program {
name: "enabled_check";
signal: "ecdb,enable";
source: "ecdb";
script {
if (get_int(s) == 1)
set_state(PART:"check", "active", 0.0);
else
set_state(PART:"check", "default", 0.0);
}
}
program {
name: "check_off";
signal: "ecdb,check,off";
source: "ecdb";
script {
set_int(s, 0);
}
action: STATE_SET "default" 0.0;
target: "check";
}
program {
name: "check_on";
signal: "ecdb,check,on";
source: "ecdb";
script {
set_int(s, 1);
}
action: STATE_SET "active" 0.0;
target: "check";
}
2008-12-09 20:18:11 +00:00
}
2008-11-05 14:54:58 +00:00
}