Commit Graph

139 Commits

Author SHA1 Message Date
Carsten Haitzler 5cb52a006b missed some doxy
SVN revision: 58479
2011-04-08 07:52:46 +00:00
Carsten Haitzler 5829d373c9 doxy -> .h
SVN revision: 58478
2011-04-08 07:45:46 +00:00
Daniel Juyung Seo 0c29d7d307 Edje Edje.h: Fixed formatting. Removed trailing whitespaces.
SVN revision: 58465
2011-04-07 23:57:06 +00:00
Daniel Juyung Seo e085bfac30 Edje Edje.h: Removed trailing whitespaces.
SVN revision: 58292
2011-04-03 09:29:40 +00:00
Cedric BAIL d0810de637 edje: add PROXY part.
example:

collections {
   group {
      name: "main";
      parts {
         part {
            name: "sub1";
            type: GROUP;
            source: "sub1";

            description {
               rel1.relative: 0.5 0.5;
               rel2.relative: 1.0 1.0;
            }
         }

         part {
            name: "pro2";
            type: PROXY;

            description {
               rel1.relative: 0.0 0.5;
               rel2.relative: 0.5 1.0;
               source: "sub1";
               color: 255 0 0 128;

               map {
                  on: 1;
                  smooth: 1;
                  rotation {
                     z: 30;
                  }
               }
            }
         }
      }
   }

   group {
      name: "sub1";
      parts {
         part {
            name: "rect";
            type: RECT;

            description {
               rel1.relative: 0.0 0.0;
               rel2.relative: 0.5 0.5;
               color: 255 0 0 255;

               map {
                  on: 1;
                  smooth: 1;
                  rotation {
                     z: -30;
                  }
               }
            }
         }

         part {
            name: "pro1";
            type: PROXY;

            description {
               rel1.relative: 0.5 0.0;
               rel2.relative: 1.0 0.7;
               color: 128 128 0 128;
               source: rect;
            }
         }
      }
   }
}




SVN revision: 57694
2011-03-11 17:46:29 +00:00
Tom Hacohen 7a66e72df5 Edje entry: Added edje_object_part_text_cursor_pos_get/set.
This adds the ability to control the text position of an edje_entry.
Patch by Jihoon Kim.

SVN revision: 57365
2011-02-27 10:25:22 +00:00
Tom Hacohen 5e33a75553 Edje: Added mirrored mode. Mirrored mode is used for UI-mirroring. It lets you mirror edje objects automatically (it also sends signals to the .edc code so you can do tweaks if you want), no need to create a special theme just for rtl layouts.
This is controlled by the two added API functions.
The changes in Elementary that utilize these functions will be committed soon.

