Dear bdilly, this is Daniel Juyung Seo. I'm curious why the contributor's name is missing.
Thank you. Best Regards, Daniel Juyung Seo. On Wed, Oct 13, 2010 at 5:38 AM, Enlightenment SVN <[email protected]> wrote: > Log: > Elementary Colorpicker, widget designed to select a color. > > This is one more widget whose idea come from Samsung set of > contributions to Elementary. > > > Author: bdilly > Date: 2010-10-12 13:38:00 -0700 (Tue, 12 Oct 2010) > New Revision: 53313 > > Added: > trunk/TMP/st/elementary/data/objects/colorpreview.edc > trunk/TMP/st/elementary/data/objects/grid_bg.png > trunk/TMP/st/elementary/data/themes/color_picker_alpha.png > trunk/TMP/st/elementary/data/themes/color_picker_alpha_bg.png > trunk/TMP/st/elementary/data/themes/color_picker_brightness.png > trunk/TMP/st/elementary/data/themes/color_picker_color.png > trunk/TMP/st/elementary/data/themes/color_picker_opacity.png > trunk/TMP/st/elementary/src/bin/test_colorpicker.c > trunk/TMP/st/elementary/src/lib/elm_colorpicker.c > Modified: > trunk/TMP/st/elementary/data/objects/Makefile.am > trunk/TMP/st/elementary/data/themes/Makefile.am > trunk/TMP/st/elementary/data/themes/default.edc > trunk/TMP/st/elementary/src/bin/Makefile.am > trunk/TMP/st/elementary/src/bin/test.c > trunk/TMP/st/elementary/src/lib/Elementary.h.in > trunk/TMP/st/elementary/src/lib/Makefile.am > > Modified: trunk/TMP/st/elementary/data/objects/Makefile.am > =================================================================== > --- trunk/TMP/st/elementary/data/objects/Makefile.am 2010-10-12 18:16:42 > UTC (rev 53312) > +++ trunk/TMP/st/elementary/data/objects/Makefile.am 2010-10-12 20:38:00 > UTC (rev 53313) > @@ -6,11 +6,12 @@ > > filesdir = $(datadir)/elementary/objects > > -files_DATA = test.edj multip.edj > +files_DATA = test.edj multip.edj colorpreview.edj > > EXTRA_DIST = \ > test.edc \ > multip.edc \ > +grid_bg.png \ > over.png \ > under.png \ > sky.jpg \ > @@ -26,6 +27,11 @@ > $(EDJE_CC) $(EDJE_FLAGS) \ > $(top_srcdir)/data/objects/multip.edc \ > $(top_builddir)/data/objects/multip.edj > + > +colorpreview.edj: Makefile $(EXTRA_DIST) > + $(EDJE_CC) $(EDJE_FLAGS) \ > + $(top_srcdir)/data/objects/colorpreview.edc \ > + $(top_builddir)/data/objects/colorpreview.edj > > clean-local: > rm -f *.edj > > > Property changes on: trunk/TMP/st/elementary/data/objects/grid_bg.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > Modified: trunk/TMP/st/elementary/data/themes/Makefile.am > =================================================================== > --- trunk/TMP/st/elementary/data/themes/Makefile.am 2010-10-12 18:16:42 > UTC (rev 53312) > +++ trunk/TMP/st/elementary/data/themes/Makefile.am 2010-10-12 20:38:00 > UTC (rev 53313) > @@ -200,7 +200,10 @@ > tooltip-edge-left-tip.png \ > tooltip-edge-bottom-tip.png \ > tooltip-edge-right-tip.png \ > -tooltip-corner-top-right-tip.png > +tooltip-corner-top-right-tip.png \ > +color_picker_brightness.png \ > +color_picker_color.png \ > +color_picker_opacity.png > > > default.edj: Makefile $(EXTRA_DIST) > > > Property changes on: > trunk/TMP/st/elementary/data/themes/color_picker_alpha.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: > trunk/TMP/st/elementary/data/themes/color_picker_alpha_bg.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: > trunk/TMP/st/elementary/data/themes/color_picker_brightness.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: > trunk/TMP/st/elementary/data/themes/color_picker_color.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > > Property changes on: > trunk/TMP/st/elementary/data/themes/color_picker_opacity.png > ___________________________________________________________________ > Added: svn:mime-type > + application/octet-stream > > Modified: trunk/TMP/st/elementary/data/themes/default.edc > =================================================================== > --- trunk/TMP/st/elementary/data/themes/default.edc 2010-10-12 18:16:42 > UTC (rev 53312) > +++ trunk/TMP/st/elementary/data/themes/default.edc 2010-10-12 20:38:00 > UTC (rev 53313) > @@ -27358,6 +27358,457 @@ > #undef CIT > #undef CH > > +//////////////////////////////////////////////////////////////////////////////// > +// colorpicker > +//////////////////////////////////////////////////////////////////////////////// > + group { name: "elm/colorpicker/bg/default"; > + parts { > + part { name: "elm.colorbar_0"; > + type: SWALLOW; > + mouse_events: 1; > + description { state: "default" 0.0; > + min: 120 30; > + rel1.relative: 0.0 (2/306); > + rel2.relative: 1.0 (78/306); > + } > + } > + part { name: "elm.colorbar_1"; > + type: SWALLOW; > + mouse_events: 1; > + description { state: "default" 0.0; > + min: 120 30; > + rel1.relative: 0.0 (78/306); > + rel2.relative: 1.0 (154/306); > + } > + } > + part { name: "elm.colorbar_2"; > + type: SWALLOW; > + mouse_events: 1; > + description { state: "default" 0.0; > + min: 120 30; > + rel1.relative: 0.0 (154/306); > + rel2.relative: 1.0 (230/306); > + } > + } > + part { name: "elm.colorbar_3"; > + type: SWALLOW; > + mouse_events: 1; > + description { state: "default" 0.0; > + min: 120 30; > + rel1.relative: 0.0 (230/306); > + rel2.relative: 1.0 (306/306); > + } > + } > + } > + } > + > + group { name: "elm/colorpicker/base/default"; > + parts { > + part { name: "elm.l_button"; > + type: SWALLOW; > + mouse_events: 1; > + scale: 1; > + description { state: "default" 0.0; > + min: 24 24; > + max: 24 24; > + fixed: 1 0; > + rel1 { > + relative: 0 (33/99); > + } > + rel2 { > + relative: 0 (66/99); > + } > + align: 0.0 0.5; > + } > + } > + part { name: "elm.r_button"; > + type: SWALLOW; > + mouse_events: 1; > + scale: 1; > + description { > + state: "default" 0.0; > + min: 24 24; > + max: 24 24; > + fixed: 1 0; > + rel1 { > + relative: 1 (33/99); > + } > + rel2 { > + relative: 1 (66/99); > + } > + align: 1.0 0.5; > + } > + } > + part { name: "elm.bar_bg"; > + type: SWALLOW; > + mouse_events: 0; > + description { state: "default" 0.0; > + max: 99999 22; > + min: 60 22; > + rel1 { > + relative: 0 (33/99); > + to_x: "elm.arrow_bg"; > + offset: 11 0; > + } > + rel2 { > + relative: 1 (66/99); > + to_x: "elm.arrow_bg"; > + offset: -11 0; > + } > + } > + } > + part { name: "elm.bar"; > + type: SWALLOW; > + mouse_events: 0; > + description { state: "default" 0.0; > + rel1.to: "elm.bar_bg"; > + rel2.to: "elm.bar_bg"; > + } > + } > + part { name: "elm.arrow_bg"; > + type: SWALLOW; > + mouse_events: 1; > + description { state: "default" 0.0; > + rel1 { > + relative: 1.0 (17/99); > + offset: -8 0; > + to_x: "elm.l_button"; > + } > + rel2 { > + relative: 0.0 (83/99); > + offset: 7 0; > + to_x: "elm.r_button"; > + } > + } > + } > + part { name: "elm.arrow"; > + type: SWALLOW; > + mouse_events: 1; > + scale: 1; > + description { state: "default" 0.0; > + min: 25 10; > + fixed: 1 1; > + rel1 { > + relative: 0 (17/99); > + to_x: "elm.arrow_bg"; > + } > + rel2 { > + relative: 0 (87/99); > + to_x: "elm.arrow_bg"; > + } > + } > + dragable { > + confine: "elm.arrow_bg"; > + x: 1 1 1530; > + y: 0 0 0; > + } > + } > + } > + } > + > + group{ name: "elm/colorpicker/image/colorbar_0"; > + images { > + image: "color_picker_color.png" COMP; > + } > + parts { > + part { name: "colorbar_0_image"; > + type: IMAGE; > + mouse_events: 1; > + description { state: "default" 0.0; > + rel2.offset: -1 -1; > + image.normal: "color_picker_color.png"; > + } > + } > + } > + } > + > + group { name: "elm/colorpicker/image/colorbar_1"; > + images { > + image: "color_picker_opacity.png" COMP; > + } > + parts { > + part { name: "colorbar_1_image"; > + type: IMAGE; > + mouse_events: 1; > + description { state: "default" 0.0; > + rel2.offset: -1 -1; > + image.normal: "color_picker_opacity.png"; > + } > + } > + } > + } > + > + group { name: "elm/colorpicker/image/colorbar_2"; > + images { > + image: "color_picker_brightness.png" COMP; > + } > + parts { > + part { name: "colorbar_2_image"; > + type: IMAGE; > + mouse_events: 1; > + description { state: "default" 0.0; > + rel2.offset: -1 -1; > + image.normal: "color_picker_brightness.png"; > + } > + } > + } > + } > + > + group { name: "elm/colorpicker/image/colorbar_3"; > + images { > + image: "color_picker_alpha.png" COMP; > + } > + parts { > + part { name: "colorbar_3_image"; > + type: IMAGE; > + mouse_events: 1; > + description { state: "default" 0.0; > + rel2.offset: -1 -1; > + image.normal: "color_picker_alpha.png"; > + } > + } > + } > + } > + > + group { name: "elm/colorpicker/bg_image/colorbar_3"; > + images { > + image: "color_picker_alpha_bg.png" COMP; > + } > + parts { > + part { name: "colorbar_3_image"; > + type: IMAGE; > + mouse_events: 1; > + description { state: "default" 0.0; > + rel2.offset: -1 -1; > + image.normal: "color_picker_alpha_bg.png"; > + } > + } > + } > + } > + > + group { name: "elm/colorpicker/image/updown"; > + images { > + image: "icon_arrow_down.png" COMP; > + } > + parts { > + part { name: "bg"; > + type: RECT; > + mouse_events: 1; > + description { state: "default" 0.0; > + color: 0 0 0 0; > + } > + } > + part { name: "arrow_image"; > + type: IMAGE; > + mouse_events: 1; > + description { state: "default" 0.0; > + rel2.offset: 0 -30; > + image.normal: "icon_arrow_down.png"; > + } > + } > + } > + } > + > + group { name: "elm/colorpicker/button/left"; > + images { > + image: "bt_base1.png" COMP; > + image: "bt_shine.png" COMP; > + image: "sp_bt_l.png" COMP; > + } > + parts { > + part { name: "button_image"; > + mouse_events: 1; > + description { state: "default" 0.0; > + image.normal: "bt_base1.png"; > + image.border: 6 6 6 6; > + image.middle: SOLID; > + } > + > + description { state: "clicked" 0.0; > + inherit: "default" 0.0; > + image.normal: "bt_shine.png"; > + image.border: 6 6 6 6; > + image.middle: SOLID; > + } > + } > + part { name: "btn_over"; > + type: IMAGE; > + mouse_events: 0; > + description { state: "default" 0.0; > + rel1.to: "button_image"; > + rel2 { > + relative: 1.0 0.5; > + to: "button_image"; > + } > + image { > + normal: "bt_hilight.png"; > + border: 7 7 7 0; > + } > + } > + } > + part { name: "btn_over2"; > + type: IMAGE; > + mouse_events: 1; > + repeat_events: 1; > + ignore_flags: ON_HOLD; > + description { state: "default" 0.0; > + rel1.to: "button_image"; > + rel2.to: "button_image"; > + image { > + normal: "bt_shine.png"; > + border: 7 7 7 7; > + } > + } > + } > + part { name: "focus_image"; > + type: IMAGE; > + description { state: "default" 0.0; > + color: 255 255 255 0; > + rel1.to: "button_image"; > + rel2.to: "button_image"; > + image { > + normal: "bt_glow.png"; > + border: 12 12 12 12; > + } > + fill.smooth: 0; > + > + } > + description { state: "clicked" 0.0; > + inherit: "default" 0.0; > + visible: 1; > + color: 255 255 255 255; > + } > + } > + part { name: "left_arrow"; > + mouse_events: 1; > + description { state: "default" 0.0; > + min: 16 16; > + max: 16 16; > + image.normal: "sp_bt_l.png"; > + } > + } > + } > + > + programs { > + program { > + name: "button_down"; > + signal: "elm,state,left,button,down"; > + source: "left_button"; > + action: STATE_SET "clicked" 0.0; > + target: "button_image"; > + target: "focus_image"; > + } > + program { > + name: "button_up"; > + signal: "elm,state,left,button,up"; > + source: "left_button"; > + action: STATE_SET "default" 0.0; > + target: "button_image"; > + target: "focus_image"; > + } > + } > + } > + > + group { name: "elm/colorpicker/button/right"; > + images { > + image: "bt_base1.png" COMP; > + image: "bt_shine.png" COMP; > + image: "sp_bt_r.png" COMP; > + } > + parts { > + part { name: "button_image"; > + mouse_events: 1; > + description { state: "default" 0.0; > + image.normal: "bt_base1.png"; > + image.border: 6 6 6 6; > + image.middle: SOLID; > + } > + > + description { state: "clicked" 0.0; > + inherit: "default" 0.0; > + image.normal: "bt_shine.png"; > + image.border: 6 6 6 6; > + image.middle: SOLID; > + } > + } > + part { name: "btn_over"; > + type: IMAGE; > + mouse_events: 0; > + description { state: "default" 0.0; > + rel1.to: "button_image"; > + rel2 { > + relative: 1.0 0.5; > + to: "button_image"; > + } > + image { > + normal: "bt_hilight.png"; > + border: 7 7 7 0; > + } > + } > + } > + part { name: "btn_over2"; > + type: IMAGE; > + mouse_events: 1; > + repeat_events: 1; > + ignore_flags: ON_HOLD; > + description { state: "default" 0.0; > + rel1.to: "button_image"; > + rel2.to: "button_image"; > + image { > + normal: "bt_shine.png"; > + border: 7 7 7 7; > + } > + } > + } > + part { name: "focus_image"; > + type: IMAGE; > + description { state: "default" 0.0; > + color: 255 255 255 0; > + rel1.to: "button_image"; > + rel2.to: "button_image"; > + image { > + normal: "bt_glow.png"; > + border: 12 12 12 12; > + } > + fill.smooth: 0; > + > + } > + description { state: "clicked" 0.0; > + inherit: "default" 0.0; > + visible: 1; > + color: 255 255 255 255; > + } > + } > + part { name: "right_arrow"; > + mouse_events: 1; > + description { state: "default" 0.0; > + min: 16 16; > + max: 16 16; > + image.normal: "sp_bt_r.png"; > + } > + } > + } > + > + programs { > + program { > + name: "button_down"; > + signal: "elm,state,right,button,down"; > + source: "right_button"; > + action: STATE_SET "clicked" 0.0; > + target: "button_image"; > + target: "focus_image"; > + } > + program { > + name: "button_up"; > + signal: "elm,state,right,button,up"; > + source: "right_button"; > + action: STATE_SET "default" 0.0; > + target: "button_image"; > + target: "focus_image"; > + } > + } > + } > + > ///////////////////////////////////////////////////////////////////////////// > // CURSOR > ///////////////////////////////////////////////////////////////////////////// > > Modified: trunk/TMP/st/elementary/src/bin/Makefile.am > =================================================================== > --- trunk/TMP/st/elementary/src/bin/Makefile.am 2010-10-12 18:16:42 UTC (rev > 53312) > +++ trunk/TMP/st/elementary/src/bin/Makefile.am 2010-10-12 20:38:00 UTC (rev > 53313) > @@ -88,7 +88,8 @@ > test_focus.c \ > test_focus2.c \ > test_flippicker.c \ > -test_diskpicker.c > +test_diskpicker.c \ > +test_colorpicker.c > > elementary_test_LDADD = $(top_builddir)/src/lib/libelementary.la > @ELEMENTARY_EWEATHER_LIBS@ > elementary_test_LDFLAGS = > > Modified: trunk/TMP/st/elementary/src/bin/test.c > =================================================================== > --- trunk/TMP/st/elementary/src/bin/test.c 2010-10-12 18:16:42 UTC (rev > 53312) > +++ trunk/TMP/st/elementary/src/bin/test.c 2010-10-12 20:38:00 UTC (rev > 53313) > @@ -91,6 +91,7 @@ > void test_focus2(void *data, Evas_Object *obj, void *event_info); > void test_flippicker(void *data, Evas_Object *obj, void *event_info); > void test_diskpicker(void *data, Evas_Object *obj, void *event_info); > +void test_colorpicker(void *data, Evas_Object *obj, void *event_info); > > struct elm_test > { > @@ -302,6 +303,7 @@ > ADD_TEST("Focus 2", test_focus2); > ADD_TEST("Flippicker", test_flippicker); > ADD_TEST("Diskpicker", test_diskpicker); > + ADD_TEST("Colorpicker", test_colorpicker); > #undef ADD_TEST > > if (autorun) > > Modified: trunk/TMP/st/elementary/src/lib/Elementary.h.in > =================================================================== > --- trunk/TMP/st/elementary/src/lib/Elementary.h.in 2010-10-12 18:16:42 > UTC (rev 53312) > +++ trunk/TMP/st/elementary/src/lib/Elementary.h.in 2010-10-12 20:38:00 > UTC (rev 53313) > @@ -1940,6 +1940,14 @@ > * "selected" - when item is selected (scroller stops) > */ > > + /* colorpicker */ > + EAPI Evas_Object *elm_colorpicker_add(Evas_Object *parent); > + EAPI void elm_colorpicker_color_set(Evas_Object *obj, int r, int g , int > b, int a); > + EAPI void elm_colorpicker_color_get(Evas_Object *obj, int *r, int *g , > int *b, int *a); > + /* smart callbacks called: > + * "clicked" - when bar or button is clicked > + */ > + > /* debug > * don't use it unless you are sure > */ > > Modified: trunk/TMP/st/elementary/src/lib/Makefile.am > =================================================================== > --- trunk/TMP/st/elementary/src/lib/Makefile.am 2010-10-12 18:16:42 UTC (rev > 53312) > +++ trunk/TMP/st/elementary/src/lib/Makefile.am 2010-10-12 20:38:00 UTC (rev > 53313) > @@ -84,6 +84,7 @@ > elm_calendar.c \ > elm_flippicker.c \ > elm_diskpicker.c \ > +elm_colorpicker.c \ > \ > elc_anchorblock.c \ > elc_anchorview.c \ > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
