Commit Graph

153 Commits

Author SHA1 Message Date
Bruno Dilly c982de65d3 edje: support faces for 3d effects
SVN revision: 80658
2012-12-11 14:09:03 +00:00
Bruno Dilly 12cdbca681 edje: enable / disable movements per axis
With the movement_freedom block it's possible to allow
rotation on axis x and y (not default), for example.

Backface cull support is added in this commit too.



SVN revision: 80616
2012-12-10 17:46:44 +00:00
Bruno Dilly 6b40542d58 edje: support body's rotation
It's going as an action / script instead of an attribute
because it wouldn't fit well as a description.
Rotation can be modified by many circustancies, keeping
as state wouldn't make sense.



SVN revision: 80610
2012-12-10 15:37:08 +00:00
Bruno Dilly c4832ceda5 edje: add soft body stuff
SVN revision: 80609
2012-12-10 14:19:03 +00:00
Bruno Dilly 3de757a6d5 edje: add flag to set parts to be lighted
Won't be visible until world's light is implemented



SVN revision: 80605
2012-12-10 12:51:53 +00:00
Bruno Dilly 60afa64421 edje: update edc.vim with physics words
SVN revision: 80602
2012-12-10 11:48:30 +00:00
Bruno Dilly 75ceec585a edje: make it possible to set body's material
And density as well.



SVN revision: 80600
2012-12-10 11:47:22 +00:00
Bruno Dilly c206188db4 edje: implement more description physics attributes
* Damping
 * Sleeping Threshold



SVN revision: 80501
2012-12-07 21:19:31 +00:00
Bruno Dilly 476391343a edje: make it possible to change body attributes via
script

Support physics attributes on set_state_val and get_state_val
So custom_states can be created



SVN revision: 80484
2012-12-07 18:44:17 +00:00
Bruno Dilly bc9821c1ff edje: modify some embryo forces func names for
consistency

Since embryo functions names are verb_subject, not subject_verb.
So forces_clear -> clear_forces ...



SVN revision: 80398
2012-12-06 22:11:10 +00:00
Bruno Dilly 200ce279ab edje: support velocity family actions and scripts
SVN revision: 80397
2012-12-06 22:10:59 +00:00
Bruno Dilly 14cf9fe3f7 edje: support forces using programs / script
Implement actions:
  * PHYSICS_FORCE
  * PHYSICS_TORQUE
  * PHYSICS_FORCES_CLEAR

and embryo script functions:
  * physics_force
  * physics_torque
  * physics_forces_clear
  * physics_forces_get
  * physics_torques_get



SVN revision: 80381
2012-12-06 19:20:07 +00:00
Bruno Dilly 9f3c938c9c edje: support torque impulse (action and embryo script)
SVN revision: 80372
2012-12-06 16:58:58 +00:00
Bruno Dilly 8783eb70bb edje: support applying impulse via script
SVN revision: 80279
2012-12-05 21:09:18 +00:00
Eduardo Lima (Etrunko) 5081d36996 New embryo function: get_program_id
It is now you can run programs with names generated dinamically. Say that you
have 10 programs indexed somehow. You can now call them using the following snippet:

script {
   new program_id[15], i;
   for (i = 0; i < 10; i++) {
      snprintf(program_id, 15, "my_program_%d", i+1);
      run_program(get_program_id(program_id));
   }
}

Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>



SVN revision: 80199
2012-12-04 20:21:59 +00:00
Daniel Juyung Seo c7f510561d edje edc.vim: Added SPACER to contant.
SVN revision: 79984
2012-12-02 15:04:37 +00:00
Daniel Juyung Seo c83a589e9e edje edc.vim: Added PASSWORD to edc.vim syntax file.
SVN revision: 79771
2012-11-28 08:04:44 +00:00
Daniel Willmann c5996880a6 edje: Add embryo function get_image_id
This makes it possible to change the image from an embryo script

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 79327
2012-11-15 09:31:08 +00:00
Daniel Juyung Seo 99ce2c390e edje edc.vim: Added minmul to edc vim keyword.
SVN revision: 78965
2012-11-07 08:49:42 +00:00
Tom Hacohen 0d5d5af271 Edje vim: added ellipsis (correct spelling) as a keyword.
SVN revision: 75785
2012-08-28 12:28:37 +00:00
Eduardo de Barros Lima aef9e7497c edc.vim: Added instructions
SVN revision: 75782
2012-08-28 12:17:51 +00:00
Prince Kumar Dubey 3cc8139906 From: Prince Kumar Dubey <prince.dubey@samsung.com>
From: Govindaraju S M <govi.sm@samsung.com>
Subject: edje multisense patch for sound sample, tone and haptic play

... This is the beginning of sound (and haptic) support in Edje - it
works, but only at certain basic sample playback levels. more will come.



SVN revision: 64731
2011-11-04 12:18:13 +00:00
Boris Faure e6119fa4d9 remove .cvsignore files
SVN revision: 60246
2011-06-12 21:38:37 +00:00
Daniel Juyung Seo 739b4b7fe5 Edje: Improved vim syntax file edc.vim.
SVN revision: 59264
2011-05-08 06:21:33 +00:00
Tiago Rezende Campos Falcao 1df384f24a Fix snippets
SVN revision: 54629
2010-11-17 11:42:50 +00:00
Leandro Pereira dd5b79eff6 edje: Add get_part_id() to exported Embryo functions.
This allows one to calculate a part number in runtime and and use it with
other functions, like get_state() and set_state().



SVN revision: 53277
2010-10-11 21:26:43 +00:00
Carsten Haitzler a3b68b3e0e dont pretend to have these script only embryo calls anymore
SVN revision: 53181
2010-10-08 08:51:05 +00:00
Iván Briano 784ac71b15 Don't screw up script {} highlighting when there are several levels of {}
SVN revision: 52812
2010-09-27 21:12:09 +00:00
Tiago Rezende Campos Falcao ab8cdf1979 EDC Snippets for vim snipmate
SVN revision: 50222
2010-07-13 13:58:37 +00:00
Tiago Rezende Campos Falcao 11ca8f8aa0 Extract the VBA file. And adding one metafile.
The metafile is for use with vim-addon-manager.
Read more in http://github.com/MarcWeber/vim-addon-manager/blob/master/doc/vim-addon-manager.txt

For future, merge with billiob's edc.vim.

SVN revision: 49799
2010-06-22 18:47:37 +00:00
Boris Faure 7dc9294519 edje: improve vim syntax file and become the maintainer
SVN revision: 48214
2010-04-21 21:00:40 +00:00
Gustavo Sverzut Barbieri 3d206d92f6 oops, embryo limits names to 31 chars!
SVN revision: 47572
2010-03-30 00:39:14 +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 430d792e27 allow setting parameters from embryo!
SVN revision: 47459
2010-03-25 20:18:24 +00:00
Viktor Kojouharov 804728fb77 updated vimball with complete syntax and improved completion
SVN revision: 46951
2010-03-07 15:53:02 +00:00
Carsten Haitzler 3243fb1170 add embryo to manipulate map stuff.
SVN revision: 46343
2010-02-21 10:55:45 +00:00
Boris Faure 44de2046c0 edje: edc property is elipsis and not text_elipsis (update doc + vim syntax file)
SVN revision: 46031
2010-02-09 22:28:07 +00:00
Tiago Rezende Campos Falcao edc00590b6 Mime-Type for edje files
SVN revision: 45878
2010-02-04 17:47:33 +00:00
Boris Faure 48f439ee46 improve edc.vim
SVN revision: 45825
2010-02-03 00:13:47 +00:00
Boris Faure 5d8161e172 update edc.vim
SVN revision: 45346
2010-01-19 21:43:36 +00:00
Viktor Kojouharov b972f930f7 a new vimball with updated syntax highlighting and omni-completion
SVN revision: 42929
2009-10-07 08:24:17 +00:00
Hanspeter Portner da75132793 From: "Hanspeter Portner" <ventosus@airpost.net>
This concerns Ticket #109: Add Lua support for Edje

It adds Lua as scripting facility to Edje, letting Embryo untouched.
It should be easier to use and be more flexible than Embryo, imho ;-)

---
The patch
---

Lua 5.1 is used in sandboxed mode. Lua byte code is not
platform/architecture independent, Lua code is saved as text in the Edje
container and parsed at load time, therefore.

The patch goes in two directions

1) Analogous to Embryo for scripting logic, messaging and custom states.
The same things are implemented as in Embryo:

    - messaging from and to C
        - manual creation of timers, animators, pollers for custom events /
            animations
                - manual manipulation of Edje parts by means of the public
                    edje_object_part_* and internal functions and custom states
                    
                        -> those routines are actually implemented as Lua
bindings to
    functions in Edje.h and Ecore.h
        -> the implementation is done in an object oriented way, so that the
            interface gives the feel of an object description language, pretty
                similar to EDC itself
                    -> combining custom states and custom animators allows
for fancy
    animations and transitions, e.g circular/spline translations or
        complex/conditional transitions, etc.
            -> this is just the same as Embryo does, but implemented in Lua, so
                nothing new here, actually
                
                2) Dynamic object creation and manipulation
                
                    - this interface stems from the 'script_only' objects in
Edje. Those
    objects are a kind of scriptable Edje counterparts to Evas_Smart
        objects. The infrastructure for Embryo is already there, but has
            never been used
                - I added this in Lua and added some first bindings to
experiment
    with
        - I thought it would be useful to allow for a limited dynamic
            creation of ui parts
                - We can create instances of groups from within the same Edje
                    container and use them just like the main Edje object as
stated in
    1)
        - And there are some stand-alone bindings to dynamically create
            Evas_Image, Evas_Table, Evas_Line, Evas_Polygon as examples
            
                -> this may be useful to decouple the program from the ui
even more,
    to be able to do things that have to be done in the program itself
        atm, but actually belong to the user interface, but need dynamic
            creation of objects or complex interactions
                -> those objects are manipulated manually with Lua bindings
to the
    corresponding edje_object_* and evas_object_* functions
    
    ---
    Discussion points
    ---
    
    Both stuff in 1) & 2) is functioning, but needs testing, feedback,
    improvements, ...
    
    Stuff in 1) can already fully replace Embryo scripting with Lua
    scripting. There still is space for improvements/additions, though.
    
    Of the stuff in 2), I think it may only make sense to add the dynamic
    creation of groups defined in the same Edje container.  Dynamic creation
    of other Evas_Objects makes not much sense, as most of them can already
    be used as Edje parts and be manipulated with custom states (apart from
    polygons and lines) and it would make the whole theming potentially more
    programing-like and much more susceptible for errors, etc.
    
    Would this be useful, or drop it all?
    
    The scripting should be there just for logic, conditionals, custom
    states and animations, not for a whole dynamic canvas, imho.
    
    There is a patch around with EXTERNAL Edje parts. Seems to be a better,
    faster, more secure way to extend Edje with custom objects.
    
    There would be the possibility of precompiling Lua code at compile time
    (edje_cc) for faster loading, but we would have to patch and run our own
    Lua version.
    The Lua parser is pretty fast, though, and using
    byte-converted/endianness-swapped byte-code does only pay off for Lua
    chunks of some kilo lines.
    Byte code also occupies much more space than text in the final Edje
    container, as it includes debug symbols.
    
    ---
    
    Cedric and Vincent told me, that the plan was to replace Embryo totally
    by Lua before the official release of Edje at the end of the year? So it
    would make sense to bring Lua to svn soon and look how it fits in, test,
    debug, adapt it further to the themers needs, decide on its final shape,
    GATHER SOME PEOPLE TO HELP ;-)
    
    ---
    
    The Lua enhanced Edje is in sync with svn and can be get directly here
       git clone git://repo.or.cz/edje_lua.git
          cd edje_lua
             git checkout -b lua_patch origin/lua_patch
             
             or apply the attached patch
             
             There are also some examples to show the usage of the things
mentioned
above
    - showcase.edj: shows usage of custom animators, custom states,
        messaging and the script_only object
            - test.edj: test cases of script usage and bindings (custom states,
                custom transitions, tween_states, animators, timers,
object_parts),
    but most of it are experimental script_only objects
    
    http://didgmo.sourceforge.net/showcase.edj
    http://didgmo.sourceforge.net/test.edj
    
    The source of showcase.edc is attached, too, to just have a glimpse at
    Lua inside of EDC
    
    ---
    
    So, what do you guys think?
    
    Thanks and sry for the looong mail, hehe ;-)



SVN revision: 41802
2009-08-16 02:34:02 +00:00
Viktor Kojouharov fa95a224da a vimball script for edc (and embryo). It includes an up-to-date syntax files for edc and embryo, indent and omni-completion scripts
SVN revision: 38207
2008-12-18 10:37:11 +00:00
Carsten Haitzler 850cae173c doing some work on a test script object and actually making it work.
SVN revision: 34703
2008-05-30 15:29:39 +00:00
Carsten Haitzler 15cd1238db start some serious work on script_only edje objects - for efficiency sake i'm
having an almost parallel codepath for script_only objects - they dont get to
use the older edje api calls for part defined objects. they will have a new
set of calls specifically for them. it's partly done - very little available
now, but will expand. lots of fixme's.


SVN revision: 34699
2008-05-30 11:20:49 +00:00
Carsten Haitzler 0d624dcb94 lars get button mask call for edje embryo added
SVN revision: 34611
2008-05-19 04:38:40 +00:00
Carsten Haitzler e92406d330 patch from rafael to hook in funcs to embryo
SVN revision: 34603
2008-05-19 02:50:38 +00:00
Carsten Haitzler 0afa61a56a santiago's embryo swallow patchs.
SVN revision: 34249
2008-04-11 23:36:35 +00:00
Caio Marcelo de Oliveira Filho 2e568d779f edje-mode.el: add ignore_flags and a small fix.
SVN revision: 34171
2008-04-02 01:50:09 +00:00
Gustavo Sverzut Barbieri ee259f860f Edje mode improvements
* Now can be compiled with "compile" function.
 * Fixed insertion of part description internals alone.
 * Add program and its internals, with key bindings.


SVN revision: 32540
2007-11-10 15:52:20 +00:00