SVN revision: 56635
2011-02-01 13:26:49 +00:00
Vincent Torri 49815da5c9 fix a bit doxy
SVN revision: 55819
2011-01-03 08:10:33 +00:00
Vincent Torri aad53ed90d do not include some headers if vc++ is used
SVN revision: 55547
2010-12-14 05:56:46 +00:00
Iván Briano 3d6e44bd91 And as discussed on IRC, for the sake of API consistency (and we'll eventually need it), also del_full() for the text filters.
And since I'm there, some documentation.


SVN revision: 54003
2010-10-29 18:15:09 +00:00
Iván Briano db43f575ef B-B-B-B-BETA BREAKER!
As for Evas callbacks, let's have a del_full() version for the Edje signals.


SVN revision: 53997
2010-10-29 17:14:55 +00:00
Carsten Haitzler 57d15d3ef8 actually hook in filter callbacks - have 2 types and pass in enum to
each as to what text they are seeing to filter. fix up other typdef
uses.



SVN revision: 52975
2010-10-02 03:34:00 +00:00
Gustavo Sverzut Barbieri d93ac79c38 Dynamic choices in edje EXTERNALS.
Sometimes the options can just be known during runtime, like available
video engines for emotion.

This goes in now as it will avoid further API breaks, so before Edje 1.0



SVN revision: 52874
2010-09-29 03:01:17 +00:00
Gustavo Sverzut Barbieri d724381684 new flags to external parameters.
These are yet-another hint, they are not enforced as documentation
already said, yet they will be useful for tools (ie: editje) to
explain to users if parameter will be set only once, or provides no
getter and such.

This will save future ABI breaks, that's why I want it in 1.0 :-)



SVN revision: 52873
2010-09-29 02:42:50 +00:00
Carsten Haitzler 737556b8bb more pi cleantyp -> typedef.
SVN revision: 52590
2010-09-22 13:35:47 +00:00
Carsten Haitzler af2651748c int -> enum.
SVN revision: 52589
2010-09-22 13:27:09 +00:00
Brett Nash 4bf9ee3df3 Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Carsten Haitzler 5e36f9979b nuke old obsolete lua stuff - except edje_lua.c. let it dangle with
the actual lua code in it entirely not being compiled just as reference until
it's killed off.



SVN revision: 51622
2010-08-25 01:09:44 +00:00
Carsten Haitzler 5c5bab8886 edje -> knocked off too for 1.0.0 alpha
SVN revision: 51177
2010-08-16 09:08:49 +00:00
Jonathan Atton 6e1ada9850 Edje: now we can refer to the content of a external type
SVN revision: 50730
2010-08-01 17:27:31 +00:00
Carsten Haitzler 2136ee4451 edje -> version info
SVN revision: 49281
2010-05-29 08:05:11 +00:00
Carsten Haitzler cc621a2685 not fully done string insert approval cb for entry
SVN revision: 49276
2010-05-29 06:40:56 +00:00
Tiago Rezende Campos Falcao 9317ce25ac INT_MAX need limits.h. By Raphael Kubo
SVN revision: 49117
2010-05-21 22:53:41 +00:00
kiwi 0bc9b1cf55 set EDJE_EXTERNAL_DOUBLE_UNSET to DBL_MAX instead of HUGE_MAX, so that it's a constant on OpenBSD.
set EDJE_EXTERNAL_INT_UNSET to INT_MAX for consistency.

that fixes compilation on OpenBSD and closes ticket #540
ok vtorri


SVN revision: 49112
2010-05-21 19:28:33 +00:00
Carsten Haitzler 685fadf869 item provider callback... add!
SVN revision: 48329
2010-04-26 14:55:45 +00:00
Gustavo Sverzut Barbieri 004df4045f Get a table element with its coordinates.
By: Hugo Camboulive <hugo.camboulive@gmail.com>


SVN revision: 48088
2010-04-17 20:28:22 +00:00
Gustavo Sverzut Barbieri 651070fc1d new program action PARAM_SET, complements PARAM_COPY.
Sometimes you want to catch an action like "clicked" from elm/button
or "mouse,clicked,1" from a regular part and want to set a property
like "play" on some object. In this case there is no source property
to copy, so setting the destination makes sense. This was possible
with Embryo, and now it is with regular "program".

Sample EDC:
{{{

   // test.edc, compile with edje_cc and run with edje_player

   externals {
      external: "elm";
   }
   collections {
      group { name: "main";
         parts {
            part { name: "bg"; type: RECT;
               description { state: "default" 0.0;
                  color: 255 255 255 255;
               }
            }
            part { name: "button"; type: EXTERNAL;
               source: "elm/button";
               description { state: "default" 0.0;
                  rel2.relative: 1.0 0.5;
               }
            }
            part { name: "display"; type: TEXT;
               description { state: "default" 0.0;
                  color: 0 128 0 255;
                  rel1.relative: 0.0 0.5;
                  rel2.relative: 0.5 1.0;
                  text { font: "Sans"; size: 16; }
               }
            }
            part { name: "entry"; type: EXTERNAL;
               source: "elm/scrolled_entry";
               description { state: "default" 0.0;
                  rel1.relative: 0.5 0.5;
                  params.bool: "editable" 0;
               }
            }
            programs {
               program {
                  signal: "clicked";
                  source: "button";
                  action: PARAM_SET "display" "text" "hello world!";
               }
               program {
                  signal: "clicked";
                  source: "button";
                  action: PARAM_SET "entry" "text" "bla!";
               }
            }
         }
      }
   }

}}}



SVN revision: 47635
2010-03-31 20:48:51 +00:00
Gustavo Sverzut Barbieri 0b231e99ce Add CHOICES to EXTERNAL support.
Choices are useful to represent enumerations and restricted set of
elements to user. Usually this is displayed in hoversel/comboboxes.



SVN revision: 47570
2010-03-29 21:51:40 +00:00
Gustavo Sverzut Barbieri 1bb3339188 another useful function
SVN revision: 47564
2010-03-29 19:32:45 +00:00
Gustavo Sverzut Barbieri acadc5e210 export useful function.
SVN revision: 47562
2010-03-29 18:44:42 +00:00
Gustavo Sverzut Barbieri 71d603c360 new program action PARAM_COPY, awesome crazy stuff! :-)
Edje got a new program action called PARAM_COPY in the form:

   action: PARAM_COPY "src_part" "src_param" "dst_part" "dst_param";

This will copy the parameter "src_param" from part "src_part" to
parameter "dst_param" of part "dst_part".

So far so good, why the "crazy" in the first line? Because this also:
  * do type conversion!
  * set properties of native parts, not just EXTERNAL!

The type conversion allows one to get an integer and display that in a
text property, or get an string and convert into a float.

The set of native parts is quite simple, basically a map of Edje.h
edje_object_part_*_set(). With that one can set the string to be used
by a TEXT, or set drag page/step/size/value! (page/step increments are
not supported at the moment, if it is worth, they may be supported in
future).

Sample EDC:

