efl/legacy/edje/src/lib
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
..
.cvsignore added .cvsignore files 2004-01-17 16:36:46 +00:00
Edje.h new program action PARAM_COPY, awesome crazy stuff! :-) 2010-03-27 01:26:10 +00:00
Edje_Edit.h Dirty copy/paste to delete individual targets from a program 2010-03-25 11:19:46 +00:00
Makefile.am Ecore_Str.h -> Eina 2010-01-30 22:29:31 +00:00
edje_cache.c Edje needs to detect files changed on disk before considering cache. 2010-02-27 03:47:04 +00:00
edje_calc.c convert some printfs to eina error. 2010-03-25 17:30:59 +00:00
edje_callbacks.c * edje: Fix naming for amalgamation and make static functions 2010-02-23 15:55:04 +00:00
edje_container.c Improve documentation for Evas, Ecore, Edje and Elementary. 2009-09-17 22:38:35 +00:00
edje_container.h Remove Evas list from Edje and use Eina instead. 2008-10-22 11:34:42 +00:00
edje_data.c new program action PARAM_COPY, awesome crazy stuff! :-) 2010-03-27 01:26:10 +00:00
edje_edit.c Edje EXTERNAL API break, for good. 2010-03-25 18:05:42 +00:00
edje_embryo.c allow setting parameters from embryo! 2010-03-25 20:18:24 +00:00
edje_entry.c new program action PARAM_COPY, awesome crazy stuff! :-) 2010-03-27 01:26:10 +00:00
edje_external.c Edje EXTERNAL API break, for good. 2010-03-25 18:05:42 +00:00
edje_load.c Edje EXTERNAL API break, for good. 2010-03-25 18:05:42 +00:00
edje_lua.c * Document mouse event callback system in LUA 2010-03-09 00:55:36 +00:00
edje_lua_script_only.c Edje now uses Eina_Bool where it should. 2010-02-28 15:57:17 +00:00
edje_main.c convert some printfs to eina error. 2010-03-25 17:30:59 +00:00
edje_match.c Edje now uses Eina_Bool where it should. 2010-02-28 15:57:17 +00:00
edje_message_queue.c Fix documentation 2009-09-29 06:13:33 +00:00
edje_misc.c reorganize header files inclusion. Fix some problems when compiling on Windows 2008-06-07 10:06:14 +00:00
edje_module.c + [Eina] API change. eina_module_list_flush() -> eina_module_list_free() 2010-01-08 12:22:23 +00:00
edje_private.h new program action PARAM_COPY, awesome crazy stuff! :-) 2010-03-27 01:26:10 +00:00
edje_program.c new program action PARAM_COPY, awesome crazy stuff! :-) 2010-03-27 01:26:10 +00:00
edje_script_only.c Edje now uses Eina_Bool where it should. 2010-02-28 15:57:17 +00:00
edje_smart.c fix moving edje obj aroudn with maps in it. 2010-02-23 08:37:30 +00:00
edje_text.c * edje: Add Fixed Point Math support to Edje. 2009-12-09 15:44:54 +00:00
edje_textblock_styles.c string_remove -> string_steal 2010-02-09 21:06:27 +00:00
edje_util.c new program action PARAM_COPY, awesome crazy stuff! :-) 2010-03-27 01:26:10 +00:00
edje_var.c * remove unused parameters (except in edje_lua.c, as i don't know the current status) 2009-08-24 16:40:42 +00:00