summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--euphoria/simple/Vera.ttfbin0 -> 65932 bytes
-rwxr-xr-xeuphoria/simple/build.sh2
-rw-r--r--euphoria/simple/close.pngbin0 -> 248 bytes
-rw-r--r--euphoria/simple/eject.pngbin0 -> 918 bytes
-rw-r--r--euphoria/simple/images.edc8
-rw-r--r--euphoria/simple/main.pngbin0 -> 1426 bytes
-rw-r--r--euphoria/simple/next.pngbin0 -> 913 bytes
-rw-r--r--euphoria/simple/parts.edc313
-rw-r--r--euphoria/simple/pause.pngbin0 -> 921 bytes
-rw-r--r--euphoria/simple/play.pngbin0 -> 888 bytes
-rw-r--r--euphoria/simple/playlist.pngbin0 -> 4664 bytes
-rw-r--r--euphoria/simple/playlist_item_parts.edc87
-rw-r--r--euphoria/simple/playlist_item_progs.edc30
-rw-r--r--euphoria/simple/playlist_parts.edc46
-rw-r--r--euphoria/simple/playlist_progs.edc12
-rw-r--r--euphoria/simple/prev.pngbin0 -> 934 bytes
-rw-r--r--euphoria/simple/progs.edc128
-rw-r--r--euphoria/simple/simple.edc75
18 files changed, 701 insertions, 0 deletions
diff --git a/euphoria/simple/Vera.ttf b/euphoria/simple/Vera.ttf
new file mode 100644
index 0000000..58cd6b5
--- /dev/null
+++ b/euphoria/simple/Vera.ttf
Binary files differ
diff --git a/euphoria/simple/build.sh b/euphoria/simple/build.sh
new file mode 100755
index 0000000..d0a1b1b
--- /dev/null
+++ b/euphoria/simple/build.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+edje_cc $@ --image_dir . --font_dir . simple.edc -o simple.edj
diff --git a/euphoria/simple/close.png b/euphoria/simple/close.png
new file mode 100644
index 0000000..542bdbd
--- /dev/null
+++ b/euphoria/simple/close.png
Binary files differ
diff --git a/euphoria/simple/eject.png b/euphoria/simple/eject.png
new file mode 100644
index 0000000..1f2bf03
--- /dev/null
+++ b/euphoria/simple/eject.png
Binary files differ
diff --git a/euphoria/simple/images.edc b/euphoria/simple/images.edc
new file mode 100644
index 0000000..ac3ef22
--- /dev/null
+++ b/euphoria/simple/images.edc
@@ -0,0 +1,8 @@
+ image, "main.png" RAW;
+ image, "prev.png" RAW;
+ image, "next.png" RAW;
+ image, "play.png" RAW;
+ image, "pause.png" RAW;
+ image, "eject.png" RAW;
+ image, "playlist.png" RAW;
+ image, "close.png" RAW;
diff --git a/euphoria/simple/main.png b/euphoria/simple/main.png
new file mode 100644
index 0000000..5e756f8
--- /dev/null
+++ b/euphoria/simple/main.png
Binary files differ
diff --git a/euphoria/simple/next.png b/euphoria/simple/next.png
new file mode 100644
index 0000000..5c07eff
--- /dev/null
+++ b/euphoria/simple/next.png
Binary files differ
diff --git a/euphoria/simple/parts.edc b/euphoria/simple/parts.edc
new file mode 100644
index 0000000..ebc3cd7
--- /dev/null
+++ b/euphoria/simple/parts.edc
@@ -0,0 +1,313 @@
+/*** Minimized Interface for Default theme - by digitalfallout ***/
+ part {
+ name, "background";
+ mouse_events, 0;
+ repeat_events, 1;
+ type, IMAGE;
+
+ description {
+ min, 300 30;
+ max, 300 30;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "main.png";
+ border, 0 0 0 0;
+ }
+ fill {
+ smooth, 0;
+ }
+ }
+ }
+ part {
+ name, "song_name";
+ mouse_events, 1;
+ type, TEXT;
+ description {
+ color, 76 67 88 255;
+ state, "default" 0.0;
+ visible, 1;
+ rel1 {
+ relative, 0 0;
+ offset, 45 11;
+ }
+ rel2 {
+ relative, 0 0;
+ offset, 160 20;
+ }
+ text {
+ text, "song";
+ font, "Vera";
+ size, 10;
+ align, 0 0;
+ }
+ }
+ }
+ part {
+ name, "player.time";
+ mouse_events, 0;
+ type, TEXT;
+ description {
+ color, 76 67 88 255;
+ state, "default" 0.0;
+ visible, 1;
+ rel1 {
+ relative, 0 0;
+ offset, 10 10;
+ }
+ rel2 {
+ relative, 0 0;
+ offset, 45 20;
+ }
+ text {
+ text, "00:00";
+ font, "Vera";
+ size, 12;
+ align, 0 0;
+ }
+ }
+ }
+ /***** begin play button *****/
+ part {
+ name, "play_button";
+ mouse_events, 1;
+ type, IMAGE;
+ description {
+ min, 23 25;
+ max, 23 25;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 60 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "play.png";
+ }
+ }
+ description {
+ min, 22 24;
+ max, 22 24;
+ state, "clicked" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 60 -2;
+ }
+ image {
+ normal, "play.png";
+ }
+ }
+ }
+ /***** end pause button *****/
+
+ /***** begin pause button *****/
+ part {
+ name, "pause_button";
+ mouse_events, 1;
+ type, IMAGE;
+ description {
+ min, 23 25;
+ max, 23 25;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 110 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "pause.png";
+ }
+ }
+ description {
+ min, 22 24;
+ max, 22 24;
+ state, "clicked" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 110 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "pause.png";
+ }
+ }
+ }
+ /***** end pause button *****/
+
+ /***** begin previous button *****/
+ part {
+ name, "previous_button";
+ mouse_events, 1;
+ type, IMAGE;
+ description {
+ min, 23 25;
+ max, 23 25;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 160 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "prev.png";
+ }
+ }
+ description {
+ min, 22 24;
+ max, 22 24;
+ state, "clicked" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 160 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "prev.png";
+ }
+ }
+ }
+ /***** end previous button *****/
+
+ /***** begin next button *****/
+ part {
+ name, "next_button";
+ mouse_events, 1;
+ type, IMAGE;
+ description {
+ min, 23 25;
+ max, 23 25;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 210 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "next.png";
+ }
+ }
+ description {
+ min, 22 24;
+ max, 22 24;
+ state, "clicked" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 210 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "next.png";
+ }
+ }
+ }
+ /***** end next button *****/
+
+ /***** begin playlist button *****/
+ part {
+ name, "playlistOpenner";
+ mouse_events, 1;
+ type, IMAGE;
+ description {
+ min, 23 25;
+ max, 23 25;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 260 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "eject.png";
+ }
+ }
+ description {
+ min, 22 24;
+ max, 22 24;
+ state, "clicked" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 260 -2;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "eject.png";
+ }
+ }
+ }
+
+ /***** end playlist button *****/
+
+ /***** begin close button *****/
+ part {
+ name, "close_button";
+ mouse_events, 1;
+ type, IMAGE;
+ description {
+ min, 7 7;
+ max, 7 7;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 287 -20;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "close.png";
+ }
+ }
+ description {
+ min, 22 24;
+ max, 22 24;
+ state, "clicked" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 287 -20;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "close.png";
+ }
+ }
+ }
+ /***** end quit button *****/
+/************** EOF ********************/
diff --git a/euphoria/simple/pause.png b/euphoria/simple/pause.png
new file mode 100644
index 0000000..ef2176c
--- /dev/null
+++ b/euphoria/simple/pause.png
Binary files differ
diff --git a/euphoria/simple/play.png b/euphoria/simple/play.png
new file mode 100644
index 0000000..88bc352
--- /dev/null
+++ b/euphoria/simple/play.png
Binary files differ
diff --git a/euphoria/simple/playlist.png b/euphoria/simple/playlist.png
new file mode 100644
index 0000000..93ec229
--- /dev/null
+++ b/euphoria/simple/playlist.png
Binary files differ
diff --git a/euphoria/simple/playlist_item_parts.edc b/euphoria/simple/playlist_item_parts.edc
new file mode 100644
index 0000000..aaf6968
--- /dev/null
+++ b/euphoria/simple/playlist_item_parts.edc
@@ -0,0 +1,87 @@
+ part {
+ name, "title";
+ type, TEXT;
+ mouse_events, 1;
+ description {
+ state, "default" 0.0;
+ color, 0 0 0 128;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 5 0;
+ }
+ rel2 {
+ to_x, "duration";
+ relative, 0.0 1.0;
+ offset, -5 0;
+ }
+ text {
+ text, "title";
+ font, "Vera";
+ size, 12;
+ align, 0.0 0.0;
+ }
+ }
+ description {
+ state, "selected" 0.0;
+ color, 0 0 0 255;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 5 0;
+ }
+ rel2 {
+ to_x, "duration";
+ relative, 0.0 1.0;
+ offset, -5 0;
+ }
+ text {
+ text, "title";
+ font, "Vera";
+ size, 12;
+ align, 0.0 0.0;
+ }
+ }
+ }
+ part {
+ name, "duration";
+ type, TEXT;
+ mouse_events, 1;
+ description {
+ state, "default" 0.0;
+ color, 0 0 0 128;
+ rel1 {
+ relative, 1.0 0.0;
+ offset, -30 0;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -5 -1;
+ }
+ text {
+ text, "00:00";
+ font, "Vera";
+ size, 12;
+ min, 1 1;
+ align, 1.0 0.0;
+ }
+ }
+ description {
+ state, "selected" 0.0;
+ color, 0 0 0 255;
+ rel1 {
+ relative, 1.0 0.0;
+ offset, -30 0;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, -5 -1;
+ }
+ text {
+ text, "00:00";
+ font, "Vera";
+ size, 12;
+ min, 1 1;
+ align, 1.0 0.0;
+ }
+ }
+ }
+
diff --git a/euphoria/simple/playlist_item_progs.edc b/euphoria/simple/playlist_item_progs.edc
new file mode 100644
index 0000000..4a8285a
--- /dev/null
+++ b/euphoria/simple/playlist_item_progs.edc
@@ -0,0 +1,30 @@
+ program {
+ name, "selected_mouse";
+ signal, "mouse,clicked,1";
+ source, "*";
+ action, SIGNAL_EMIT "PLAYLIST_ITEM_SELECTED" "";
+ }
+ program {
+ name, "selected";
+ signal, "PLAYLIST_ITEM_SELECTED";
+ source, "";
+ action, STATE_SET "selected" 0.0;
+ transition, DECELERATE 0.5;
+ target, "title";
+ target, "duration";
+ }
+ program {
+ name, "unselected";
+ signal, "PLAYLIST_ITEM_UNSELECTED";
+ source, "";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE 0.5;
+ target, "title";
+ target, "duration";
+ }
+ program {
+ name, "play_it";
+ signal, "mouse,down,1,double";
+ source, "*";
+ action, SIGNAL_EMIT "PLAYLIST_ITEM_PLAY" "";
+ }
diff --git a/euphoria/simple/playlist_parts.edc b/euphoria/simple/playlist_parts.edc
new file mode 100644
index 0000000..4e754b2
--- /dev/null
+++ b/euphoria/simple/playlist_parts.edc
@@ -0,0 +1,46 @@
+ part {
+ name, "bg";
+ mouse_events, 0;
+ repeat_events, 1;
+ type, IMAGE;
+
+ description {
+ min, 300 400;
+ max, 300 400;
+ state, "default" 0.0;
+ rel1 {
+ relative, 0.0 0.0;
+ offset, 0 0;
+ }
+ rel2 {
+ relative, 1.0 1.0;
+ offset, 0 0;
+ }
+ image {
+ normal, "playlist.png";
+ border, 0 0 0 0;
+ }
+ fill {
+ smooth, 0;
+ }
+ }
+ }
+ part {
+ name, "playlist.container";
+ type, SWALLOW;
+ mouse_events, 1;
+ repeat_events, 1;
+ description {
+ state, "default" 0.0;
+ color, 0 0 0 0;
+ max, 0 0;
+ rel1 {
+ relative, 0 0;
+ offset, 0 0;
+ }
+ rel2 {
+ relative, 1 1;
+ offset, -1 -1;
+ }
+ }
+ }
diff --git a/euphoria/simple/playlist_progs.edc b/euphoria/simple/playlist_progs.edc
new file mode 100644
index 0000000..03bc809
--- /dev/null
+++ b/euphoria/simple/playlist_progs.edc
@@ -0,0 +1,12 @@
+ program {
+ name, "scroll_up";
+ signal, "mouse,wheel,0,-1";
+ source, "*";
+ action, SIGNAL_EMIT "PLAYLIST_SCROLL_UP" "";
+ }
+ program {
+ name, "scroll_down";
+ signal, "mouse,wheel,0,1";
+ source, "*";
+ action, SIGNAL_EMIT "PLAYLIST_SCROLL_DOWN" "";
+ }
diff --git a/euphoria/simple/prev.png b/euphoria/simple/prev.png
new file mode 100644
index 0000000..f31cc82
--- /dev/null
+++ b/euphoria/simple/prev.png
Binary files differ
diff --git a/euphoria/simple/progs.edc b/euphoria/simple/progs.edc
new file mode 100644
index 0000000..134f77e
--- /dev/null
+++ b/euphoria/simple/progs.edc
@@ -0,0 +1,128 @@
+/*** Minimized Interface for Default theme - by digitalfallout ***/
+ /* Play */
+ program {
+ name, "play_click";
+ signal, "mouse,down,1";
+ source, "play_button";
+ action, STATE_SET "clicked" 0.0;
+ transition, LINEAR 0.0;
+ target, "play_button";
+ }
+
+ program {
+ name, "play_unclick";
+ signal, "mouse,up,1";
+ source, "play_button";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE 0.25;
+ target, "play_button";
+ }
+ program {
+ name, "play_click_emission";
+ signal, "mouse,up,1";
+ source, "play_button";
+ action, SIGNAL_EMIT "playback.play" "play_button";
+ }
+
+ /* Pause */
+ program {
+ name, "pause_click";
+ signal, "mouse,down,1";
+ source, "pause_button";
+ action, STATE_SET "clicked" 0.0;
+ transition, LINEAR 0.0;
+ target, "pause_button";
+ }
+
+ program {
+ name, "pause_unclick";
+ signal, "mouse,up,1";
+ source, "pause_button";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE 0.25;
+ target, "pause_button";
+ }
+ program {
+ name, "pause_click_emission";
+ signal, "mouse,up,1";
+ source, "pause_button";
+ action, SIGNAL_EMIT "playback.pause" "pause_button";
+ }
+
+ /* Previous */
+ program {
+ name, "previous_click";
+ signal, "mouse,down,1";
+ source, "previous_button";
+ action, STATE_SET "clicked" 0.0;
+ transition, LINEAR 0.0;
+ target, "previous_button";
+ }
+
+ program {
+ name, "previous_unclick";
+ signal, "mouse,up,1";
+ source, "previous_button";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE 0.25;
+ target, "previous_button";
+ }
+ program {
+ name, "previous_click_emission";
+ signal, "mouse,up,1";
+ source, "previous_button";
+ action, SIGNAL_EMIT "playback.prev" "previous_button";
+ }
+
+ /* Next */
+ program {
+ name, "next_click";
+ signal, "mouse,down,1";
+ source, "next_button";
+ action, STATE_SET "clicked" 0.0;
+ transition, LINEAR 0.0;
+ target, "next_button";
+ }
+
+ program {
+ name, "next_unclick";
+ signal, "mouse,up,1";
+ source, "next_button";
+ action, STATE_SET "default" 0.0;
+ transition, DECELERATE 0.25;
+ target, "next_button";
+ }
+ program {
+ name, "next_click_emission";
+ signal, "mouse,up,1";
+ source, "next_button";
+ action, SIGNAL_EMIT "playback.next" "next_button";
+ }
+ /* Playlist */
+ program {
+ name, "playlistOpen";
+ signal, "mouse,down,1";
+ source, "playlistOpenner";
+ action, SIGNAL_EMIT "playlist.open" "playlistOpenner";
+ }
+/*
+ program {
+ name, "scroll_up";
+ signal, "mouse,wheel,0,-1";
+ source, "playlistGrabber";
+ action, SIGNAL_EMIT "PLAYLIST_SCROLL_UP" "";
+ }
+ program {
+ name, "scroll_down";
+ signal, "mouse,wheel,0,1";
+ source, "playlistGrabber";
+ action, SIGNAL_EMIT "PLAYLIST_SCROLL_DOWN" "";
+ }
+ /* Close */
+ program {
+ name, "close_click_emission";
+ signal, "mouse,up,1";
+ source, "close_button";
+ action, SIGNAL_EMIT "close" "close_button";
+ }
+/********* FIN *****************/
diff --git a/euphoria/simple/simple.edc b/euphoria/simple/simple.edc
new file mode 100644
index 0000000..1e856c0
--- /dev/null
+++ b/euphoria/simple/simple.edc
@@ -0,0 +1,75 @@
+#if defined __COMMON_INC
+#endinput
+#endif
+#define __COMMON_INC
+
+#define MSG_ID_SET_SONGNAME 0
+
+fonts {
+ font, "Vera.ttf" "Vera";
+}
+
+images {
+ #include "images.edc"
+}
+
+collections {
+ group {
+ name, "euphoria";
+ min, 300 30;
+ min, 300 30;
+ data {
+ item, "has_separate_playlist" "yes";
+ }
+ script {
+ public message (Msg_Type:type, id, ...) {
+ switch (id) {
+ case MSG_ID_SET_SONGNAME: {
+ new buf[128];
+ if (type != MSG_STRING_SET || numargs () < 5) return;
+
+ //getsarg (2, buf, 128);
+ //set_text (PART:"artist_name", buf);
+
+ getsarg (3, buf, 128);
+ set_text (PART:"song_name", buf);
+
+ //getsarg (4, buf, 128);
+ //set_text (PART:"album_name", buf);
+ }
+ }
+ }
+ }
+
+ parts {
+ #include "parts.edc"
+ }
+ programs {
+ #include "progs.edc"
+ }
+ }
+ group {
+ name, "playlist";
+ min, 300 400;
+ max, 300 400;
+ parts {
+ #include "playlist_parts.edc"
+ }
+ programs {
+ #include "playlist_progs.edc"
+ }
+ }
+ group {
+ name, "playlist_item";
+ min, 300 400;
+ max, 300 400;
+ parts {
+ #include "playlist_item_parts.edc"
+ }
+ programs {
+ #include "playlist_item_progs.edc"
+ }
+ }
+
+}
+