{{{

  // test.edc, compile with edje_cc and run with edje_player

   externals {
      external: "elm";
   }
   collections {
      group { name: "main";
         parts {
            part { name: "bg"; type: RECT;
               description { state: "default" 0.0;
                  color: 255 255 255 255;
               }
            }
            part { name: "entry"; type: EXTERNAL;
               source: "elm/scrolled_entry";
               description { state: "default" 0.0;
                  rel2.relative: 1.0 0.5;
               }
            }
            part { name: "display"; type: TEXT;
               description { state: "default" 0.0;
                  color: 0 128 0 255;
                  rel1.relative: 0.0 0.5;
                  text { font: "Sans"; size: 16; }
               }
            }
            programs {
               program {
                  signal: "changed";
                  source: "entry";
                  action: PARAM_COPY "entry" "text" "display" "text";
               }
            }
         }
      }
   }

}}}



SVN revision: 47500
2010-03-27 01:26:10 +00:00
Gustavo Sverzut Barbieri cfecbc912b Edje EXTERNAL API break, for good.
I'm now introducing a couple of goodies to make externals more useful,
they are:

 * add: extra parameter with the part name. This may be used by
   external objects to emit signals in the name of that part.

 * param_set/param_get: set parameters at runtime, given their names
   and types. This avoids requiring users to get the actual object and
   call methods. This abstraction is also good because it let one uses
   Elementary without even linking to it ;-) (this have limits, like
   complex types are not supported).  Right now this is just exposed
   to C, but goal is to have it exposed in Embryo and Lua as well.

 * translate: new method to translate previously strings that are
   specified statically, such as the parameters names.


Four new functions got added to the Edje API:

 * edje_object_part_external_object_get() so we don't have to abuse
   edje_object_part_swallow_get()

 * edje_object_part_external_param_set() and
   edje_object_part_external_param_get() that call the external type's
   functions.

 * edje_external_param_type_str() to convert types to string and
   provide nicer debugs :-)


TODO:
  * expose external_param_set()/external_param_get() to Embryo and Lua.




SVN revision: 47456
2010-03-25 18:05:42 +00:00
Carsten Haitzler cbde94b4e3 calls for entry users to use.
SVN revision: 47126
2010-03-11 06:34:20 +00:00
Tiago Rezende Campos Falcao 16b4338a5d Adding edje_object_parts_extends_calc, to calc the geometry used by parts
SVN revision: 46876
2010-03-04 20:40:54 +00:00
Mikhail Gusarov b0b1fa40fa edje: Document several puzzling Edje_External_Type callbacks
SVN revision: 46697
2010-03-01 14:41:49 +00:00
Gustavo Sverzut Barbieri fcb71a4b3b Edje now uses Eina_Bool where it should.
SVN revision: 46646
2010-02-28 15:57:17 +00:00
Cedric BAIL 51de26862a * edje: Add more focus event in edje. A start for a focus layout work.
SVN revision: 46389
2010-02-23 13:39:19 +00:00
Carsten Haitzler e2bc27fb44 interp properly and make perspective api work.. untested yet...
SVN revision: 46302
2010-02-19 06:28:03 +00:00
Carsten Haitzler bf293931a1 map support in edje - first cut, missing features like back-face culling.
also no dependency tracking etc. etc.



SVN revision: 46216
2010-02-16 16:20:15 +00:00
Tiago Rezende Campos Falcao 0e0534c564 Adding Module Name to Externals
SVN revision: 45565
2010-01-25 20:30:02 +00:00
Vincent Torri d1632dfd52 use HUGE_VAL instead of a strange double/float numerical value
do I have to add -lm to Libs in edje.pc ?


SVN revision: 45119
2010-01-14 19:47:08 +00:00
Iván Briano ad2988b7fd Bunch of functions changed to return Eina_Bool.
More of this can be done, and some may even be too much, but I'm losing
perspective over it and either I'm inclined to move all of them or none
at all.
Reviews, comment, fixes and reverts are welcome.



SVN revision: 45115
2010-01-14 18:07:24 +00:00
Gustavo Sverzut Barbieri 598c9b339c fix warnings introduced by external parameter stuff.
Thanks to cedric by spotting those.


SVN revision: 44633
2009-12-21 16:39:24 +00:00
Carsten Haitzler eac3646b27 fmting
SVN revision: 44313
2009-12-09 07:54:43 +00:00
Iván Briano 836496c265 Add type bool to external parameters
Patch by glima


SVN revision: 44308
2009-12-09 06:51:13 +00:00
Carsten Haitzler aad24b249c make nan const... cosnt!
SVN revision: 44307
2009-12-09 06:26:59 +00:00
Carsten Haitzler 8700b81cb2 much better nan!
SVN revision: 44305
2009-12-09 05:30:43 +00:00
Iván Briano 35da61c96d define NAN if not there
SVN revision: 44303
2009-12-09 05:12:16 +00:00
Cedric BAIL c76b578b37 * edje: Add edje_object_preload, it will force the preload of all
image embeded inside an edje and send a signal ("preload,done", "")
	at the end.


SVN revision: 44186
2009-12-04 16:20:40 +00:00
Gustavo Sverzut Barbieri f0e42c478d Edje_External_Type: rename functions that add new objects.
SVN revision: 44137
2009-12-02 21:54:28 +00:00