Commit Graph

119 Commits

Author SHA1 Message Date
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
Gustavo Sverzut Barbieri 778cc70719 Edje_External_Type: break abi, add abi checker.
- add preview_get() and description_get(), breaking ABI badly.
 - add abi_version field to be fileld with EDJE_EXTERNAL_TYPE_ABI_VERSION
   and checked with edje_external_type_abi_version_get()




SVN revision: 44135
2009-12-02 21:41:28 +00:00
Gustavo Sverzut Barbieri 607de4c300 batch register/unregister of external types, faster and lighter on memory.
This is the recommended way to register a batch of types, it will not
do check (hash lookup) before adding and keys are added as "direct"
(not copied), thus lighter on memory.



SVN revision: 44102
2009-12-01 17:58:17 +00:00
Carsten Haitzler 6f1873f87d add lots of cursor con trol api's
SVN revision: 44087
2009-12-01 11:02:46 +00:00
Iván Briano 828b281904 externals {} in edje_edit, source generation and add module to the external_Type api to keep track of who registers what
SVN revision: 44003
2009-11-26 17:01:31 +00:00
Iván Briano 612f005cef More macros and default values por external parameters.
Add external parts in edje_edit


SVN revision: 43977
2009-11-25 17:00:53 +00:00
Iván Briano 2001a9e246 Easier to use macros
SVN revision: 43937
2009-11-23 22:18:01 +00:00
Iván Briano 10434c1fc4 Parameter information for external widgets
This are used for things like editors to know what parameters
to manage for external stuff.


SVN revision: 43935
2009-11-23 20:21:22 +00:00
Gustavo Sverzut Barbieri d40d8d123d edje external support, part 1.
Patch by Fabiano Fidêncio <fidencio@profusion.mobi>



SVN revision: 43927
2009-11-23 15:03:19 +00:00
Iván Briano d32a84d8a4 Constness and pass object around
SVN revision: 43671
2009-11-13 18:35:19 +00:00
Iván Briano 2ba79e04af Some more stuff in externals, little api change there, may change some more later.
SVN revision: 43379
2009-10-31 18:07:08 +00:00
Iván Briano 22952844c4 and bring external back now that the file was added
SVN revision: 43306
2009-10-27 01:08:19 +00:00
Carsten Haitzler d3fd0c30cb REVERT! broke edje.
try again and dont forget to add edje_external.c! (and any others needing
adding)



SVN revision: 43304
2009-10-27 00:27:50 +00:00
Iván Briano 68756f92b2 External objects support by Brian 'rephorm' Mattern
Since we are on a freeze, the patch goes on updated to current svn, but without changing its API. After the freeze some things will be added, and some will change :)


SVN revision: 43302
2009-10-26 21:33:56 +00:00
Vincent Torri e4bea597c7 Fix documentation
* update Doxyfile file
 * fix end of groups
 * fix some warnings
 * fix link in head.html for Edje API ref


SVN revision: 42794
2009-09-29 06:13:33 +00:00
Gustavo Sverzut Barbieri d7c76122b0 edje_{,object}_color_class_get() and signals when color_classes are changed.
Enable applications to retrieve current color class values as well as
emit edje signals when they are deleted or changed.



SVN revision: 42773
2009-09-28 17:23:02 +00:00
Iván Briano ed7064edcc Move some defines to enum and expose them.
Move to Eina_Bool.
Return success for rename of group and part to the same name.

Patch by Tiago Rezende Campos Falcão


SVN revision: 42506
2009-09-16 03:37:28 +00:00
Michael Lauer e1bb8c38ad edje: add first bunch of typedefs for previously anonymous callbacks
SVN revision: 41424
2009-07-18 22:43:50 +00:00
Cedric BAIL b405fecf1e * edje: Remove last set of Evas_Hash, and move to Eina_Bool.
SVN revision: 41068
2009-06-17 11:10:32 +00:00
Gustavo Sverzut Barbieri ec987bd579 edje now handles escape/unescape automatically for textblock.
these two new calls will escape the unescaped text if required, will
unescape when get is called.

Also I fixed edje_object_part_text_get() on non-editable TEXTBLOCK,
now it will return the text with markup.



SVN revision: 40066
2009-04-14 23:53:25 +00:00
Carsten Haitzler 4218f905f5 add more util calls for enty manipulation
SVN revision: 39600
2009-03-20 15:07:39 +00:00