summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Atton <jonathan.atton@gmail.com>2010-11-17 22:20:46 +0000
committerJonathan Atton <jonathan.atton@gmail.com>2010-11-17 22:20:46 +0000
commit5e40137fc370c83a78be3c6afdcbe0543ea0102f (patch)
tree3cc97b0fd1d5b885641bbf7a4c3477885e1881ac
parent6e9f4df5ddf6fd51b53e4a64de69c12ba2182c5c (diff)
detour-elm : add elm map
SVN revision: 54663
-rw-r--r--AUTHORS10
-rw-r--r--images.edc8
-rw-r--r--images/bubble.pngbin0 -> 2666 bytes
-rw-r--r--images/bubble_bottom.pngbin0 -> 603 bytes
-rw-r--r--images/bubble_content.pngbin0 -> 2158 bytes
-rw-r--r--images/map_item.pngbin0 -> 428 bytes
-rw-r--r--images/map_item2.pngbin0 -> 412 bytes
-rw-r--r--main.edc265
8 files changed, 276 insertions, 7 deletions
diff --git a/AUTHORS b/AUTHORS
index 06f6b8a..86d1f3a 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -6,4 +6,12 @@ Atton Jonathan (jonathan.atton@gmail.com)
6 6
7 7
8// 8//
9outdent-bottom.png and outdent-top.png come from the B&W elementary theme. 9
10Project: google-maps-icons
11http://code.google.com/p/google-maps-icons/
12licenses:
13 * GNU General Public License v3
14 * Creative Commons 3.0 BY-SA
15files:
16 * map_item.png
17 * map_item2.png
diff --git a/images.edc b/images.edc
index 583b83b..6d1fc07 100644
--- a/images.edc
+++ b/images.edc
@@ -60,3 +60,11 @@ image: "images/radio_bt0.png" COMP;
60image: "images/radio_bt1.png" COMP; 60image: "images/radio_bt1.png" COMP;
61image: "images/radio_bt2.png" COMP; 61image: "images/radio_bt2.png" COMP;
62 62
63
64//~ map
65image: "images/map_item.png" COMP;
66image: "images/map_item2.png" COMP;
67image: "images/bubble_content.png" COMP;
68image: "images/bubble_bottom.png" COMP;
69
70
diff --git a/images/bubble.png b/images/bubble.png
new file mode 100644
index 0000000..0360085
--- /dev/null
+++ b/images/bubble.png
Binary files differ
diff --git a/images/bubble_bottom.png b/images/bubble_bottom.png
new file mode 100644
index 0000000..1b40868
--- /dev/null
+++ b/images/bubble_bottom.png
Binary files differ
diff --git a/images/bubble_content.png b/images/bubble_content.png
new file mode 100644
index 0000000..f73cb87
--- /dev/null
+++ b/images/bubble_content.png
Binary files differ
diff --git a/images/map_item.png b/images/map_item.png
new file mode 100644
index 0000000..3cf5dfc
--- /dev/null
+++ b/images/map_item.png
Binary files differ
diff --git a/images/map_item2.png b/images/map_item2.png
new file mode 100644
index 0000000..3f6f670
--- /dev/null
+++ b/images/map_item2.png
Binary files differ
diff --git a/main.edc b/main.edc
index 4dec680..897f28d 100644
--- a/main.edc
+++ b/main.edc
@@ -79,6 +79,7 @@ collections {
79 alias: "elm/genlist/base/default"; 79 alias: "elm/genlist/base/default";
80 alias: "elm/carousel/base/default"; 80 alias: "elm/carousel/base/default";
81 alias: "elm/gengrid/base/default"; 81 alias: "elm/gengrid/base/default";
82 alias: "elm/map/base/default";
82 script { 83 script {
83 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer; 84 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
84 public timer0(val) { 85 public timer0(val) {
@@ -904,7 +905,7 @@ collections {
904 signal: "mouse,in"; 905 signal: "mouse,in";
905 source: "enabled_button"; 906 source: "enabled_button";
906 action: STATE_SET "visible" 0.0; 907 action: STATE_SET "visible" 0.0;
907 transition: DECELERATE 0.2; 908 transition: SINUSOIDAL 0.2;
908 target: "mouse_hover"; 909 target: "mouse_hover";
909 } 910 }
910 program { 911 program {
@@ -912,7 +913,7 @@ collections {
912 signal: "mouse,out"; 913 signal: "mouse,out";
913 source: "enabled_button"; 914 source: "enabled_button";
914 action: STATE_SET "default" 0.0; 915 action: STATE_SET "default" 0.0;
915 transition: DECELERATE 0.2; 916 transition: SINUSOIDAL 0.2;
916 target: "mouse_hover"; 917 target: "mouse_hover";
917 } 918 }
918 program { 919 program {
@@ -1379,7 +1380,7 @@ collections {
1379 signal: "mouse,in"; 1380 signal: "mouse,in";
1380 source: "enabled_button"; 1381 source: "enabled_button";
1381 action: STATE_SET "visible" 0.0; 1382 action: STATE_SET "visible" 0.0;
1382 transition: DECELERATE 0.2; 1383 transition: SINUSOIDAL 0.2;
1383 target: "mouse_hover"; 1384 target: "mouse_hover";
1384 } 1385 }
1385 program { 1386 program {
@@ -1387,7 +1388,7 @@ collections {
1387 signal: "mouse,out"; 1388 signal: "mouse,out";
1388 source: "enabled_button"; 1389 source: "enabled_button";
1389 action: STATE_SET "default" 0.0; 1390 action: STATE_SET "default" 0.0;
1390 transition: DECELERATE 0.2; 1391 transition: SINUSOIDAL 0.2;
1391 target: "mouse_hover"; 1392 target: "mouse_hover";
1392 } 1393 }
1393 program { 1394 program {
@@ -1482,7 +1483,7 @@ collections {
1482 action: STATE_SET "visible" 0.0; 1483 action: STATE_SET "visible" 0.0;
1483 target: "base"; 1484 target: "base";
1484 target: "enabled_button"; 1485 target: "enabled_button";
1485 transition: DECELERATE 0.2; 1486 transition: SINUSOIDAL 0.2;
1486 } 1487 }
1487 program { 1488 program {
1488 name: "button_mouse_out"; 1489 name: "button_mouse_out";
@@ -1491,7 +1492,7 @@ collections {
1491 action: STATE_SET "default" 0.0; 1492 action: STATE_SET "default" 0.0;
1492 target: "base"; 1493 target: "base";
1493 target: "enabled_button"; 1494 target: "enabled_button";
1494 transition: DECELERATE 0.2; 1495 transition: SINUSOIDAL 0.2;
1495 } 1496 }
1496 } 1497 }
1497 } 1498 }
@@ -6316,6 +6317,258 @@ collections {
6316 } 6317 }
6317 6318
6318 6319
6320 group { name: "elm/map/marker/radio/default";
6321 data {
6322 item: size_w 27;
6323 item: size_h 27;
6324 item: size_max_w 48;
6325 item: size_max_h 48;
6326 }
6327 parts {
6328 part { name: "whole";
6329 description { state: "default" 0.0;
6330 }
6331 }
6332 part { name: "base";
6333 ignore_flags: ON_HOLD;
6334 description { state: "default" 0.0;
6335 image.normal: "images/map_item.png";
6336 image.border: 6 6 5 8;
6337 }
6338 }
6339 part { name: "elm.icon";
6340 type: SWALLOW;
6341 clip_to: "whole";
6342 mouse_events: 0;
6343 description { state: "default" 0.0;
6344 rel1.relative: 0.27 0.27;
6345 rel2.relative: 0.73 0.73;
6346 }
6347 }
6348 part { name: "elm.text";
6349 type: TEXT;
6350 effect: SOFT_SHADOW;
6351 mouse_events: 0;
6352 scale: 1;
6353 description { state: "default" 0.0;
6354 align: 0.5 0.5;
6355 color: 224 224 224 255;
6356 color3: 0 0 0 64;
6357 rel1.relative: 0.28 0.25;
6358 rel2.relative: 0.75 0.75;
6359 text {
6360 font: "Sans,Edje-Vera";
6361 size: 10;
6362 min: 0 0;
6363 align: 0.5 0.5;
6364 }
6365 }
6366 }
6367 }
6368 programs {
6369 program { name: "open";
6370 signal: "mouse,clicked,1";
6371 source: "base";
6372 action: SIGNAL_EMIT "open" "elm";
6373 }
6374 program { name: "bringin";
6375 signal: "mouse,down,1,double";
6376 source: "base";
6377 action: SIGNAL_EMIT "bringin" "elm";
6378 }
6379 }
6380 }
6381
6382 group { name: "elm/map/marker/radio2/default";
6383 data {
6384 item: size_w 27;
6385 item: size_h 27;
6386 item: size_max_w 48;
6387 item: size_max_h 48;
6388 }
6389 parts {
6390 part { name: "whole";
6391 description { state: "default" 0.0;
6392 }
6393 }
6394 part { name: "base";
6395 ignore_flags: ON_HOLD;
6396 description { state: "default" 0.0;
6397 image.normal: "images/map_item2.png";
6398 image.border: 6 6 5 8;
6399 }
6400 }
6401 part { name: "elm.icon";
6402 type: SWALLOW;
6403 clip_to: "whole";
6404 mouse_events: 0;
6405 description { state: "default" 0.0;
6406 rel1.relative: 0.27 0.27;
6407 rel2.relative: 0.73 0.73;
6408 }
6409 }
6410 part { name: "elm.text";
6411 type: TEXT;
6412 effect: SOFT_SHADOW;
6413 mouse_events: 0;
6414 scale: 1;
6415 description { state: "default" 0.0;
6416 align: 0.5 0.5;
6417 color: 224 224 224 255;
6418 color3: 0 0 0 64;
6419 rel1.relative: 0.28 0.25;
6420 rel2.relative: 0.75 0.75;
6421 text {
6422 font: "Sans,Edje-Vera";
6423 size: 10;
6424 min: 0 0;
6425 align: 0.5 0.5;
6426 }
6427 }
6428 }
6429 }
6430 programs {
6431 program { name: "open";
6432 signal: "mouse,clicked,1";
6433 source: "base";
6434 action: SIGNAL_EMIT "open" "elm";
6435 }
6436 program { name: "bringin";
6437 signal: "mouse,down,1,double";
6438 source: "base";
6439 action: SIGNAL_EMIT "bringin" "elm";
6440 }
6441 }
6442 }
6443 group { name: "elm/map/marker/empty/default";
6444 data {
6445 item: size_w 27;
6446 item: size_h 27;
6447 item: size_max_w 48;
6448 item: size_max_h 48;
6449 }
6450 parts {
6451 part { name: "whole";
6452 description { state: "default" 0.0;
6453 }
6454 }
6455 part { name: "base";
6456 ignore_flags: ON_HOLD;
6457 description { state: "default" 0.0;
6458 }
6459 }
6460 part { name: "elm.icon";
6461 type: SWALLOW;
6462 clip_to: "whole";
6463 mouse_events: 0;
6464 description { state: "default" 0.0;
6465 }
6466 }
6467 part { name: "elm.text";
6468 type: TEXT;
6469 effect: SOFT_SHADOW;
6470 mouse_events: 0;
6471 scale: 1;
6472 description { state: "default" 0.0;
6473 align: 0.5 0.5;
6474 color: 224 224 224 255;
6475 color3: 0 0 0 64;
6476 rel1.relative: 0.28 0.25;
6477 rel2.relative: 0.75 0.75;
6478 text {
6479 font: "Sans,Edje-Vera";
6480 size: 10;
6481 min: 0 0;
6482 align: 0.5 0.5;
6483 }
6484 }
6485 }
6486 }
6487 programs {
6488 program { name: "open";
6489 signal: "mouse,clicked,1";
6490 source: "base";
6491 action: SIGNAL_EMIT "open" "elm";
6492 }
6493 program { name: "bringin";
6494 signal: "mouse,down,1,double";
6495 source: "base";
6496 action: SIGNAL_EMIT "bringin" "elm";
6497 }
6498 }
6499 }
6500 group { name: "elm/map/marker_bubble/default";
6501 data {
6502 item: size_w 400;
6503 item: size_h 100;
6504 }
6505 parts {
6506 part { name: "clipper";
6507 mouse_events: 1;
6508 description { state: "default" 0.0;
6509 color: 255 255 255 0;
6510 }
6511 description { state: "show" 0.0;
6512 inherit: "default" 0.0;
6513 color: 255 255 255 255;
6514 }
6515 }
6516 part { name: "base0";
6517 mouse_events: 0;
6518 clip_to: "clipper";
6519 description { state: "default" 0.0;
6520 rel2.offset: 0 -14;
6521 image {
6522 normal: "images/bubble_content.png";
6523 border: 18 16 18 12;
6524 }
6525 image.middle: SOLID;
6526 fill.smooth: 0;
6527 }
6528 }
6529 part { name: "base1";
6530 mouse_events: 0;
6531 clip_to: "clipper";
6532 description { state: "default" 0.0;
6533 rel1.to_y: "base0";
6534 rel1.relative: 0.5 1.0;
6535 rel2.relative: 0.5 1.0;
6536 align: 0.5 0.5;
6537 fixed: 1 0;
6538 min: 20 15;
6539 max: 20 15;
6540 image {
6541 normal: "images/bubble_bottom.png";
6542 border: 18 16 18 26;
6543 }
6544 image.middle: SOLID;
6545 fill.smooth: 0;
6546 }
6547 }
6548
6549 part { name: "elm.swallow.content";
6550 type: SWALLOW;
6551 clip_to: "clipper";
6552 description { state: "default" 0.0;
6553 align: 0.5 0.5;
6554 rel1 {
6555 offset: 9 8;
6556 }
6557 rel2 {
6558 offset: -10 -17;
6559 }
6560 }
6561 }
6562 }
6563 programs {
6564 program { name: "show";
6565 signal: "show";
6566 action: STATE_SET "show" 0.0;
6567 target: "clipper";
6568 transition: ACCELERATE 0.5;
6569 }
6570 }
6571 }
6319 6572
6320 6573
6321} 6574}