profile/ivi/edje.git
14 years agoFix _edje_entry_cursor_end function.
bdilly [Thu, 27 May 2010 22:18:37 +0000 (22:18 +0000)]
Fix _edje_entry_cursor_end function.

This fix the issue with elementary cursor end set function.
The cursor is now after the last textblock node, and not before it, as
it was until now.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49242 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd '-h' argument to edje_decc and improve usage message.
bdilly [Thu, 27 May 2010 02:39:20 +0000 (02:39 +0000)]
Add '-h' argument to edje_decc and improve usage message.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49221 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoummmm edje wasnt processing the message queue. use jobs a little better.
raster [Wed, 26 May 2010 11:41:35 +0000 (11:41 +0000)]
ummmm edje wasnt processing the message queue. use jobs a little better.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49204 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoINT_MAX need limits.h. By Raphael Kubo
tiago [Fri, 21 May 2010 22:53:41 +0000 (22:53 +0000)]
INT_MAX need limits.h. By Raphael Kubo

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49117 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agopreprocess the edc file on OpenBSD as on MacOS X.
kiwi [Fri, 21 May 2010 19:58:40 +0000 (19:58 +0000)]
preprocess the edc file on OpenBSD as on MacOS X.
NetBSD and FreeBSD might have the same issue

fixes handling of #define and comments in edc files, so e theme builds now on OpenBSD

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49113 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoset EDJE_EXTERNAL_DOUBLE_UNSET to DBL_MAX instead of HUGE_MAX, so that it's a constan...
kiwi [Fri, 21 May 2010 19:28:33 +0000 (19:28 +0000)]
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

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49112 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFrom: Eduardo Felipe <eduardofelipe87@gmail.com>
Eduardo Felipe [Thu, 20 May 2010 04:48:17 +0000 (04:48 +0000)]
From: Eduardo Felipe <eduardofelipe87@gmail.com>
Upon creating a timer, it's callback must return an int, otherwise it
would panic. The python bindings do the nicety of, if the callback
function returns nothing, automatically canceling the reschedule of
the timer.

