Re: [E-devel] Edje part show and hide

2009-05-18 Thread Thomas Gstädtner
On Mon, May 18, 2009 at 17:10, Mikael Liljeroth
 wrote:
> Thanks for your help. I think the clip thing should solve my problem very
> well, defines would also solve my problem but I really would like to limit
> the number of Edje programs and signals sent. I also have an other issue
> where I want to hide and show edje parts from c? Is this possible without
> edje programs? Is it okay to get the Evas_Object of an Edje part and modify
> it from c with show/hide/move etc?

The Edje_Edit api would provide such possibilities - however, this is
not how it is supposed to work.
The concept behind Edje is to keep the UI in the edj and not mess with
it in the main program.
So if you want to hide items from the program, send a signal to edje
and let a edje program handle the signal.
This reduces the influence from the program to the UI to a minimum to
make it as easy as possible to change the whole UI without touching
the program itself.

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Edje part show and hide

2009-05-18 Thread Mikael Liljeroth
Thanks for your help. I think the clip thing should solve my problem very
well, defines would also solve my problem but I really would like to limit
the number of Edje programs and signals sent. I also have an other issue
where I want to hide and show edje parts from c? Is this possible without
edje programs? Is it okay to get the Evas_Object of an Edje part and modify
it from c with show/hide/move etc?

/Mikael

On Mon, May 18, 2009 at 7:44 AM, Jesse Charbneau wrote:

> Hello,
>  I have tackled this myself, and at one point used some macros as
> defined in the cookbook here :
>
>
> http://wiki.enlightenment.org/index.php/Creating_Edje_User_Interfaces#Edje_Code
>
>
> I did have to do some re-organization of course, but in the end was able
> to generate 12 icons that would pulse, were draggable, etc.  I could
> provide a sample if needed, just send me a direct email.
>
> Note that it *seems* as though someone out there said there was a newer
> better way, but I have never learned that "trick" :-)
>
>
> Thanks,
> Jess
>
>
> On Mon, 2009-05-18 at 07:33 -0700, Mikael Liljeroth wrote:
> > Hi, I have a question regarding Edje. In very large user interfaces
> almost
> > every part has an invisible state and one visible state. Each of these
> parts
> > also has a corresponding program to show or hide the part. This makes the
> > edc file very big and hard to read. Is there some way to generalize the
> > procedure of hiding and showing parts in edc, or from c? Maybe
> dynamically
> > without an edc program for every part?
> >
> > /Mikael
> >
> --
> > Crystal Reports - New Free Runtime and 30 Day Trial
> > Check out the new simplified licensing option that enables
> > unlimited royalty-free distribution of the report engine
> > for externally facing server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > ___
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Edje part show and hide

2009-05-18 Thread Jesse Charbneau
Hello,
  I have tackled this myself, and at one point used some macros as
defined in the cookbook here :

http://wiki.enlightenment.org/index.php/Creating_Edje_User_Interfaces#Edje_Code


I did have to do some re-organization of course, but in the end was able
to generate 12 icons that would pulse, were draggable, etc.  I could
provide a sample if needed, just send me a direct email.

Note that it *seems* as though someone out there said there was a newer
better way, but I have never learned that "trick" :-)


Thanks,
Jess


On Mon, 2009-05-18 at 07:33 -0700, Mikael Liljeroth wrote:
> Hi, I have a question regarding Edje. In very large user interfaces almost
> every part has an invisible state and one visible state. Each of these parts
> also has a corresponding program to show or hide the part. This makes the
> edc file very big and hard to read. Is there some way to generalize the
> procedure of hiding and showing parts in edc, or from c? Maybe dynamically
> without an edc program for every part?
> 
> /Mikael
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables 
> unlimited royalty-free distribution of the report engine 
> for externally facing server and web deployment. 
> http://p.sf.net/sfu/businessobjects
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Edje part show and hide

2009-05-18 Thread The Rasterman
On Mon, 18 May 2009 07:33:32 -0700 Mikael Liljeroth
 said:

> Hi, I have a question regarding Edje. In very large user interfaces almost
> every part has an invisible state and one visible state. Each of these parts
> also has a corresponding program to show or hide the part. This makes the
> edc file very big and hard to read. Is there some way to generalize the
> procedure of hiding and showing parts in edc, or from c? Maybe dynamically
> without an edc program for every part?

umm... you can show multiple parts from 1 program - just list multiple parts.
you can also use clip objects (rectangle parts) and show and hide these as a
kind of master-control of visibility of all items clipped to this rect.

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Edje part show and hide

2009-05-18 Thread Toma
You could use a define...

eg. see the ICONS section in E17s default theme. Just create the
define at the top of the file and call the show/hide program.

#define SHOW(blah) \
  program { name: blah"1"; \
 action: STATE_SET "active" 0.0; \
 target: blah; \
   } \
  program { name: blah"2"; \
 action: STATE_SET "default" 0.0; \
 target: blah; \
   }

then later on in the edc;

SHOW(button)
SHOW(something)
SHOW(boobies)

Again, poke about on the default theme. Heres something I messed
around with that has too many defines.
http://wiki.enlightenment.org/index.php/Embryo/Examples/RandomColor2

Enjoy!
Toma.


2009/5/18 Mikael Liljeroth :
> Hi, I have a question regarding Edje. In very large user interfaces almost
> every part has an invisible state and one visible state. Each of these parts
> also has a corresponding program to show or hide the part. This makes the
> edc file very big and hard to read. Is there some way to generalize the
> procedure of hiding and showing parts in edc, or from c? Maybe dynamically
> without an edc program for every part?
>
> /Mikael
> --
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables
> unlimited royalty-free distribution of the report engine
> for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> ___
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel