Enlightenment CVS committal
Author : moom
Project : e17
Module : libs/etk
Dir : e17/libs/etk/data/themes/default/widgets
Modified Files:
button.edc check_button.edc combobox.edc entry.edc label.edc
radio_button.edc slider.edc spinner.edc toggle_button.edc
Log Message:
* Modified patch from saturn_vk to make widgets "disable-able". Some
widgets may need some more theme-work to look good when they are
disabled
* Add saturn_vk to the list of authors since he did a really amazing
work on Etk lately. Thanks :)
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/button.edc,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- button.edc 7 Jan 2007 21:49:57 -0000 1.12
+++ button.edc 18 Mar 2007 20:44:46 -0000 1.13
@@ -26,6 +26,14 @@
normal: "button_down.png";
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "button_disabled.png";
+ border: 8 8 8 8;
+ }
+ }
}
part {
name: "etk.swallow.content";
@@ -45,7 +53,6 @@
}
GLINT_PART("button")
FOCUS_GLOW(0.0, 0.0, 0, 0, "button", 1.0, 1.0, -1, -1, "button")
- DRAG_GLOW(0.0, 0.0, 0, 0, "button", 1.0, 1.0, -1, -1, "button")
}
programs {
program {
@@ -76,33 +83,30 @@
after: "button_focus_prog";
}
program {
- name: "button_focus_prog";
- source: "";
- FOCUS_GLOW_ACTION
- }
- program {
name: "button_unfocus";
signal: "etk,state,unfocused";
source: "etk";
UNFOCUS_GLOW_ACTION
}
program {
- name: "button_drag_enter";
- signal: "drag_enter";
+ name: "button_enable";
+ signal: "etk,state,enabled";
source: "etk";
- DRAG_ENTER_ACTION
+ action: STATE_SET "default" 0.0;
+ target: "button";
}
program {
- name: "button_drag_leave";
- signal: "drag_leave";
+ name: "button_disable";
+ signal: "etk,state,disabled";
source: "etk";
- DRAG_LEAVE_ACTION
+ action: STATE_SET "disabled" 0.0;
+ target: "button";
}
+
program {
- name: "button_drag_drop";
- signal: "drag_drop";
- source: "etk";
- DRAG_LEAVE_ACTION
+ name: "button_focus_prog";
+ source: "";
+ FOCUS_GLOW_ACTION
}
GLINT_PROGRAM
}
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/check_button.edc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- check_button.edc 6 Oct 2006 17:04:12 -0000 1.7
+++ check_button.edc 18 Mar 2007 20:44:47 -0000 1.8
@@ -28,7 +28,52 @@
}
}
part {
- name: "checkbox";
+ name: "enable_clip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ rel1 {
+ to: "checkbox_enabled";
+ }
+ rel2 {
+ to: "checkbox_enabled";
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "checkbox_disabled";
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to: "checkbox_enabled";
+ }
+ rel2 {
+ to: "checkbox_enabled";
+ }
+ image {
+ normal: "checkbox_off_disabled.png";
+ }
+ fill {
+ smooth: 0;
+ }
+ }
+ description {
+ state: "on" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "checkbox_on_disabled.png";
+ }
+ }
+ }
+ part {
+ name: "checkbox_enabled";
+ clip_to: "enable_clip";
description {
state: "default" 0.0;
rel1 {
@@ -88,14 +133,16 @@
signal: "etk,state,on";
source: "etk";
action: STATE_SET "on" 0.0;
- target: "checkbox";
+ target: "checkbox_enabled";
+ target: "checkbox_disabled";
}
program {
name: "check_button_turn_off";
signal: "etk,state,off";
source: "etk";
action: STATE_SET "default" 0.0;
- target: "checkbox";
+ target: "checkbox_enabled";
+ target: "checkbox_disabled";
}
program {
name: "check_button_press";
@@ -136,6 +183,20 @@
source: "etk";
action: STATE_SET "default" 0.0;
target: "background";
+ }
+ program {
+ name: "check_button_enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "enable_clip";
+ }
+ program {
+ name: "check_button_disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "enable_clip";
}
}
}
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/combobox.edc,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- combobox.edc 12 Jan 2007 02:20:49 -0000 1.13
+++ combobox.edc 18 Mar 2007 20:44:47 -0000 1.14
@@ -27,6 +27,15 @@
inherit: "default" 0.0;
image {
normal: "button_toggled.png";
+ border: 8 8 8 8;
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "button_disabled.png";
+ border: 8 8 8 8;
}
}
}
@@ -64,6 +73,7 @@
mouse_events: 0;
description {
state: "default" 0.0;
+ color: 255 255 255 255;
rel1 {
relative: 1 0.5;
offset: -22 -10;
@@ -79,6 +89,11 @@
smooth: 0;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 180;
+ }
}
part {
name: "etk.swallow.content";
@@ -101,21 +116,21 @@
}
programs {
program {
- name: "combo_button_activate";
+ name: "combo_turn_on";
signal: "etk,state,on";
source: "etk";
action: STATE_SET "on" 0.0;
target: "combo_button";
}
program {
- name: "combo_button_deactivate";
+ name: "combo_turn_off";
signal: "etk,state,off";
source: "etk";
action: STATE_SET "default" 0.0;
target: "combo_button";
}
program {
- name: "combo_button_pressed";
+ name: "combo_pressed";
signal: "etk,state,pressed";
source: "etk";
action: STATE_SET "down" 0.0;
@@ -123,7 +138,7 @@
target: "combo_button_down";
}
program {
- name: "combo_button_released";
+ name: "combo_released";
signal: "etk,state,released";
source: "etk";
action: STATE_SET "default" 0.0;
@@ -144,15 +159,32 @@
after: "combo_focus_prog";
}
program {
- name: "combo_focus_prog";
- source: "";
- FOCUS_GLOW_ACTION
- }
- program {
name: "combo_unfocus";
signal: "etk,state,unfocused";
source: "etk";
UNFOCUS_GLOW_ACTION
+ }
+ program {
+ name: "combo_enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "combo_button";
+ target: "combo_arrow";
+ }
+ program {
+ name: "combo_disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "combo_button";
+ target: "combo_arrow";
+ }
+
+ program {
+ name: "combo_focus_prog";
+ source: "";
+ FOCUS_GLOW_ACTION
}
GLINT_PROGRAM
}
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/entry.edc,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- entry.edc 12 Mar 2007 01:46:13 -0000 1.12
+++ entry.edc 18 Mar 2007 20:44:47 -0000 1.13
@@ -9,6 +9,7 @@
name: "entry";
description {
state: "default" 0.0;
+ color: 255 255 255 255;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
@@ -25,6 +26,11 @@
smooth: 0;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 160;
+ }
}
part {
name: "etk.swallow.content";
@@ -60,22 +66,18 @@
UNFOCUS_GLOW_ACTION
}
program {
- name: "drag_enter";
- signal: "drag_enter";
- source: "";
- DRAG_ENTER_ACTION
- }
- program {
- name: "drag_leave";
- signal: "drag_leave";
- source: "";
- DRAG_LEAVE_ACTION
- }
- program {
- name: "drag_drop";
- signal: "drag_drop";
- source: "";
- DRAG_LEAVE_ACTION
+ name: "entry_enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "entry";
+ }
+ program {
+ name: "entry_disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "entry";
}
}
}
@@ -85,20 +87,41 @@
parts {
part {
name: "etk.text.text";
- type: TEXT;
- mouse_events: 0;
- description {
- state: "default" 0.0;
- color: 0 0 0 255;
- text {
- text: "Entry";
- font: "Vera";
- size: 10;
- min: 1 1;
- align: 0.0 0.5;
+ type: TEXT;
+ mouse_events: 0;
+ description {
+ state: "default" 0.0;
+ color: 0 0 0 255;
+ text {
+ text: "Entry";
+ font: "Vera";
+ size: 10;
+ min: 1 1;
+ align: 0.0 0.5;
text_class: "entry";
- }
- }
+ }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 0 0 0 128;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "text_enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "etk.text.text";
+ }
+ program {
+ name: "text_disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "etk.text.text";
}
}
}
@@ -125,8 +148,8 @@
programs {
program {
name: "on_cursor_show";
- signal: "etk,action,show,cursor";
- source: "etk";
+ signal: "etk,action,show,cursor";
+ source: "etk";
action: ACTION_STOP;
target: "cursor_show";
target: "cursor_hide";
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/label.edc,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- label.edc 19 Feb 2007 02:21:14 -0000 1.3
+++ label.edc 18 Mar 2007 20:44:47 -0000 1.4
@@ -6,6 +6,20 @@
"color=#ffffff style=soft_shadow shadow_color=#00000020 font=Vera-Bold
font_size=12", /* Subtitle */
"color=#ffffff style=glow glow2_color=#fe87 glow_color=#fa14", /* Glow */
"color=#111111 font=Vera-Italic") /* Description */
+
+ STYLE("Label Disabled", "Vera", "Vera-Bold", "Vera-Italic",
"Vera-Bold-Italic", "Vera-Mono", "10",
+ "color=#00000080 style=shadow shadow_color=#ffffff40", /* Normal style */
+ "color=#ffffffC8 style=soft_shadow shadow_color=#00000020 font=Vera-Bold
font_size=16", /* Title */
+ "color=#ffffffC8 style=soft_shadow shadow_color=#00000020 font=Vera-Bold
font_size=12", /* Subtitle */
+ "color=#ffffffC8 style=glow glow2_color=#fe87 glow_color=#fa14", /* Glow
*/
+ "color=#11111180 font=Vera-Italic") /* Description */
+
+ STYLE("Combobox Label", "Vera-Bold", "Vera-Bold", "Vera-Bold-Italic",
"Vera-Bold-Italic", "Vera-Mono", "10",
+ "color=#ffffffff style=outline outline_color=#00000080", /* Normal style
*/
+ "", /* Title */
+ "", /* Subtitle */
+ "", /* Glow */
+ "") /* Description */
}
group {
@@ -19,9 +33,9 @@
alias: "etk/tree/header_first/label";
alias: "etk/tree/header_last/label";
alias: "etk/notebook/tab/label";
- alias: "etk/combobox/button/label";
alias: "etk/htoolbar/tool_button/label";
alias: "etk/vtoolbar/tool_button/label";
+ alias: "etk/combobox/button/label";
parts {
part {
name: "etk.text.label";
@@ -34,6 +48,48 @@
min: 1 1;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ text {
+ style: "Label Disabled";
+ min: 1 1;
+ }
+ }
+ }
+ }
+ programs {
+ program {
+ name: "label_enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "etk.text.label";
+ }
+ program {
+ name: "label_disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "etk.text.label";
}
}
}
+/*
+group {
+ name: "etk/combobox/button/label";
+ parts {
+ part {
+ name: "etk.text.label";
+ type: TEXTBLOCK;
+ description {
+ state: "default" 0.0;
+ align: 0.0 0.5;
+ text {
+ style: "Combobox Label";
+ min: 1 1;
+ }
+ }
+ }
+ }
+}*/
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/radio_button.edc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- radio_button.edc 6 Oct 2006 17:04:13 -0000 1.7
+++ radio_button.edc 18 Mar 2007 20:44:47 -0000 1.8
@@ -28,7 +28,46 @@
}
}
part {
+ name: "enable_clip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to: "radio";
+ }
+ rel2 {
+ to: "radio";
+ }
+ visible: 1;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "disable_clip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to: "radio";
+ }
+ rel2 {
+ to: "radio";
+ }
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
name: "radio";
+ clip_to: "enable_clip";
description {
state: "default" 0.0;
rel1 {
@@ -54,6 +93,32 @@
}
}
}
+ part {
+ name: "radio_disabled";
+ clip_to: "disable_clip";
+ description {
+ state: "default" 0.0;
+ rel1 {
+ to: "radio";
+ }
+ rel2 {
+ to: "radio";
+ }
+ image {
+ normal: "radio_off_disabled.png";
+ }
+ fill {
+ smooth: 0;
+ }
+ }
+ description {
+ state: "on" 0.0;
+ inherit: "default" 0.0;
+ image {
+ normal: "radio_on_disabled.png";
+ }
+ }
+ }
FOCUS_GLOW(0.0, 0.0, 0, 0, "background", 1.0, 1.0, -1, -1, "background")
}
programs {
@@ -63,6 +128,7 @@
source: "etk";
action: STATE_SET "on" 0.0;
target: "radio";
+ target: "radio_disabled";
}
program {
name: "radio_button_deactivate";
@@ -70,6 +136,7 @@
source: "etk";
action: STATE_SET "default" 0.0;
target: "radio";
+ target: "radio_disabled";
}
program {
name: "radio_button_focus";
@@ -96,6 +163,22 @@
source: "etk";
action: STATE_SET "default" 0.0;
target: "background";
+ }
+ program {
+ name: "radio_button_enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "enable_clip";
+ target: "disable_clip";
+ }
+ program {
+ name: "radio_button_disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "enable_clip";
+ target: "disable_clip";
}
}
}
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/slider.edc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- slider.edc 21 Feb 2007 21:40:59 -0000 1.11
+++ slider.edc 18 Mar 2007 20:44:47 -0000 1.12
@@ -85,6 +85,7 @@
min: 32 32;
max: 32 32;
fixed: 1 1;
+ color: 255 255 255 255;
rel1 {
to: "etk.dragable.slider";
}
@@ -102,6 +103,11 @@
normal: "slider_button2.png";
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 150 150 150 150;
+ }
}
part {
name: "label_clip";
@@ -142,6 +148,7 @@
align: 1.0 0.5;
fixed: 1 1;
min: 30 0;
+ color: 255 255 255 255;
rel1 {
relative: 0.0 0.0;
offset: -6 -5;
@@ -160,6 +167,11 @@
smooth: 0;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 200 200 200 200;
+ }
}
part {
name: "etk.text.label";
@@ -186,6 +198,11 @@
min: 1 1;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 100 100 100 200;
+ }
}
part {
name: "label_over";
@@ -299,6 +316,24 @@
source: "etk";
UNFOCUS_GLOW_ACTION
}
+ program {
+ name: "enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "slider_button";
+ target: "label_under";
+ target: "etk.text.label";
+ }
+ program {
+ name: "disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "slider_button";
+ target: "label_under";
+ target: "etk.text.label";
+ }
}
}
@@ -389,6 +424,7 @@
min: 32 32;
max: 32 32;
fixed: 1 1;
+ color: 255 255 255 255;
rel1 {
to: "etk.dragable.slider";
}
@@ -406,6 +442,11 @@
normal: "slider_button2.png";
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 150 150 150 150;
+ }
}
part {
name: "label_clip";
@@ -446,6 +487,7 @@
align: 0.5 1.0;
fixed: 1 1;
min: 30 0;
+ color: 255 255 255 255;
rel1 {
relative: 0.0 0.0;
offset: -6 -5;
@@ -464,6 +506,11 @@
smooth: 0;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 200 200 200 200;
+ }
}
part {
name: "etk.text.label";
@@ -490,6 +537,11 @@
min: 1 1;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 100 100 100 200;
+ }
}
part {
name: "label_over";
@@ -602,6 +654,24 @@
signal: "etk,state,unfocused";
source: "etk";
UNFOCUS_GLOW_ACTION
+ }
+ program {
+ name: "enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "slider_button";
+ target: "label_under";
+ target: "etk.text.label";
+ }
+ program {
+ name: "disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "slider_button";
+ target: "label_under";
+ target: "etk.text.label";
}
}
}
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/spinner.edc,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- spinner.edc 22 Feb 2007 04:36:25 -0000 1.4
+++ spinner.edc 18 Mar 2007 20:44:47 -0000 1.5
@@ -6,6 +6,7 @@
name: "spinner";
description {
state: "default" 0.0;
+ color: 255 255 255 255;
rel1 {
relative: 0.0 0.5;
offset: 0 -9;
@@ -22,6 +23,11 @@
smooth: 0;
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 200 200 200 200;
+ }
}
part {
name: "clip";
@@ -61,6 +67,7 @@
clip_to: "clip";
description {
state: "default" 0.0;
+ color: 255 255 255 255;
rel1 {
relative: 1.0 0.0;
offset: -16 -2;
@@ -82,12 +89,18 @@
normal: "spinner_button_up2.png";
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 200 200 200 200;
+ }
}
part {
name: "down_arrow";
clip_to: "clip";
description {
state: "default" 0.0;
+ color: 255 255 255 255;
rel1 {
relative: 1.0 0.0;
offset: -16 9;
@@ -108,7 +121,12 @@
image {
normal: "spinner_button_down2.png";
}
- }
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 200 200 200 200;
+ }
}
}
programs {
@@ -175,7 +193,25 @@
source: "down_arrow";
signal: "mouse,up,1";
action: SIGNAL_EMIT "etk,action,decrement,stop" "";
- }
+ }
+ program {
+ name: "enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "spinner";
+ target: "up_arrow";
+ target: "down_arrow";
+ }
+ program {
+ name: "disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "spinner";
+ target: "up_arrow";
+ target: "down_arrow";
+ }
}
}
@@ -198,6 +234,27 @@
text_class: "spinner";
}
}
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ color: 100 100 100 200;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "etk.text.text";
+ }
+ program {
+ name: "disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "etk.text.text";
}
}
}
===================================================================
RCS file: /cvs/e/e17/libs/etk/data/themes/default/widgets/toggle_button.edc,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- toggle_button.edc 12 Jan 2007 02:20:49 -0000 1.13
+++ toggle_button.edc 18 Mar 2007 20:44:47 -0000 1.14
@@ -6,8 +6,49 @@
}
parts {
part {
+ name: "up_clip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ }
+ description {
+ state: "down" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "enable_clip";
+ clip_to: "up_clip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 1;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ }
+ }
+ part {
+ name: "disable_clip";
+ clip_to: "up_clip";
+ type: RECT;
+ description {
+ state: "default" 0.0;
+ visible: 0;
+ }
+ description {
+ state: "disabled" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ part {
name: "toggle_button";
- clip_to: "toggle_button_clip";
+ clip_to: "enable_clip";
description {
state: "default" 0.0;
image {
@@ -24,16 +65,21 @@
}
}
part {
- name: "toggle_button_clip";
- type: RECT;
+ name: "toggle_button_disabled";
+ clip_to: "disable_clip";
description {
state: "default" 0.0;
- visible: 1;
+ image {
+ normal: "button_disabled.png";
+ border: 8 8 8 8;
+ }
}
description {
- state: "down" 0.0;
+ state: "on" 0.0;
inherit: "default" 0.0;
- visible: 0;
+ image {
+ normal: "button_toggled_disabled.png";
+ }
}
}
part {
@@ -68,7 +114,7 @@
}
}
description {
- state: "down" 0.0;
+ state: "on" 0.0;
rel1 {
relative: 0.0 0.0;
offset: 9 8;
@@ -84,36 +130,38 @@
}
programs {
program {
- name: "toggle_button_activate";
+ name: "toggle_button_turn_on";
signal: "etk,state,on";
source: "etk";
action: STATE_SET "on" 0.0;
target: "toggle_button";
+ target: "toggle_button_disabled";
+ target: "etk.swallow.content";
}
program {
- name: "toggle_button_deactivate";
+ name: "toggle_button_turn_off";
signal: "etk,state,off";
source: "etk";
action: STATE_SET "off" 0.0;
target: "toggle_button";
+ target: "toggle_button_disabled";
+ target: "etk.swallow.content";
}
program {
name: "toggle_button_pressed";
signal: "etk,state,pressed";
source: "etk";
action: STATE_SET "down" 0.0;
- target: "toggle_button_clip";
+ target: "up_clip";
target: "toggle_button_down";
- target: "etk.swallow.content";
}
program {
name: "toggle_button_released";
signal: "etk,state,released";
source: "etk";
action: STATE_SET "default" 0.0;
- target: "toggle_button_clip";
+ target: "up_clip";
target: "toggle_button_down";
- target: "etk.swallow.content";
}
program {
name: "toggle_button_enter";
@@ -129,15 +177,32 @@
after: "toggle_button_focus_prog";
}
program {
- name: "toggle_button_focus_prog";
- source: "";
- FOCUS_GLOW_ACTION
- }
- program {
name: "toggle_button_unfocus";
signal: "etk,state,unfocused";
source: "etk";
UNFOCUS_GLOW_ACTION
+ }
+ program {
+ name: "toggle_button_enable";
+ signal: "etk,state,enabled";
+ source: "etk";
+ action: STATE_SET "default" 0.0;
+ target: "enable_clip";
+ target: "disable_clip";
+ }
+ program {
+ name: "toggle_button_disable";
+ signal: "etk,state,disabled";
+ source: "etk";
+ action: STATE_SET "disabled" 0.0;
+ target: "enable_clip";
+ target: "disable_clip";
+ }
+
+ program {
+ name: "toggle_button_focus_prog";
+ source: "";
+ FOCUS_GLOW_ACTION
}
GLINT_PROGRAM
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs