Enlightenment CVS committal Author : rephorm Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: Makefile.am e_includes.h e_test.c Added Files: e_color.c e_color.h e_spectrum.c e_spectrum.h e_widget_csel.c e_widget_csel.h e_widget_cslider.c e_widget_cslider.h e_widget_spectrum.c e_widget_spectrum.h Log Message: Start of a color selector. Change the last test in e_test.c to #if 1 to play. Issues: Redrawing the H,S and V spectra is a bit slow. Needs to be optimized. Spacing / Sizing of the various pieces of the csel widget needs to be cleaned up a bit. I haven't actually themed anything yet. Just some fairly basic place holders to get it working. We should wrap each piece in shadowed cutout graphic, and make fancier cursors. A color well widget - show the currently selected color - allows dnd of colors (this probably requires some reworking of ecore selection code) For anyone wanting to play with this, a single E_Color struct is used by all parts of the selector, preventing the need to copy values around. This includes RGB *and* HSV values since the two spaces aren't 1:1. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/Makefile.am,v retrieving revision 1.134 retrieving revision 1.135 diff -u -3 -r1.134 -r1.135 --- Makefile.am 11 Aug 2006 21:48:18 -0000 1.134 +++ Makefile.am 14 Aug 2006 04:38:49 -0000 1.135 @@ -167,6 +167,11 @@ e_sha1.h \ e_widget_fsel.h \ e_fm_mime.h \ +e_color.h \ +e_spectrum.h \ +e_widget_spectrum.h \ +e_widget_cslider.h \ +e_widget_csel.h \ e_int_config_wallpaper.h \ e_int_config_wallpaper_import.h @@ -311,6 +316,11 @@ e_sha1.c \ e_widget_fsel.c \ e_fm_mime.c \ +e_color.c \ +e_spectrum.c \ +e_widget_spectrum.c \ +e_widget_cslider.c \ +e_widget_csel.c \ e_int_config_wallpaper.c \ e_int_config_wallpaper_import.c \ $(ENLIGHTENMENTHEADERS) =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_includes.h,v retrieving revision 1.113 retrieving revision 1.114 diff -u -3 -r1.113 -r1.114 --- e_includes.h 11 Aug 2006 21:48:18 -0000 1.113 +++ e_includes.h 14 Aug 2006 04:38:49 -0000 1.114 @@ -145,3 +145,8 @@ #include "e_fm_mime.h" #include "e_int_config_wallpaper.h" #include "e_int_config_wallpaper_import.h" +#include "e_color.h" +#include "e_spectrum.h" +#include "e_widget_spectrum.h" +#include "e_widget_cslider.h" +#include "e_widget_csel.h" =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_test.c,v retrieving revision 1.62 retrieving revision 1.63 diff -u -3 -r1.62 -r1.63 --- e_test.c 13 Aug 2006 02:51:34 -0000 1.62 +++ e_test.c 14 Aug 2006 04:38:49 -0000 1.63 @@ -331,7 +331,7 @@ e_dialog_title_set(dia, "A Test Dialog"); o = e_icon_add(dia->win->evas); - e_icon_file_set(o, "/home/raster/t.png"); + e_icon_file_set(o, "/home/rephorm/scroll.png"); evas_object_resize(o, 1024, 768); evas_object_focus_set(o, 1); evas_object_show(o); @@ -793,6 +793,29 @@ e_win_resize(dia->win, 400, 300); } +#elif 0 +static void +_e_test_internal(E_Container *con) +{ + E_Dialog *dia; + Evas_Object *o; + Evas_Coord mw, mh; + + dia = e_dialog_new(con); + e_dialog_title_set(dia, "Test Color Selector"); + o = e_widget_csel_add(dia->win->evas); + evas_object_show(o); + e_widget_min_size_get(o, &mw, &mh); + e_dialog_content_set(dia, o, mw, mh); + + /* buttons at the bottom */ + e_dialog_button_add(dia, "OK", NULL, NULL, NULL); + e_dialog_resizable_set(dia, 1); + e_win_centered_set(dia->win, 1); + e_dialog_show(dia); + e_win_resize(dia->win, 460, 230); +} + #else static void _e_test_internal(E_Container *con) ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs