Enlightenment CVS committal Author : andreas Project : e17 Module : proto
Dir : e17/proto/eflpp/examples/esmart/textentry Modified Files: Makefile.am main.cpp Log Message: - improved EsmartTextEntry and example - abstract EvasEsmart class that eases Esmart object creation - New EvasEsmartGroup with sample implementation of the EvasEsmart class (not complete) =================================================================== RCS file: /cvs/e/e17/proto/eflpp/examples/esmart/textentry/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- Makefile.am 3 Jul 2007 22:42:33 -0000 1.1 +++ Makefile.am 10 Jul 2007 21:38:09 -0000 1.2 @@ -6,6 +6,7 @@ @PACKAGE_CFLAGS@ \ -I$(top_srcdir)/src/ecore/ \ -I$(top_srcdir)/src/evas/ \ + -I$(top_srcdir)/src/edje/ \ -I$(top_srcdir)/src/esmart/ \ -I$(top_srcdir)/src/common/ \ -Wall =================================================================== RCS file: /cvs/e/e17/proto/eflpp/examples/esmart/textentry/main.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- main.cpp 3 Jul 2007 22:42:33 -0000 1.1 +++ main.cpp 10 Jul 2007 21:38:09 -0000 1.2 @@ -1,9 +1,10 @@ #include <eflpp_ecore.h> #include <eflpp_evas.h> -#include <eflpp_esmart.h> +#include <eflpp_edje.h> +#include <eflpp_esmart_textentry.h> -#define WIDTH 240 -#define HEIGHT 320 +#define WIDTH 300 +#define HEIGHT 30 using namespace efl; @@ -25,9 +26,17 @@ rect->setLayer( 0 ); rect->show(); - EvasEsmartTextEntry* passwd = new EvasEsmartTextEntry( 50, 50, 100, 10, evas ); + EvasEdje* edje = new EvasEdje( 0, 0, PACKAGE_DATA_DIR "/edjes/esmart_text_entry_test.edj", "text_entry", evas ); + + edje->resize( WIDTH, HEIGHT ); + edje->setLayer( 1 ); + edje->show(); + + EvasEsmartTextEntry* passwd = new EvasEsmartTextEntry( 0, 0, WIDTH, HEIGHT, evas ); + passwd->setEdjePart (edje, "text"); passwd->setColor( 0, 0, 0, 255 ); - passwd->setLayer( 10 ); + passwd->setLayer( 0 ); + passwd->setFocus (true); passwd->show(); /* Enter the application main loop */ @@ -38,4 +47,3 @@ return 0; } - ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs