2005-01-09 18:53:01 -08:00
|
|
|
images {
|
|
|
|
image: "e17_battery_000.png" COMP;
|
|
|
|
image: "e17_battery_010.png" COMP;
|
|
|
|
image: "e17_battery_020.png" COMP;
|
|
|
|
image: "e17_battery_030.png" COMP;
|
|
|
|
image: "e17_battery_040.png" COMP;
|
|
|
|
image: "e17_battery_050.png" COMP;
|
|
|
|
image: "e17_battery_060.png" COMP;
|
|
|
|
image: "e17_battery_070.png" COMP;
|
|
|
|
image: "e17_battery_080.png" COMP;
|
|
|
|
image: "e17_battery_090.png" COMP;
|
|
|
|
image: "e17_battery_100.png" COMP;
|
|
|
|
image: "e17_battery_ac.png" COMP;
|
|
|
|
}
|
|
|
|
group {
|
2006-08-22 20:39:02 -07:00
|
|
|
name: "e/modules/battery/main";
|
2005-01-09 18:53:01 -08:00
|
|
|
max: 128 128;
|
2008-04-22 22:51:02 -07:00
|
|
|
min: 1 1;
|
2005-01-09 18:53:01 -08:00
|
|
|
script {
|
|
|
|
public message(Msg_Type:type, id, ...) {
|
|
|
|
if ((type == MSG_FLOAT) && (id == 1)) {
|
|
|
|
new Float:val;
|
|
|
|
val = getfarg(2);
|
|
|
|
set_state(PART:"battery", "default", val);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
parts {
|
|
|
|
part {
|
|
|
|
name: "battery";
|
2005-01-10 23:08:38 -08:00
|
|
|
clip_to: "pulse_clip";
|
2005-01-09 18:53:01 -08:00
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
aspect: 0.669291339 0.669291339;
|
2006-08-09 00:58:27 -07:00
|
|
|
aspect_preference: BOTH;
|
2005-01-09 18:53:01 -08:00
|
|
|
align: 0.0 0.5;
|
|
|
|
max: 85 127;
|
|
|
|
rel1 {
|
|
|
|
relative: 0.0 0.0;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 1.0 1.0;
|
|
|
|
}
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_000.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.1;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_010.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.2;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_020.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.3;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_030.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.4;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_040.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.5;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_050.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.6;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_060.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.7;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_070.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.8;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_080.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 0.9;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_090.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "default" 1.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_100.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2006-04-20 04:30:25 -07:00
|
|
|
part {
|
|
|
|
name: "ac";
|
|
|
|
clip_to: "fade_clip";
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
aspect: 0.975609756 0.975609756;
|
2006-08-09 00:58:27 -07:00
|
|
|
aspect_preference: BOTH;
|
2006-04-20 04:30:25 -07:00
|
|
|
align: 1.0 1.0;
|
|
|
|
max: 40 41;
|
|
|
|
visible: 0;
|
|
|
|
rel1 {
|
|
|
|
relative: 0.5 0.5;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 1.0 1.0;
|
|
|
|
}
|
|
|
|
image {
|
|
|
|
normal: "e17_battery_ac.png";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "active" 0.0;
|
|
|
|
inherit: "default" 0.0;
|
|
|
|
visible: 1;
|
|
|
|
}
|
|
|
|
}
|
2005-01-09 18:53:01 -08:00
|
|
|
part {
|
2006-08-23 01:06:45 -07:00
|
|
|
name: "e.text.reading";
|
2005-01-09 18:53:01 -08:00
|
|
|
type: TEXT;
|
2006-09-27 23:07:15 -07:00
|
|
|
effect: OUTLINE_SOFT_SHADOW;
|
2005-01-09 18:53:01 -08:00
|
|
|
clip_to: "fade_clip";
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
align: 1.0 0.0;
|
|
|
|
rel1 {
|
|
|
|
relative: 1.0 0.0;
|
|
|
|
to_x: "battery";
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 1.0 0.0;
|
|
|
|
}
|
|
|
|
color: 255 255 255 255;
|
2006-09-27 23:07:15 -07:00
|
|
|
color2: 0 0 0 128;
|
2005-01-09 18:53:01 -08:00
|
|
|
color3: 0 0 0 32;
|
2006-10-10 06:36:31 -07:00
|
|
|
color_class: "module_label";
|
2005-01-09 18:53:01 -08:00
|
|
|
text {
|
|
|
|
text: "100%";
|
2007-09-17 05:03:47 -07:00
|
|
|
font: "Sans:style=Bold,Edje-Vera-Bold";
|
2006-09-27 23:07:15 -07:00
|
|
|
size: 8;
|
2005-01-09 18:53:01 -08:00
|
|
|
min: 1 1;
|
|
|
|
align: 1.0 0.0;
|
2006-04-23 08:30:47 -07:00
|
|
|
text_class: "module_small";
|
2005-01-09 18:53:01 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part {
|
2006-08-23 01:06:45 -07:00
|
|
|
name: "e.text.time";
|
2005-01-09 18:53:01 -08:00
|
|
|
type: TEXT;
|
2006-09-27 23:07:15 -07:00
|
|
|
effect: OUTLINE_SOFT_SHADOW;
|
2005-01-09 18:53:01 -08:00
|
|
|
clip_to: "fade_clip";
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
align: 1.0 0.0;
|
|
|
|
rel1 {
|
|
|
|
relative: 1.0 1.0;
|
|
|
|
to_x: "battery";
|
2006-08-23 01:06:45 -07:00
|
|
|
to_y: "e.text.reading";
|
2005-01-09 18:53:01 -08:00
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 1.0 1.0;
|
2006-08-23 01:06:45 -07:00
|
|
|
to_y: "e.text.reading";
|
2005-01-09 18:53:01 -08:00
|
|
|
}
|
|
|
|
color: 255 255 255 255;
|
2006-09-27 23:07:15 -07:00
|
|
|
color2: 0 0 0 128;
|
2005-01-09 18:53:01 -08:00
|
|
|
color3: 0 0 0 32;
|
2006-10-10 06:36:31 -07:00
|
|
|
color_class: "module_label";
|
2005-01-09 18:53:01 -08:00
|
|
|
text {
|
|
|
|
text: "00:00";
|
2006-09-27 23:07:15 -07:00
|
|
|
font: "Edje-Vera-Bold";
|
|
|
|
size: 8;
|
2005-01-09 18:53:01 -08:00
|
|
|
min: 1 1;
|
|
|
|
align: 1.0 0.0;
|
2006-04-23 08:30:47 -07:00
|
|
|
text_class: "module_small";
|
2005-01-09 18:53:01 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "fade_clip";
|
|
|
|
type: RECT;
|
|
|
|
mouse_events: 0;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "faded" 0.0;
|
|
|
|
color: 255 255 255 128;
|
|
|
|
}
|
|
|
|
}
|
2005-01-10 23:08:38 -08:00
|
|
|
part {
|
|
|
|
name: "pulse_clip";
|
|
|
|
type: RECT;
|
|
|
|
mouse_events: 0;
|
|
|
|
clip_to: "fade_clip";
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "faded" 1.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
}
|
|
|
|
description {
|
|
|
|
state: "faded" 0.0;
|
|
|
|
color: 255 255 255 0;
|
|
|
|
}
|
|
|
|
}
|
2005-01-09 18:53:01 -08:00
|
|
|
}
|
|
|
|
programs {
|
|
|
|
program {
|
|
|
|
name: "charge";
|
2006-08-22 00:39:11 -07:00
|
|
|
signal: "e,state,charging";
|
|
|
|
source: "e";
|
2005-01-09 18:53:01 -08:00
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "fade_clip";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "charge2";
|
2006-08-22 00:39:11 -07:00
|
|
|
signal: "e,state,charging";
|
|
|
|
source: "e";
|
2005-01-09 18:53:01 -08:00
|
|
|
action: STATE_SET "active" 0.0;
|
|
|
|
target: "ac";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "discharge";
|
2006-08-22 00:39:11 -07:00
|
|
|
signal: "e,state,discharging";
|
|
|
|
source: "e";
|
2005-01-09 18:53:01 -08:00
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "fade_clip";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "discharge2";
|
2006-08-22 00:39:11 -07:00
|
|
|
signal: "e,state,discharging";
|
|
|
|
source: "e";
|
2005-01-09 18:53:01 -08:00
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "ac";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "unknown";
|
2006-08-22 00:39:11 -07:00
|
|
|
signal: "e,state,unknown";
|
|
|
|
source: "e";
|
2005-01-09 18:53:01 -08:00
|
|
|
action: STATE_SET "faded" 0.0;
|
|
|
|
target: "fade_clip";
|
|
|
|
}
|
2005-01-10 23:08:38 -08:00
|
|
|
program {
|
|
|
|
name: "pulse";
|
2006-08-22 00:39:11 -07:00
|
|
|
signal: "e,action,pulse,start";
|
|
|
|
source: "e";
|
2005-01-10 23:08:38 -08:00
|
|
|
action: STATE_SET "faded" 0.0;
|
|
|
|
transition: ACCELERATE 0.3;
|
|
|
|
after: "pulse2";
|
|
|
|
target: "pulse_clip";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "pulse2";
|
|
|
|
signal: "pulse2";
|
2006-08-22 00:39:11 -07:00
|
|
|
source: "e";
|
2005-01-10 23:08:38 -08:00
|
|
|
action: STATE_SET "faded" 1.0;
|
|
|
|
transition: ACCELERATE 0.1;
|
|
|
|
target: "pulse_clip";
|
|
|
|
}
|
|
|
|
program {
|
|
|
|
name: "pulsestop";
|
2006-08-22 00:39:11 -07:00
|
|
|
signal: "e,action,pulse,stop";
|
|
|
|
source: "e";
|
2005-01-10 23:08:38 -08:00
|
|
|
action: STATE_SET "default" 0.0;
|
|
|
|
target: "pulse_clip";
|
|
|
|
}
|
2005-01-09 18:53:01 -08:00
|
|
|
}
|
2005-01-10 14:33:53 -08:00
|
|
|
}
|
2008-05-03 12:51:49 -07:00
|
|
|
group {
|
|
|
|
name: "e/modules/battery/popup";
|
|
|
|
max: 420 96;
|
|
|
|
min: 240 64;
|
|
|
|
parts {
|
|
|
|
part {
|
|
|
|
name: "battery";
|
|
|
|
type: SWALLOW;
|
|
|
|
mouse_events: 1;
|
|
|
|
repeat_events: 1;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
min: 1 1;
|
|
|
|
max: 120 120;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
rel1 {
|
|
|
|
relative: 0.0 0.0;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 0.25 1.0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "text";
|
|
|
|
type: TEXT;
|
|
|
|
effect: SOFT_SHADOW;
|
|
|
|
mouse_events: 0;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
min: 120 1;
|
|
|
|
max: 300 48;
|
|
|
|
fixed: 1 1;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
rel1 {
|
|
|
|
relative: 1.0 0.5;
|
|
|
|
to_x:battery;
|
|
|
|
offset: 0 -7;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 1.0 0.5;
|
|
|
|
offset: 0 -7;
|
|
|
|
}
|
|
|
|
|
|
|
|
text {
|
|
|
|
text: "Your battery is low!";
|
|
|
|
font: "Sans:style=Bold,Edje-Vera-Bold";
|
|
|
|
size: 10;
|
|
|
|
min: 1 1;
|
|
|
|
align: 0.5 1.0;
|
|
|
|
text_class: "module_large";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
part {
|
|
|
|
name: "text2";
|
|
|
|
type: TEXT;
|
|
|
|
effect: SOFT_SHADOW;
|
|
|
|
mouse_events: 0;
|
|
|
|
description {
|
|
|
|
state: "default" 0.0;
|
|
|
|
color: 255 255 255 255;
|
|
|
|
min: 120 1;
|
|
|
|
max: 300 48;
|
|
|
|
fixed: 1 1;
|
|
|
|
rel1 {
|
|
|
|
relative: 1.0 0.5;
|
|
|
|
to_x: battery;
|
|
|
|
offset: 5 7;
|
|
|
|
}
|
|
|
|
rel2 {
|
|
|
|
relative: 1.0 0.5;
|
|
|
|
offset: 0 7;
|
|
|
|
}
|
|
|
|
|
|
|
|
text {
|
|
|
|
text: "AC power is recommended.";
|
|
|
|
font: "Sans:style=Bold,Edje-Vera-Bold";
|
|
|
|
size: 10;
|
|
|
|
min: 1 1;
|
|
|
|
align: 0.5 1.0;
|
|
|
|
text_class: "module_large";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|