efl/legacy/edje/src/bin
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
..
.cvsignore Quiet. 2005-07-29 16:41:05 +00:00
Makefile.am edje_player gets in. 2010-03-19 16:19:50 +00:00
edje_cc.c Fix init checks so that there is no more seg fault. 2010-02-01 17:26:25 +00:00
edje_cc.h * edje: Use Eina_Log. 2009-12-22 13:46:00 +00:00
edje_cc_handlers.c new program action PARAM_SET, complements PARAM_COPY. 2010-03-31 20:48:51 +00:00
edje_cc_mem.c better error reporting for edje_cc. 2009-12-22 23:56:11 +00:00
edje_cc_out.c use PATH_MAX to define buffer size 2010-03-01 19:05:37 +00:00
edje_cc_parse.c force gcc to use C preprocessor (otherwise the file extension (.edc) is 2010-03-18 22:52:28 +00:00
edje_cc_sources.c * edje: Use Eina_Log. 2009-12-22 13:46:00 +00:00
edje_decc.c remove warnings from edje binaries. 2010-02-28 16:14:50 +00:00
edje_decc.h * edje: Use Eina_Log. 2009-12-22 13:46:00 +00:00
edje_player.c set ecore_app arguments, edje external will use it to init elm_init() 2010-03-29 18:45:18 +00:00
edje_prefix.c * edje: Use Eina_Log. 2009-12-22 13:46:00 +00:00
edje_prefix.h edje is now also prefix aware. 2006-07-10 18:55:23 +00:00
edje_recc remove trailing spaces 2008-03-24 08:22:01 +00:00