summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Atton <jonathan.atton@gmail.com>2010-11-17 17:45:33 +0000
committerJonathan Atton <jonathan.atton@gmail.com>2010-11-17 17:45:33 +0000
commit6cfff935a217529ddc11d91e383b95a607747e1f (patch)
treef1a580d43be0f93b0328e65bf9c12ac7987f5b5f
parent95fb94f73181606f9ea9c964473e0afb7c199acd (diff)
detour-elm : add genlist tree
SVN revision: 54644
-rw-r--r--images.edc7
-rw-r--r--images/arrow_down.pngbin0 -> 617 bytes
-rw-r--r--images/arrow_left.png (renamed from images/gadman_im5.png)bin616 -> 616 bytes
-rw-r--r--images/arrow_right.png (renamed from images/gadman_im6.png)bin639 -> 639 bytes
-rw-r--r--main.edc336
5 files changed, 325 insertions, 18 deletions
diff --git a/images.edc b/images.edc
index d0c7dc1..583b83b 100644
--- a/images.edc
+++ b/images.edc
@@ -34,9 +34,10 @@ image: "images/menu_im3.png" COMP; /* inactive arrow */
34//~ exebuf 34//~ exebuf
35image: "images/exebuf_im0.png" COMP; /* hilite */ 35image: "images/exebuf_im0.png" COMP; /* hilite */
36 36
37//~ gadman 37//~ arrow
38image: "images/gadman_im5.png" COMP; /* left arrow */ 38image: "images/arrow_left.png" COMP; /* left arrow */
39image: "images/gadman_im6.png" COMP; /* right arrow */ 39image: "images/arrow_right.png" COMP; /* right arrow */
40image: "images/arrow_down.png" COMP; /* down arrow */
40 41
41 42
42//~ scrollframe 43//~ scrollframe
diff --git a/images/arrow_down.png b/images/arrow_down.png
new file mode 100644
index 0000000..194b348
--- /dev/null
+++ b/images/arrow_down.png
Binary files differ
diff --git a/images/gadman_im5.png b/images/arrow_left.png
index 758c9ca..758c9ca 100644
--- a/images/gadman_im5.png
+++ b/images/arrow_left.png
Binary files differ
diff --git a/images/gadman_im6.png b/images/arrow_right.png
index b8d58c9..b8d58c9 100644
--- a/images/gadman_im6.png
+++ b/images/arrow_right.png
Binary files differ
diff --git a/main.edc b/main.edc
index 61cdd53..9fb9031 100644
--- a/main.edc
+++ b/main.edc
@@ -1,5 +1,12 @@
1#define VERSION_STRING 0.1 1#define VERSION_STRING 0.1
2 2
3fonts {
4 font: "fonts/DejaVuSans.ttf" "DejaVuSans";
5 font: "fonts/DejaVuSans-Bold.ttf" "DejaVuSans-Bold";
6 font: "fonts/DejaVuSansMono.ttf" "DejaVuSans-Mono";
7 font: "fonts/DejaVuSansMono-Bold.ttf" "DejaVuSans-Mono-Bold";
8}
9
3images { 10images {
4 #include "images.edc" /* Includes both icons and regular images */ 11 #include "images.edc" /* Includes both icons and regular images */
5} 12}
@@ -781,7 +788,7 @@ collections {
781 } 788 }
782 text { 789 text {
783 text: ""; 790 text: "";
784 font: "Sans:style=Bold"; 791 font: "DejaVuSans-Bold";
785 size: 11; 792 size: 11;
786 min: 0 0; 793 min: 0 0;
787 align: 0.5 0.5; 794 align: 0.5 0.5;
@@ -1243,7 +1250,7 @@ collections {
1243 } 1250 }
1244 text { 1251 text {
1245 text: ""; 1252 text: "";
1246 font: "Sans:style=Bold"; 1253 font: "DejaVuSans-Bold";
1247 size: 11; 1254 size: 11;
1248 min: 0 0; 1255 min: 0 0;
1249 align: 0.5 0.5; 1256 align: 0.5 0.5;
@@ -1671,7 +1678,7 @@ collections {
1671 } 1678 }
1672 text { 1679 text {
1673 text: ""; 1680 text: "";
1674 font: "Sans:style=Bold"; 1681 font: "DejaVuSans-Bold";
1675 size: 11; 1682 size: 11;
1676 min: 1 1; 1683 min: 1 1;
1677 align: 0.0 0.5; 1684 align: 0.0 0.5;
@@ -1966,7 +1973,7 @@ collections {
1966 } 1973 }
1967 text { 1974 text {
1968 text: ""; 1975 text: "";
1969 font: "Sans:style=Bold"; 1976 font: "DejaVuSans-Bold";
1970 size: 11; 1977 size: 11;
1971 min: 1 1; 1978 min: 1 1;
1972 align: 0.0 0.5; 1979 align: 0.0 0.5;
@@ -2122,7 +2129,7 @@ collections {
2122 } 2129 }
2123 text { 2130 text {
2124 text: "Frame Label"; 2131 text: "Frame Label";
2125 font: "Sans:style=Bold"; 2132 font: "DejaVuSans-Bold";
2126 size: 11; 2133 size: 11;
2127 min: 1 1; 2134 min: 1 1;
2128 max: 1 1; 2135 max: 1 1;
@@ -3570,7 +3577,7 @@ collections {
3570 aspect_preference: VERTICAL; 3577 aspect_preference: VERTICAL;
3571 align: 0.0 0.5; 3578 align: 0.0 0.5;
3572 image { 3579 image {
3573 normal: "images/gadman_im5.png"; 3580 normal: "images/arrow_left.png";
3574 } 3581 }
3575 } 3582 }
3576 description { 3583 description {
@@ -3593,7 +3600,7 @@ collections {
3593 aspect_preference: VERTICAL; 3600 aspect_preference: VERTICAL;
3594 align: 1.0 0.5; 3601 align: 1.0 0.5;
3595 image { 3602 image {
3596 normal: "images/gadman_im6.png"; 3603 normal: "images/arrow_right.png";
3597 } 3604 }
3598 } 3605 }
3599 description { 3606 description {
@@ -3651,7 +3658,7 @@ collections {
3651 rel2.to: "elm.text"; 3658 rel2.to: "elm.text";
3652 color: 60 60 60 255; 3659 color: 60 60 60 255;
3653 text { 3660 text {
3654 font: "Sans"; 3661 font: "DejaVuSans";
3655 text_source: "elm.text"; 3662 text_source: "elm.text";
3656 size: 11; 3663 size: 11;
3657 min: 1 1; 3664 min: 1 1;
@@ -3732,7 +3739,7 @@ collections {
3732 offset: -5 -5; 3739 offset: -5 -5;
3733 } 3740 }
3734 text { 3741 text {
3735 font: "Sans"; 3742 font: "DejaVuSans";
3736 size: 11; 3743 size: 11;
3737 min: 1 1; 3744 min: 1 1;
3738 align: 0.5 0.5; 3745 align: 0.5 0.5;
@@ -4598,7 +4605,7 @@ collections {
4598 rel2.offset: -2 -2; 4605 rel2.offset: -2 -2;
4599 color: 0 0 0 255; 4606 color: 0 0 0 255;
4600 text { 4607 text {
4601 font: "Sans,Edje-Vera"; 4608 font: "DejaVuSans";
4602 size: 10; 4609 size: 10;
4603 min: 0 1; 4610 min: 0 1;
4604 align: 0.0 0.5; 4611 align: 0.0 0.5;
@@ -4851,7 +4858,7 @@ collections {
4851 rel2.offset: -2 -2; 4858 rel2.offset: -2 -2;
4852 color: 0 0 0 255; 4859 color: 0 0 0 255;
4853 text { 4860 text {
4854 font: "Sans,Edje-Vera"; 4861 font: "DejaVuSans";
4855 size: 10; 4862 size: 10;
4856 min: 0 0; 4863 min: 0 0;
4857 align: 0.0 0.5; 4864 align: 0.0 0.5;
@@ -5032,22 +5039,262 @@ collections {
5032 //////////////////////////////////////////// 5039 ////////////////////////////////////////////
5033 group { name: "elm/genlist/item/default/default"; 5040 group { name: "elm/genlist/item/default/default";
5034 alias: "elm/genlist/item_odd/default/default"; 5041 alias: "elm/genlist/item_odd/default/default";
5042 alias: "elm/genlist/item_compress/default/default";
5043 alias: "elm/genlist/item_compress_odd/default/default";
5035 data.item: "stacking" "above"; 5044 data.item: "stacking" "above";
5036 data.item: "selectraise" "on"; 5045 data.item: "selectraise" "on";
5037 data.item: "labels" "elm.text"; 5046 data.item: "labels" "elm.text";
5038 data.item: "icons" "elm.swallow.icon elm.swallow.end"; 5047 data.item: "icons" "elm.swallow.icon elm.swallow.end";
5039 data.item: "treesize" "20"; 5048 data.item: "treesize" "20";
5040 parts { 5049 parts {
5050 part { name: "bg_item";
5051 mouse_events: 0;
5052 description { state: "default" 0.0;
5053 fixed: 1 1;
5054 color: 255 255 255 200;
5055 image {
5056 normal: "images/win_background.png";
5057 }
5058 fill {
5059 smooth: 1;
5060 }
5061 }
5062 }
5063 part { name: "separator"; // separator group
5064 mouse_events: 0;
5065 description { state: "default" 0.0;
5066 min: 2 2;
5067 max: 99999 2;
5068 fixed: 1 1;
5069 rel1.relative: 0.0 1.0;
5070 image {
5071 normal: "images/separator_h.png";
5072 }
5073 fill {
5074 smooth: 0;
5075 }
5076 }
5077 }
5078 part { name: "mouse_over";
5079 clip_to: "disclip";
5080 mouse_events: 0;
5081 description { state: "default" 0.0;
5082 color: 255 255 255 0;
5083 rel1 {
5084 relative: 0.0 0.0;
5085 offset: -5 0;
5086 }
5087 rel2 {
5088 relative: 1.0 1.0;
5089 offset: 5 0;
5090 }
5091 image {
5092 normal: "images/menu_im2.png";
5093 border: 5 5 5 5;
5094 }
5095 }
5096 description { state: "selected" 0.0;
5097 inherit: "default" 0.0;
5098 color: 255 255 255 100;
5099 }
5100 }
5101 part { name: "bg";
5102 clip_to: "disclip";
5103 mouse_events: 0;
5104 description { state: "default" 0.0;
5105 color: 255 255 255 0;
5106 rel1 {
5107 relative: 0.0 0.0;
5108 offset: -5 0;
5109 }
5110 rel2 {
5111 relative: 1.0 1.0;
5112 offset: 5 0;
5113 }
5114 image {
5115 normal: "images/menu_im2.png";
5116 border: 5 5 5 5;
5117 }
5118 }
5119 description { state: "selected" 0.0;
5120 inherit: "default" 0.0;
5121 color: 255 255 255 255;
5122 }
5123 }
5124 part { name: "elm.swallow.pad";
5125 type: SWALLOW;
5126 description { state: "default" 0.0;
5127 fixed: 1 0;
5128 align: 0.0 0.5;
5129 rel1 {
5130 relative: 0.0 0.0;
5131 offset: 4 4;
5132 }
5133 rel2 {
5134 relative: 0.0 1.0;
5135 offset: 4 -5;
5136 }
5137 }
5138 }
5139 part { name: "elm.swallow.icon";
5140 clip_to: "disclip";
5141 type: SWALLOW;
5142 description { state: "default" 0.0;
5143 fixed: 1 0;
5144 align: 0.0 0.5;
5145 rel1 {
5146 to_x: "elm.swallow.pad";
5147 relative: 1.0 0.0;
5148 offset: -1 4;
5149 }
5150 rel2 {
5151 to_x: "elm.swallow.pad";
5152 relative: 1.0 1.0;
5153 offset: -1 -5;
5154 }
5155 }
5156 }
5157 part { name: "elm.swallow.end";
5158 clip_to: "disclip";
5159 type: SWALLOW;
5160 description { state: "default" 0.0;
5161 fixed: 1 0;
5162 align: 1.0 0.5;
5163 aspect: 1.0 1.0;
5164 aspect_preference: VERTICAL;
5165 rel1 {
5166 relative: 1.0 0.0;
5167 offset: -5 4;
5168 }
5169 rel2 {
5170 relative: 1.0 1.0;
5171 offset: -5 -5;
5172 }
5173 }
5174 }
5175 part { name: "elm.text";
5176 clip_to: "disclip";
5177 type: TEXT;
5178 effect: SOFT_SHADOW;
5179 mouse_events: 0;
5180 scale: 1;
5181 description {
5182 state: "default" 0.0;
5183 fixed: 1 1;
5184 rel1 {
5185 to_x: "elm.swallow.icon";
5186 relative: 1.0 0.0;
5187 offset: 0 4;
5188 }
5189 rel2 {
5190 to_x: "elm.swallow.end";
5191 relative: 0.0 1.0;
5192 offset: -1 -5;
5193 }
5194 color: 0 0 0 255;
5195 color3: 0 0 0 0;
5196 text {
5197 font: "DejaVuSans";
5198 size: 10;
5199 min: 1 1;
5200 align: 0.0 0.5;
5201 }
5202 }
5203 description { state: "selected" 0.0;
5204 inherit: "default" 0.0;
5205 color: 224 224 224 255;
5206 color: 255 255 255 255;
5207 }
5208 }
5041 part { 5209 part {
5042 name: "event"; 5210 name: "event";
5043 type: RECT; 5211 type: RECT;
5044 repeat_events: 1; 5212 repeat_events: 1;
5045 description { 5213 description {
5214 min: 0 40;
5046 state: "default" 0.0; 5215 state: "default" 0.0;
5047 color: 0 0 0 0; 5216 color: 0 0 0 0;
5048 } 5217 }
5049 } 5218 }
5050 part { name: "bg_item"; 5219 part { name: "disclip";
5220 type: RECT;
5221 description { state: "default" 0.0;
5222 rel1.to: "bg";
5223 rel2.to: "bg";
5224 }
5225 description { state: "disabled" 0.0;
5226 inherit: "default" 0.0;
5227 color: 255 255 255 64;
5228 }
5229 }
5230 }
5231 programs {
5232 // signal: elm,state,%s,active
5233 // a "check" item named %s went active
5234 // signal: elm,state,%s,passive
5235 // a "check" item named %s went passive
5236 // default is passive
5237 program {
5238 name: "go_active";
5239 signal: "elm,state,selected";
5240 source: "elm";
5241 action: STATE_SET "selected" 0.0;
5242 target: "bg";
5243 target: "elm.text";
5244 transition: SINUSOIDAL 0.2;
5245 }
5246 program {
5247 name: "go_passive";
5248 signal: "elm,state,unselected";
5249 source: "elm";
5250 action: STATE_SET "default" 0.0;
5251 target: "bg";
5252 target: "elm.text";
5253 transition: LINEAR 0.1;
5254 transition: DECELERATE 0.6;
5255 }
5256 program {
5257 name: "go_disabled";
5258 signal: "elm,state,disabled";
5259 source: "elm";
5260 action: STATE_SET "disabled" 0.0;
5261 target: "disclip";
5262 }
5263 program {
5264 name: "go_enabled";
5265 signal: "elm,state,enabled";
5266 source: "elm";
5267 action: STATE_SET "default" 0.0;
5268 target: "disclip";
5269 }
5270 program {
5271 name: "mouse_in";
5272 signal: "mouse,in";
5273 source: "event";
5274 action: STATE_SET "selected" 0.0;
5275 target: "mouse_over";
5276 }
5277 program {
5278 name: "mouse_out";
5279 signal: "mouse,out";
5280 source: "event";
5281 action: STATE_SET "default" 0.0;
5282 target: "mouse_over";
5283 }
5284 }
5285 }
5286
5287 group { name: "elm/genlist/tree/default/default";
5288 alias: "elm/genlist/tree_odd/default/default";
5289 alias: "elm/genlist/tree_compress/default/default";
5290 alias: "elm/genlist/tree_compress_odd/default/default";
5291 data.item: "stacking" "above";
5292 data.item: "selectraise" "on";
5293 data.item: "labels" "elm.text";
5294 data.item: "icons" "elm.swallow.icon elm.swallow.end";
5295 data.item: "treesize" "20";
5296 parts {
5297 part { name: "bg_item";
5051 mouse_events: 0; 5298 mouse_events: 0;
5052 description { state: "default" 0.0; 5299 description { state: "default" 0.0;
5053 fixed: 1 1; 5300 fixed: 1 1;
@@ -5095,7 +5342,7 @@ collections {
5095 } 5342 }
5096 description { state: "selected" 0.0; 5343 description { state: "selected" 0.0;
5097 inherit: "default" 0.0; 5344 inherit: "default" 0.0;
5098 color: 255 255 255 150; 5345 color: 255 255 255 100;
5099 } 5346 }
5100 } 5347 }
5101 part { name: "bg"; 5348 part { name: "bg";
@@ -5136,12 +5383,15 @@ collections {
5136 } 5383 }
5137 } 5384 }
5138 } 5385 }
5139 part { name: "elm.swallow.icon"; 5386 part { name: "arrow";
5140 clip_to: "disclip"; 5387 clip_to: "disclip";
5141 type: SWALLOW; 5388 ignore_flags: ON_HOLD;
5142 description { state: "default" 0.0; 5389 description { state: "default" 0.0;
5143 fixed: 1 0; 5390 fixed: 1 0;
5144 align: 0.0 0.5; 5391 align: 0.0 0.5;
5392 aspect: 1.0 1.0;
5393 min: 22 22;
5394 max: 22 22;
5145 rel1 { 5395 rel1 {
5146 to_x: "elm.swallow.pad"; 5396 to_x: "elm.swallow.pad";
5147 relative: 1.0 0.0; 5397 relative: 1.0 0.0;
@@ -5152,6 +5402,29 @@ collections {
5152 relative: 1.0 1.0; 5402 relative: 1.0 1.0;
5153 offset: -1 -5; 5403 offset: -1 -5;
5154 } 5404 }
5405 image.normal: "images/arrow_down.png";
5406 }
5407 description { state: "active" 0.0;
5408 inherit: "default" 0.0;
5409 image.normal: "images/arrow_right.png";
5410 }
5411 }
5412 part { name: "elm.swallow.icon";
5413 clip_to: "disclip";
5414 type: SWALLOW;
5415 description { state: "default" 0.0;
5416 fixed: 1 0;
5417 align: 0.0 0.5;
5418 rel1 {
5419 to_x: "arrow";
5420 relative: 1.0 0.0;
5421 offset: -1 4;
5422 }
5423 rel2 {
5424 to_x: "arrow";
5425 relative: 1.0 1.0;
5426 offset: -1 -5;
5427 }
5155 } 5428 }
5156 } 5429 }
5157 part { name: "elm.swallow.end"; 5430 part { name: "elm.swallow.end";
@@ -5206,6 +5479,16 @@ collections {
5206 color: 255 255 255 255; 5479 color: 255 255 255 255;
5207 } 5480 }
5208 } 5481 }
5482 part {
5483 name: "event";
5484 type: RECT;
5485 repeat_events: 1;
5486 description {
5487 min: 0 40;
5488 state: "default" 0.0;
5489 color: 0 0 0 0;
5490 }
5491 }
5209 part { name: "disclip"; 5492 part { name: "disclip";
5210 type: RECT; 5493 type: RECT;
5211 description { state: "default" 0.0; 5494 description { state: "default" 0.0;
@@ -5271,7 +5554,30 @@ collections {
5271 action: STATE_SET "default" 0.0; 5554 action: STATE_SET "default" 0.0;
5272 target: "mouse_over"; 5555 target: "mouse_over";
5273 } 5556 }
5557 program {
5558 name: "expand";
5559 signal: "mouse,up,1";
5560 source: "arrow";
5561 action: SIGNAL_EMIT "elm,action,expand,toggle" "elm";
5562 }
5563 program {
5564 name: "go_expanded";
5565 signal: "elm,state,expanded";
5566 source: "elm";
5567 action: STATE_SET "active" 0.0;
5568 target: "arrow";
5569 }
5570 program {
5571 name: "go_contracted";
5572 signal: "elm,state,contracted";
5573 source: "elm";
5574 action: STATE_SET "default" 0.0;
5575 target: "arrow";
5576 }
5274 } 5577 }
5275 } 5578 }
5579
5580
5581
5276} 5582}
5277 5583