This patch does the same for lua. It's a oneliner.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@49051 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoedje: be more precise about the Lua version we are expecting
mickeyl [Sat, 8 May 2010 10:54:40 +0000 (10:54 +0000)]
edje: be more precise about the Lua version we are expecting

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48676 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoedje: get parts in a part type BOX/TABLE
billiob [Sat, 1 May 2010 17:13:38 +0000 (17:13 +0000)]
edje: get parts in a part type BOX/TABLE

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48513 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoedje: wibble
billiob [Sat, 1 May 2010 16:17:44 +0000 (16:17 +0000)]
edje: wibble

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48509 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agouse part geom for map - better for text.. oh yeah.
raster [Sat, 1 May 2010 12:40:27 +0000 (12:40 +0000)]
use part geom for map - better for text.. oh yeah.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48498 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAlways allow selections for entries when select_mode is default
sachiel [Thu, 29 Apr 2010 19:56:59 +0000 (19:56 +0000)]
Always allow selections for entries when select_mode is default

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48434 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoupdate mtime when save
tiago [Thu, 29 Apr 2010 18:52:59 +0000 (18:52 +0000)]
update mtime when save

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48432 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoCode Replication --
tiago [Thu, 29 Apr 2010 18:52:55 +0000 (18:52 +0000)]
Code Replication --

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48431 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agobe friendly with the commonlispers who like to call init and shutdown more than once
sachiel [Wed, 28 Apr 2010 23:10:31 +0000 (23:10 +0000)]
be friendly with the commonlispers who like to call init and shutdown more than once

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48409 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoWhen changing source of a GROUP part, set/clean the swallowed_object, by Thiago Masaki
sachiel [Wed, 28 Apr 2010 18:40:05 +0000 (18:40 +0000)]
When changing source of a GROUP part, set/clean the swallowed_object, by Thiago Masaki

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48398 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoA bit more carefulness when deleting states.
sachiel [Mon, 26 Apr 2010 22:51:24 +0000 (22:51 +0000)]
A bit more carefulness when deleting states.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48352 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMake program_del() a bit more straight forward while fixing the problems it had updat...
sachiel [Mon, 26 Apr 2010 22:35:49 +0000 (22:35 +0000)]
Make program_del() a bit more straight forward while fixing the problems it had updating references.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48350 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEdje_edit font_del
tiago [Mon, 26 Apr 2010 18:19:49 +0000 (18:19 +0000)]
Edje_edit font_del

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48339 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEdje_edit font_add with alias
tiago [Mon, 26 Apr 2010 18:19:46 +0000 (18:19 +0000)]
Edje_edit font_add with alias

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48338 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEdje_edit image_del
tiago [Mon, 26 Apr 2010 18:19:43 +0000 (18:19 +0000)]
Edje_edit image_del

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48337 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEdje_edit image_add review
tiago [Mon, 26 Apr 2010 18:19:39 +0000 (18:19 +0000)]
Edje_edit image_add review

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48336 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoitem provider callback... add!
raster [Mon, 26 Apr 2010 14:55:45 +0000 (14:55 +0000)]
item provider callback... add!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48329 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoand dont mix anchors and items - for now. for now now way to "get" all the
raster [Sun, 25 Apr 2010 13:57:41 +0000 (13:57 +0000)]
and dont mix anchors and items - for now. for now now way to "get" all the
items. mulling over how an item href name will map to having an evas object
attached/supplied (once there, its' easy to just control the object like href
objects, selection and cursor objects are).

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48311 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agosupport items... yo... mostly.
raster [Sun, 25 Apr 2010 13:06:58 +0000 (13:06 +0000)]
support items... yo... mostly.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48307 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoapparently fbsd is unaware of expr substr...
raster [Sat, 24 Apr 2010 14:31:36 +0000 (14:31 +0000)]
apparently fbsd is unaware of expr substr...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48276 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAlso use an edit object when generating the source.
sachiel [Thu, 22 Apr 2010 20:29:35 +0000 (20:29 +0000)]
Also use an edit object when generating the source.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48231 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix infinite loop when trying to group_del and group_add when id is zero.
sachiel [Thu, 22 Apr 2010 19:09:30 +0000 (19:09 +0000)]
Fix infinite loop when trying to group_del and group_add when id is zero.
By Thiago Masaki

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48228 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUn/Clip swallowed objects too when setting clipper.
sachiel [Thu, 22 Apr 2010 18:13:21 +0000 (18:13 +0000)]
Un/Clip swallowed objects too when setting clipper.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48225 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEdje Edit: Now inherits the smart from Edje and has stuff of its own in there.
sachiel [Thu, 22 Apr 2010 17:56:00 +0000 (17:56 +0000)]
Edje Edit: Now inherits the smart from Edje and has stuff of its own in there.
To use the Edje Edit API now you need to add the object to the canvas with edje_edit_object_add().
Normal edje functions will work as usual, but it's no longer possible to tamper with the standard objects internals.
Also, big reformat of Edje_Edit.h while fixing docs. Yes, monster commit.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48220 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoedje: improve vim syntax file and become the maintainer
billiob [Wed, 21 Apr 2010 21:00:40 +0000 (21:00 +0000)]
edje: improve vim syntax file and become the maintainer

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48214 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoApply the same fix MEJ did ( http://marc.info/?l=enlightenment-svn&m=127157420508183...
rui [Wed, 21 Apr 2010 20:55:23 +0000 (20:55 +0000)]
Apply the same fix MEJ did ( marc.info/?l=enlightenment-svn&m=127157420508183&w=3 ) to more specs

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48213 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * edje: during removal the removed list is modified.
cedric [Wed, 21 Apr 2010 16:36:55 +0000 (16:36 +0000)]
* edje: during removal the removed list is modified.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48207 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUpdate references to groups when renaming or deleting one from the file.
sachiel [Tue, 20 Apr 2010 22:12:15 +0000 (22:12 +0000)]
Update references to groups when renaming or deleting one from the file.

Patch by Thiago Masaki

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48188 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd after_del() function
sachiel [Tue, 20 Apr 2010 19:57:17 +0000 (19:57 +0000)]
Add after_del() function

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48177 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoRemoving ugly whitespaces
tiago [Mon, 19 Apr 2010 20:37:40 +0000 (20:37 +0000)]
Removing ugly whitespaces

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48145 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoDont need recalc params in external description in part_recalc.
tiago [Mon, 19 Apr 2010 20:37:35 +0000 (20:37 +0000)]
Dont need recalc params in external description in part_recalc.

Others types, like TEXT/TEXTBLOCK/SWALLOW/GROUP (others?), are similar to Externals. And may can recalc some properties only in description_apply, not on every call to part_recalc.

Some generic boolean properties, like "visible", can be moved to description_appy too.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48144 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUse external_params_set to update params
tiago [Mon, 19 Apr 2010 20:37:32 +0000 (20:37 +0000)]
Use external_params_set to update params

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48143 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoRemoving some warnings of edje
tiago [Mon, 19 Apr 2010 20:37:28 +0000 (20:37 +0000)]
Removing some warnings of edje

Remaining:
edje_lua.c:328: ‘_edje_lua_reg_count’ defined but not used
edje_lua.c:409: ‘_edje_lua_rawgetfield’ defined but not used
edje_lua.c:445: ‘_edje_lua_free_metatable’ defined but not used
edje_lua.c:2182: ‘_edje_lua_object_set_pointer_mode’ defined but not used
edje_lua.c:2190: ‘_edje_lua_object_set_precise_is_inside’ defined but not used

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48142 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoGet a table element with its coordinates.
barbieri [Sat, 17 Apr 2010 20:28:22 +0000 (20:28 +0000)]
Get a table element with its coordinates.

By: Hugo Camboulive <hugo.camboulive@gmail.com>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48088 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoand fix up.down arrow on intermediate lines with overflow
raster [Sat, 17 Apr 2010 16:19:28 +0000 (16:19 +0000)]
and fix up.down arrow on intermediate lines with overflow

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48076 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agochar wrap - click to go to end works.
raster [Sat, 17 Apr 2010 15:50:27 +0000 (15:50 +0000)]
char wrap - click to go to end works.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48074 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix state_apply without animation.
tiago [Wed, 14 Apr 2010 16:34:06 +0000 (16:34 +0000)]
Fix state_apply without animation.

Used in edje_edit_part_selected_state_set.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@48000 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUse eina.strbuf to generate the source code. Cedric suggestion
tiago [Fri, 9 Apr 2010 16:05:17 +0000 (16:05 +0000)]
Use eina.strbuf to generate the source code. Cedric suggestion

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47878 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoCheck source generation in save
tiago [Thu, 8 Apr 2010 19:37:22 +0000 (19:37 +0000)]
Check source generation in save

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47842 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMake the Edje Smart inheritable.
sachiel [Thu, 8 Apr 2010 19:21:54 +0000 (19:21 +0000)]
Make the Edje Smart inheritable.

Pretty much moving some things around and extending the smart class
to allow overloading some common functions. Edje_Edit will make use
of this.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47841 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEdje_Edit: Big Fat API Break.
sachiel [Wed, 7 Apr 2010 17:04:49 +0000 (17:04 +0000)]
Edje_Edit: Big Fat API Break.

All state functions now receive the value as a double, separate from
the state name.
Getting the list of states from the part still returns a list of strings
with everything together, but we'll change that soon too.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47811 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoReturn FALSE when save fail
tiago [Tue, 6 Apr 2010 18:18:53 +0000 (18:18 +0000)]
Return FALSE when save fail

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47787 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agook tested - it. new lua disabled for now (not ready). old lua still there.
raster [Tue, 6 Apr 2010 11:32:09 +0000 (11:32 +0000)]
ok tested - it. new lua disabled for now (not ready). old lua still there.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47783 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoan ongoing lua cleanup. existing lua is there and works for the most part.
raster [Tue, 6 Apr 2010 11:26:32 +0000 (11:26 +0000)]
an ongoing lua cleanup. existing lua is there and works for the most part.
but it could be much much much cleaner/better so i started a minimalist redo.
it's temporarily enabled right now. will disable soon to do in the background.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47782 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago_edje_file_hash can't be NULL in open_new
tiago [Mon, 5 Apr 2010 14:05:21 +0000 (14:05 +0000)]
_edje_file_hash can't be NULL in open_new

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47763 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoaaah well... 1. fix segv with edje_match stuff is deep child cleans up
raster [Fri, 2 Apr 2010 11:05:53 +0000 (11:05 +0000)]
aaah well... 1. fix segv with edje_match stuff is deep child cleans up
pattersn - ref them.
2. edje lua... beating it into shape. slowly bit by bit.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47685 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agohandle cases without default values and add missing functions.
barbieri [Thu, 1 Apr 2010 03:48:07 +0000 (03:48 +0000)]
handle cases without default values and add missing functions.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47640 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix stupid bug, my bad at copy and paste...
barbieri [Thu, 1 Apr 2010 03:47:04 +0000 (03:47 +0000)]
fix stupid bug, my bad at copy and paste...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47639 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agonew program action PARAM_SET, complements PARAM_COPY.
barbieri [Wed, 31 Mar 2010 20:48:51 +0000 (20:48 +0000)]
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!";
               }
            }
         }
      }
   }

}}}

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47635 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoavoid errors - calling more lua calls afre the pcall failed... bad!
raster [Wed, 31 Mar 2010 10:02:51 +0000 (10:02 +0000)]
avoid errors - calling more lua calls afre the pcall failed... bad!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47619 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agocall me stupid, need to expose it... not in a good day :-/
barbieri [Tue, 30 Mar 2010 01:30:51 +0000 (01:30 +0000)]
call me stupid, need to expose it... not in a good day :-/

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47574 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agooops, embryo limits names to 31 chars!
barbieri [Tue, 30 Mar 2010 00:39:14 +0000 (00:39 +0000)]
oops, embryo limits names to 31 chars!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47572 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd CHOICES to EXTERNAL support.
barbieri [Mon, 29 Mar 2010 21:51:40 +0000 (21:51 +0000)]
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.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47570 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoanother useful function
barbieri [Mon, 29 Mar 2010 19:32:45 +0000 (19:32 +0000)]
another useful function

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47564 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoset ecore_app arguments, edje external will use it to init elm_init()
barbieri [Mon, 29 Mar 2010 18:45:18 +0000 (18:45 +0000)]
set ecore_app arguments, edje external will use it to init elm_init()

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47563 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoexport useful function.
barbieri [Mon, 29 Mar 2010 18:44:42 +0000 (18:44 +0000)]
export useful function.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47562 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoMore safety removing stuff from lists
sachiel [Mon, 29 Mar 2010 07:13:35 +0000 (07:13 +0000)]
More safety removing stuff from lists

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47554 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoUse safe macros to walk the lists when we may remove something from it
sachiel [Mon, 29 Mar 2010 07:03:36 +0000 (07:03 +0000)]
Use safe macros to walk the lists when we may remove something from it

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47553 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoNew file.
rui [Sun, 28 Mar 2010 18:46:57 +0000 (18:46 +0000)]
New file.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47535 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agonew program action PARAM_COPY, awesome crazy stuff! :-)
barbieri [Sat, 27 Mar 2010 01:26:10 +0000 (01:26 +0000)]
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";
               }
            }
         }
      }
   }

}}}

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47500 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agopassword mode - dont allow selections
raster [Fri, 26 Mar 2010 04:42:39 +0000 (04:42 +0000)]
password mode - dont allow selections

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47466 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix markup insert to be the same as normal text entry code - except given
raster [Fri, 26 Mar 2010 04:22:30 +0000 (04:22 +0000)]
fix markup insert to be the same as normal text entry code - except given
text markup.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47465 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoallow setting parameters from embryo!
barbieri [Thu, 25 Mar 2010 20:18:24 +0000 (20:18 +0000)]
allow setting parameters from embryo!

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47459 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoEdje EXTERNAL API break, for good.
barbieri [Thu, 25 Mar 2010 18:05:42 +0000 (18:05 +0000)]
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.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47456 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoconvert some printfs to eina error.
barbieri [Thu, 25 Mar 2010 17:30:59 +0000 (17:30 +0000)]
convert some printfs to eina error.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47451 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoFix wrong names below<->above
tiago [Thu, 25 Mar 2010 16:41:46 +0000 (16:41 +0000)]
Fix wrong names below<->above

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47446 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoDirty copy/paste to delete individual targets from a program
sachiel [Thu, 25 Mar 2010 11:19:46 +0000 (11:19 +0000)]
Dirty copy/paste to delete individual targets from a program

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47444 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix entry delete.
raster [Thu, 25 Mar 2010 08:17:51 +0000 (08:17 +0000)]
fix entry delete.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47443 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoabove and below get
tiago [Wed, 24 Mar 2010 19:21:03 +0000 (19:21 +0000)]
above and below get

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47435 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoallows basic interaction from automated scripts and signal/message debug.
barbieri [Fri, 19 Mar 2010 19:04:50 +0000 (19:04 +0000)]
allows basic interaction from automated scripts and signal/message debug.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47347 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoedje_player gets in.
barbieri [Fri, 19 Mar 2010 16:19:50 +0000 (16:19 +0000)]
edje_player gets in.

