On Thu, May 12, 2011 at 11:25 PM, Quentin Gibeaux <[email protected]> wrote: > Hello ! > > Like I guessed, the call of edje_cc was ugly as hell. Never mind, I made a > working version with the evas librairy. The reloading function is great, but > does it check if the file have been changed before reloading, or do we have > to do it manually in order to optimize the code? > Anyway, good tip, thanks. It simplified the code a lot. > Only one question left : is there any evas function enabling us to resize > dynamically the evas_object in order to fit the container? Like edje does > ;). > Currently, when my picture is smaller than the module, we just see a piece > of it. When we enlarge the module more than the size of the picture, we find > the same image, over and over, like a mosaic. Odd. > from the documentation: /** * Creates a new image object that automatically scales on the given evas. * * This is a helper around evas_object_image_add() and * evas_object_image_filled_set(), it will track object resizes and apply * evas_object_image_fill_set() with the new geometry. * * @see evas_object_image_add() * @see evas_object_image_filled_set() * @see evas_object_image_fill_set() */ EAPI Evas_Object *evas_object_image_filled_add (Evas *e)
BR > For those who still wonder, the "freeze" was my fault, I forgot some > important part in the edc file and the mouse events didn't worked well. The > fact that the image didn't change was caused by the edje_object_file_set > which doesn't seem to reload the edj when it's the same file that has > already been loaded in the object (even if this file was recompiled in the > meantime). > > Once again, thank you very much for helping us. > > Jean Creusefond and Quentin Gibeaux. > > > 2011/5/11 Carsten Haitzler <[email protected]> > >> On Wed, 11 May 2011 08:33:51 +0200 Cedric BAIL <[email protected]> said: >> >> you really shouldn't be using system and edje_cc here. you are using edje >> simply where it's not needed. just create an image object yourself and >> move/resize it as you need/want and set the file to use. that's about it. >> it's >> much less complicated and does PRECISELY what you want. if you use the evas >> image preload system and delay showing the object until the preloaded >> callback >> is called, you'll also load the image in the background and never block the >> ui >> thread loading big images from disk. >> >> > On Tue, May 10, 2011 at 3:53 PM, Daniel Juyung Seo <[email protected] >> > >> > wrote: >> > > I don't know why it freezes, but why you run edje_cc repeatedly? >> > >> > It just freeze because system is not an asynchronous call. So each >> > time it run, it lock. You should seriously change the way you are >> > using edje ! Edje_cc should be used for data know at compilation, not >> > at runtime. Sounds wrong to me. >> > >> > > edje_cc is a compiler and it compiles edc text file to edj binary file. >> > > Just run it once, before you distribute your program. >> > >> > > Thanks. >> > > >> > > Daniel Juyung Seo (SeoZ) >> > > >> > > On Mon, May 9, 2011 at 4:39 AM, Quentin Gibeaux >> > > <[email protected]> wrote: >> > >> Hello everyone ! >> > >> >> > >> Thanks a lot for your answers, it really helped us. >> > >> We are going in step by step, for now we are juste trying to design a >> > >> module able to load every x seconds the same picture, and to display >> it. >> > >> So we created an Ecore_timer to compile the edc that links to the >> image, >> > >> and then to load the resulting edj into the Evas_Object of the module. >> > >> We wrote the function, called by the timer : >> > >> >> > >> static Eina_Bool _picture_check(void *data) >> > >> { >> > >> printf("call of the timer fonction\n"); >> > >> Instance *inst; >> > >> Eina_List *l; >> > >> for (l = instances; l; l = l->next) >> > >> { >> > >> inst=l->data; >> > >> /*Compile edj*/ >> > >> system("edje_cc /X/truck.edc"); >> > >> /*Load the edj to display it*/ >> > >> edje_object_file_set(inst->o_picture, "/X/truck.edj", "icon"); >> > >> } >> > >> return EINA_TRUE; >> > >> } >> > >> >> > >> The result is weird. The first time this function is called, the >> display of >> > >> the module changes like expected, but it freezes too (right click >> doesn't >> > >> work, the image doesn't move when the mouse go over it). >> > >> The loop continues since the printf is still working, but the display >> can't >> > >> be changed again. >> > >> We tried to learn from the slideshow module since we are basically >> doing >> > >> the same thing, but it's quite complex for us due to the use of >> livethumb. >> > >> >> > >> By the way, I've got the feeling that the call to edje_cc is a wrong >> thing >> > >> to do, is it? >> > >> >> > >> In advance, thanks you very much for your help. >> > >> >> > >> Best regards, >> > >> >> > >> Jean Creusefond and Quentin Gibeaux >> > >> >> > >> 2011/5/2 Carsten Haitzler <[email protected]> >> > >> >> > >>> On Sun, 1 May 2011 18:49:34 +0200 Quentin Gibeaux >> > >>> <[email protected]> said: >> > >>> >> > >>> > Hello everyone >> > >>> > >> > >>> > We're still working on making e17 modules, and have progressed a >> little >> > >>> bit >> > >>> > ; for those who didn't have our previous mails here is a short >> > >>> presentation >> > >>> > of our situation : >> > >>> > >> > >>> > We are two french students working on e17 modules. >> > >>> > We have three projects : include the elementary clock into a >> module, >> > >>> create >> > >>> > a module that loads an image on a regular basis and displays it >> (from an >> > >>> > internet server or from the computer) and finally a module >> enabeling us >> > >>> to >> > >>> > mount and unmount encrypted volules. >> > >>> >> > >>> hmm seems odd to do these as modules when frankly they all can work >> as >> > >>> stand-alone processes. the only reason u'd want modules is: >> > >>> >> > >>> 1. save resources by re-using things e has already in memory or infra >> for >> > >>> and >> > >>> has already initialized etc. etc. and you need to run rarely so you >> won't >> > >>> interfere with the wm >> > >>> and/or >> > >>> 2. you really want to integrate with the wm and its functionality, >> look, >> > >>> feel >> > >>> etc. etc. >> > >>> >> > >>> now that i've done that... keep working on the modules. just trying >> to >> > >>> make the >> > >>> point for people who want to go make modules, that there is actually >> a >> > >>> right >> > >>> and wrong reason to make a module. modules add instability to the wm. >> it's >> > >>> like >> > >>> kernel modules. only make a module if u really NEED to make it a >> module, >> > >>> or.. >> > >>> make a module ONLY with the bits u really need as a module, the rest >> as a >> > >>> process... or.. be REALLY CAREFUL about your module code. :) >> > >>> >> > >>> > We made our first steps into the module configuration and we >> learned how >> > >>> to >> > >>> > basically use the edc file (we made our little "Hello world" >> module, >> > >>> > very proud). >> > >>> >> > >>> well thats not really configuration.. its just optional data files >> modules >> > >>> can >> > >>> use - they can do/use anything they like. edje files are just one of >> the >> > >>> things modules tend to play with. >> > >>> >> > >>> > We are currently experiencing two difficulties : >> > >>> > -Can we use an absolute path to search images and to load it >> dynamically >> > >>> >> > >>> yes. just use an absolute path for the filename. done. :) but you'll >> need >> > >>> some >> > >>> way to get that path to the module - via its code or via some config >> file, >> > >>> configuration gui... something. >> > >>> >> > >>> > into the module (without having to restart it or enlightenment)? >> > >>> Currently, >> > >>> > we only see how to import images from the images directory (like >> skel >> > >>> does). >> > >>> > -On which Evas_object could we use the "elm_clock_add" function in >> order >> > >>> to >> > >>> > have the elementary clock to displays in the module? We tried the >> one >> > >>> into >> > >>> > the Instance struct (it makes e17 crash at every reload) or in the >> > >>> > E_Gadcon_Client into the Instance (it does nothing). So we are >> kinda >> > >>> stuck, >> > >>> > especially because we don't really have a clue of what are these >> objects >> > >>> > doing precisely (noobies spotted !). >> > >>> >> > >>> elm isn't currently able to be properly used from inside of e. elm >> pretty >> > >>> much >> > >>> expects its toplevel window is an elm window. you'll have tyo find >> some >> > >>> other >> > >>> way of having a clock... like write your own :) the clock module in e >> just >> > >>> uses >> > >>> a single edje object -t he edje object entirely does the clock >> itself, for >> > >>> example. >> > >>> >> > >>> > We would be most grateful for any help you could provide (doc we >> haven't >> > >>> > noticed, module that does this kind of staff, etc.). >> > >>> > >> > >>> > Best regards, >> > >>> > >> > >>> > Jean Creusefond and Quentin Gibeaux >> > >>> > Students lost in the e17's jungle >> > >>> > >> > >>> > 2011/4/4 Quentin Gibeaux <[email protected]> >> > >>> > >> > >>> > > Yes, we've found how to specify the use of elementary in the file >> > >>> > > configure.ac, the linking of the library works fine now, thanks! >> > >>> > > We have not finished our widget yet, we're still studying the >> > >>> functionning >> > >>> > > of Elementary clock but we've some difficulties to understand how >> Skel >> > >>> > > works. >> > >>> > > We aren't aware of the way the different layers are working >> together, >> > >>> > > especially because we have not found a documentation for Skel. >> > >>> > > Is there an URL where we can find it? >> > >>> > > >> > >>> > > >> > >>> > > Thanks, >> > >>> > > >> > >>> > > Quentin Gibeaux and Jean Creusefond >> > >>> > > >> > >>> > > >> > >>> > > 2011/4/4 Carsten Haitzler <[email protected]> >> > >>> > > >> > >>> > >> On Fri, 1 Apr 2011 19:29:02 +0200 Quentin Gibeaux >> > >>> > >> <[email protected]> said: >> > >>> > >> >> > >>> > >> fixed it up now? :) >> > >>> > >> >> > >>> > >> > Hello ! >> > >>> > >> > >> > >>> > >> > I am a French student in engineering, and I've chosen with a >> friend >> > >>> to >> > >>> > >> work >> > >>> > >> > out an optional project for our studies. This project consists >> in >> > >>> making >> > >>> > >> > three enlightenment new desktop modules. In order not to be >> > >>> disturbed by >> > >>> > >> the >> > >>> > >> > current development, we decided to stuck ourselves at the svn >> > >>> revision >> > >>> > >> > 54513. >> > >>> > >> > >> > >>> > >> > >> > >>> > >> > We started our widgets with Skel which we modify for our >> purposes. >> > >>> > >> > One of our widget has to implement the Elementary clock, but >> we >> > >>> can't >> > >>> > >> manage >> > >>> > >> > to add the linking of the Elementary library into the >> automatic >> > >>> autogen >> > >>> > >> > process of compiling, linking and installing of the module >> into >> > >>> > >> > E17… >> > >>> > >> > >> > >>> > >> > We've included Elementary.h into the concerned source files, >> and >> > >>> > >> > the resulting file "module.so" of the compilation does not >> specify >> > >>> > >> > any >> > >>> link >> > >>> > >> with >> > >>> > >> > libelementary.so, by looking with ldd. If we try to activate >> the >> > >>> module >> > >>> > >> in >> > >>> > >> > an E17 session, we've got an error message that says >> "elm_clock_add >> > >>> : >> > >>> > >> could >> > >>> > >> > not find symbol". >> > >>> > >> > >> > >>> > >> > We've tried to specify manualy the path of the >> libelementary.so >> > >>> > >> > file >> > >>> > >> into >> > >>> > >> > several environment variables such as $LIBS or $E_LIBS, but >> that >> > >>> > >> > was unsuccessful. >> > >>> > >> > >> > >>> > >> > We will be highly grateful if you would deign help us. >> > >>> > >> > >> > >>> > >> > Thanks, >> > >>> > >> > >> > >>> > >> > Quentin Gibeaux (and Jean Creusefond) >> > >>> > >> > >> > >>> > >> > PS: This is not an april fool :) >> > >>> > >> > >> > >>> > >> >> > >>> >> ------------------------------------------------------------------------------ >> > >>> > >> > Create and publish websites with WebMatrix >> > >>> > >> > Use the most popular FREE web apps or write code yourself; >> > >>> > >> > WebMatrix provides all the features you need to develop and >> > >>> > >> > publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> > >>> > >> > _______________________________________________ >> > >>> > >> > enlightenment-devel mailing list >> > >>> > >> > [email protected] >> > >>> > >> > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > >>> > >> > >> > >>> > >> >> > >>> > >> >> > >>> > >> -- >> > >>> > >> ------------- Codito, ergo sum - "I code, therefore I am" >> > >>> -------------- >> > >>> > >> The Rasterman (Carsten Haitzler) [email protected] >> > >>> > >> >> > >>> > >> >> > >>> > >> >> > >>> > >> >> > >>> >> ------------------------------------------------------------------------------ >> > >>> > >> Create and publish websites with WebMatrix >> > >>> > >> Use the most popular FREE web apps or write code yourself; >> > >>> > >> WebMatrix provides all the features you need to develop and >> > >>> > >> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf >> > >>> > >> _______________________________________________ >> > >>> > >> enlightenment-devel mailing list >> > >>> > >> [email protected] >> > >>> > >> >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > >>> > >> >> > >>> > > >> > >>> > > >> > >>> > >> > >>> >> ------------------------------------------------------------------------------ >> > >>> > WhatsUp Gold - Download Free Network Management Software >> > >>> > The most intuitive, comprehensive, and cost-effective network >> > >>> > management toolset available today. Delivers lowest initial >> > >>> > acquisition cost and overall TCO of any competing solution. >> > >>> > http://p.sf.net/sfu/whatsupgold-sd >> > >>> > _______________________________________________ >> > >>> > enlightenment-devel mailing list >> > >>> > [email protected] >> > >>> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > >>> > >> > >>> >> > >>> >> > >>> -- >> > >>> ------------- Codito, ergo sum - "I code, therefore I am" >> -------------- >> > >>> The Rasterman (Carsten Haitzler) [email protected] >> > >>> >> > >>> >> > >>> >> > >>> >> ------------------------------------------------------------------------------ >> > >>> WhatsUp Gold - Download Free Network Management Software >> > >>> The most intuitive, comprehensive, and cost-effective network >> > >>> management toolset available today. Delivers lowest initial >> > >>> acquisition cost and overall TCO of any competing solution. >> > >>> http://p.sf.net/sfu/whatsupgold-sd >> > >>> _______________________________________________ >> > >>> enlightenment-devel mailing list >> > >>> [email protected] >> > >>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > >>> >> > >> >> ------------------------------------------------------------------------------ >> > >> WhatsUp Gold - Download Free Network Management Software >> > >> The most intuitive, comprehensive, and cost-effective network >> > >> management toolset available today. Delivers lowest initial >> > >> acquisition cost and overall TCO of any competing solution. >> > >> http://p.sf.net/sfu/whatsupgold-sd >> > >> _______________________________________________ >> > >> enlightenment-devel mailing list >> > >> [email protected] >> > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > >> >> > > >> > > >> ------------------------------------------------------------------------------ >> > > Achieve unprecedented app performance and reliability >> > > What every C/C++ and Fortran developer should know. >> > > Learn how Intel has extended the reach of its next-generation tools >> > > to help boost performance applications - inlcuding clusters. >> > > http://p.sf.net/sfu/intel-dev2devmay >> > > _______________________________________________ >> > > enlightenment-devel mailing list >> > > [email protected] >> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > > >> > > >> > >> > >> > >> > -- >> > Cedric BAIL >> > >> > >> ------------------------------------------------------------------------------ >> > Achieve unprecedented app performance and reliability >> > What every C/C++ and Fortran developer should know. >> > Learn how Intel has extended the reach of its next-generation tools >> > to help boost performance applications - inlcuding clusters. >> > http://p.sf.net/sfu/intel-dev2devmay >> > _______________________________________________ >> > enlightenment-devel mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> >> >> -- >> ------------- Codito, ergo sum - "I code, therefore I am" -------------- >> The Rasterman (Carsten Haitzler) [email protected] >> >> >> >> ------------------------------------------------------------------------------ >> Achieve unprecedented app performance and reliability >> What every C/C++ and Fortran developer should know. >> Learn how Intel has extended the reach of its next-generation tools >> to help boost performance applications - inlcuding clusters. >> http://p.sf.net/sfu/intel-dev2devmay >> _______________________________________________ >> enlightenment-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
