aboutsummaryrefslogtreecommitdiffstats
path: root/data/edje_externals
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2010-04-08 20:36:37 +0000
committerGustavo Lima Chaves <glima@profusion.mobi>2010-04-08 20:36:37 +0000
commit7ac62f3043ada908881cb045625468261dea4c4d (patch)
tree62b2231d773bdaadfe5c375257ab47c75f94284a /data/edje_externals
parentAssorted fixes to slideshow in lib and externals (diff)
downloadelementary-7ac62f3043ada908881cb045625468261dea4c4d.tar.gz
Welcome a new Elementary widget: file selector button.
This is an elm button extended to launch a file selector on click and to callback_call registered funcs when selection is completed. Many uses may arise from it, but as a fresh 1st example here comes the first (primitive, but cool) video player in edje: externals { external: "emotion"; external: "elm"; } collections { group { name: "main"; parts { part { name: "video"; type: EXTERNAL; source: "emotion"; description { state: "default" 0; rel1 { offset: 10 10; } rel2 { offset: -11 -61; } params { choice: "engine" "gstreamer"; } } } part { name: "play"; type: RECT; description { state: "default" 0; color: 0 255 0 128; rel1 { relative: 0 1; offset: 10 -51; } rel2 { relative: 0.3 1; offset: -6 -11; } } } part { name: "pause"; type: RECT; description { state: "default" 0; color: 255 0 0 128; rel1 { relative: 0.3 1; offset: 5 -51; } rel2 { relative: 0.6 1; offset: -6 -11; } } } part { name: "file_sel_btn"; type: EXTERNAL; source: "elm/fileselector_button"; description { state: "default" 0; rel1 { relative: 0.6 1; offset: 5 -51; } rel2 { offset: -11 -11; } params { string: "label" "open file"; string: "icon" "file"; } } } programs { program { signal: "mouse,clicked,1"; source: "play"; after: "do_play"; } program { name: "do_play"; action: PARAM_SET "video" "play" "1"; } program { signal: "mouse,clicked,1"; source: "pause"; action: PARAM_SET "video" "play" "0"; } program { signal: "file,chosen"; source: "file_sel_btn"; action: PARAM_COPY "file_sel_btn" "path" "video" "file"; after: "do_play"; } } } } } Enjoy. I've seen bugs on the fileselector itself wrt to list selection logic. I'll dig into then soon. SVN revision: 47846
Diffstat (limited to 'data/edje_externals')
-rw-r--r--data/edje_externals/Makefile.am5
-rw-r--r--data/edje_externals/ico_fileselector_button.pngbin0 -> 198 bytes
-rw-r--r--data/edje_externals/icons.edc4
3 files changed, 5 insertions, 4 deletions
diff --git a/data/edje_externals/Makefile.am b/data/edje_externals/Makefile.am
index 621870562..6de0e2880 100644
--- a/data/edje_externals/Makefile.am
+++ b/data/edje_externals/Makefile.am
@@ -16,6 +16,7 @@ ico_button.png \
ico_check.png \
ico_clock.png \
ico_fileselector.png \
+ico_fileselector_button.png \
ico_genlist.png \
ico_hoversel.png \
ico_map.png \
@@ -25,11 +26,11 @@ ico_progressbar.png \
ico_radio.png \
ico_scrolled_entry.png \
ico_slider.png \
+ico_slideshow.png \
ico_spinner.png \
ico_thumb.png \
ico_toggle.png \
-ico_toolbar.png \
-ico_slideshow.png
+ico_toolbar.png
icons.edj: Makefile $(EXTRA_DIST)
$(EDJE_CC) $(EDJE_FLAGS) \
diff --git a/data/edje_externals/ico_fileselector_button.png b/data/edje_externals/ico_fileselector_button.png
new file mode 100644
index 000000000..6b5c7734d
--- /dev/null
+++ b/data/edje_externals/ico_fileselector_button.png
Binary files differ
diff --git a/data/edje_externals/icons.edc b/data/edje_externals/icons.edc
index ba7cf7b86..4bccee283 100644
--- a/data/edje_externals/icons.edc
+++ b/data/edje_externals/icons.edc
@@ -17,6 +17,7 @@ ICON("button")
ICON("check")
ICON("clock")
ICON("fileselector")
+ICON("fileselector_button")
ICON("genlist")
ICON("hoversel")
ICON("map")
@@ -26,9 +27,8 @@ ICON("progressbar")
ICON("radio")
ICON("scrolled_entry")
ICON("slider")
+ICON("slideshow")
ICON("spinner")
ICON("thumb")
ICON("toggle")
ICON("toolbar")
-ICON("slideshow")
-