I almost rewrote it to be cleaner and use more modern technologies
such as box and ecore_evas_object_associate.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47343 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agocopy edje_player, it will be changed to use Ecore_Getopt and then enabled in compile...
barbieri [Fri, 19 Mar 2010 13:23:24 +0000 (13:23 +0000)]
copy edje_player, it will be changed to use Ecore_Getopt and then enabled in compile...

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47341 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoforce gcc to use C preprocessor (otherwise the file extension (.edc) is
caro [Thu, 18 Mar 2010 22:52:28 +0000 (22:52 +0000)]
force gcc to use C preprocessor (otherwise the file extension (.edc) is
breaking that behavior)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47338 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agofix edje_cc on Mac OS X: c++ comments were not removed, so pass
caro [Tue, 16 Mar 2010 05:49:13 +0000 (05:49 +0000)]
fix edje_cc on Mac OS X: c++ comments were not removed, so pass
gcc -E on the edc file a second time. As Linux gcc does not like
it, compile that part only on Mac OS X.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47280 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agobug--
raster [Tue, 16 Mar 2010 04:10:03 +0000 (04:10 +0000)]
bug--

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47275 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agobug--
raster [Tue, 16 Mar 2010 00:57:04 +0000 (00:57 +0000)]
bug--

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47267 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agobug--
raster [Mon, 15 Mar 2010 09:45:02 +0000 (09:45 +0000)]
bug--

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47232 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoand emit signals on cursor changes etc.
raster [Mon, 15 Mar 2010 03:02:14 +0000 (03:02 +0000)]
and emit signals on cursor changes etc.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47231 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agomore bug --
raster [Sun, 14 Mar 2010 12:24:54 +0000 (12:24 +0000)]
more bug --

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47202 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoone more end of line cursor issue fixed.
raster [Sat, 13 Mar 2010 13:25:40 +0000 (13:25 +0000)]
one more end of line cursor issue fixed.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47175 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agowe have printf debugging right now - in the middle of chasing entry issues,
raster [Thu, 11 Mar 2010 14:28:44 +0000 (14:28 +0000)]
we have printf debugging right now - in the middle of chasing entry issues,
so keeep this in.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47133 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoalso do imf stuff on cursor fiddling api's
raster [Thu, 11 Mar 2010 10:16:32 +0000 (10:16 +0000)]
also do imf stuff on cursor fiddling api's

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47132 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodisable the extar newline stuff... seems to be ok without. i'm sure i put it
raster [Thu, 11 Mar 2010 08:07:55 +0000 (08:07 +0000)]
disable the extar newline stuff... seems to be ok without. i'm sure i put it
in for a reason... hrrrm..

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47129 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agocalls for entry users to use.
raster [Thu, 11 Mar 2010 06:34:20 +0000 (06:34 +0000)]
calls for entry users to use.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47126 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoaaaah there it is! fix 1 small bug - sel all in edje entry - more there. will
raster [Wed, 10 Mar 2010 13:32:49 +0000 (13:32 +0000)]
aaaah there it is! fix 1 small bug - sel all in edje entry - more there. will
fix.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47103 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * Document mouse event callback system in LUA
davemds [Tue, 9 Mar 2010 00:55:36 +0000 (00:55 +0000)]
 * Document mouse event callback system in LUA

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47063 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * Add a new basic lua example: Set part state from LUA. (and a small fix in the...
davemds [Mon, 8 Mar 2010 22:25:40 +0000 (22:25 +0000)]
 * Add a new basic lua example: Set part state from  LUA. (and a small fix in the doxy)

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47054 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * More LUA doxy, now all the Classes,Methods and Attributes are documented (...at...
davemds [Mon, 8 Mar 2010 19:09:15 +0000 (19:09 +0000)]
 * More LUA doxy, now all the Classes,Methods and Attributes are documented (...at least listed). Still have some examples and some more info to write.
 * fix the use of lua table in the example

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@47048 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoPut examples in dist package
davemds [Sun, 7 Mar 2010 23:10:21 +0000 (23:10 +0000)]
Put examples in dist package

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46970 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoPut examples in dist package
davemds [Sun, 7 Mar 2010 19:41:41 +0000 (19:41 +0000)]
Put examples in dist package

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46956 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoAdd the examples/ folder in edje/doc/ and put in the first 2 lua examples
davemds [Sun, 7 Mar 2010 19:34:28 +0000 (19:34 +0000)]
Add the examples/ folder in edje/doc/ and put in the first 2 lua examples

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46955 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years ago * Add a doxy page for LUA scripting in edje documentation, not complete yet, but...
davemds [Sun, 7 Mar 2010 18:05:12 +0000 (18:05 +0000)]
 * Add a doxy page for LUA scripting in edje documentation, not complete yet, but a good structure

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46954 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agodocu typos
urandom [Sun, 7 Mar 2010 15:53:46 +0000 (15:53 +0000)]
docu typos

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46952 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

14 years agoupdated vimball with complete syntax and improved completion
urandom [Sun, 7 Mar 2010 15:53:02 +0000 (15:53 +0000)]
updated vimball with complete syntax and improved completion

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@46951 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33