Commit Graph

148 Commits

Author SHA1 Message Date
Cedric BAIL 814d9bfb29 edje: prevent filter from matching during a program run.
SVN revision: 67495
2012-01-24 14:48:51 +00:00
Carsten Haitzler 2264bfe0b7 wo... this turned out to be much more of a pain. minmul now works -
allows us to multiple a minimim size explicitly for min size calc so
we can do things like have content slide open/closed properly.



SVN revision: 67197
2012-01-14 02:29:13 +00:00
Cedric BAIL c11e02df7c edje: follow the rest of the EFL.
SVN revision: 66802
2012-01-03 17:04:44 +00:00
Cedric BAIL 7473d15aea edje: cleanup and more accurate evaluation of CURRENT.
SVN revision: 65642
2011-11-28 10:20:51 +00:00
Carsten Haitzler 2c283ada65 fix awful event re-propagation between every part and parent and part
and.... u get the idea. this made an n^m list of messages... where n
was 3 of messages sent and m was # of child parts (42 of them)... this
caused a silly 3 of timers to be allocated... don't ask how many. in a
simple snapshot i saw 101mb of timers allocated... and i was just
starting... anyway - this makes the propagatiopn not propagate down
and then back up again... and it only needs 1 timer allocated to
handle a re-schedule of processing messages. not N. "leak" that was
just a massive memory spike) is now fixed.



SVN revision: 65571
2011-11-24 11:51:11 +00:00
Cedric BAIL 4638a297ef edje: fix bug when using filter with edje cache turned on.
SVN revision: 65458
2011-11-20 18:27:14 +00:00
Carsten Haitzler 4e97f85876 fix inconsistency with propagating signals and messages. now messages
AND signals should propagate to children the SAME WAY - that means
children you added explicitly in the edje file and not form c code get
propagated to.



SVN revision: 65384
2011-11-18 10:35:38 +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
Jaehwan Kim 6afeb6b150 Add CURRENT option which edje object moves from current position.
Currently, when the part in edc move by transition, it moves from the
one of the states to another of the states even if it is ainimating.
We need it to move from current position, because the animation is not
natural and smooth. So I made the "CURRENT" option.


SVN revision: 64675
2011-11-03 04:43:00 +00:00
Jaehwan Kim 1d300f049b Revert to revision 64488 in order to split the code into new feature and indentation
SVN revision: 64633
2011-11-02 04:15:01 +00:00
Jaehwan Kim 39d27f8cbb Add CURRENT option which edje object moves from current position.
Currently, when the part in edc move by transition, it moves from the
one of the states to another of the states even if it is ainimating.
We need it to move from current position, because the animation is not
natural and smooth. So I made the "CURRENT" option.
And I removed the unnecessary tab for indentation.


SVN revision: 64545
2011-10-31 06:00:06 +00:00
Tom Hacohen 2c12f4b0a7 Edje signals: Add the ability to provide extra data for signals.
SVN revision: 63771
2011-10-03 12:30:32 +00:00
Sebastian Dransfeld 08559f2c8b edje: Fix shadow warnings
SVN revision: 62563
2011-08-18 10:59:34 +00:00
Carsten Haitzler 87ec659bc6 use the ecore pos map call for edje as opposed to do it yourself. this
also opens up new position mappings like factored accel/decel/sin,
divis, bounce and spring! :) documentation provided.



SVN revision: 59449
2011-05-16 13:16:34 +00:00
Carsten Haitzler 5829d373c9 doxy -> .h
SVN revision: 58478
2011-04-08 07:45:46 +00:00
Carsten Haitzler 9e4cc63a93 minor change -> dont return void. no chlog
SVN revision: 58064
2011-03-24 07:58:00 +00:00
Cedric BAIL 4b4e194be2 edje: correctly propagate event recursivly with existing and non existing part.
NOTE: I don't backport it yet as I would like some test before doing so.


SVN revision: 57678
2011-03-10 17:27:55 +00:00
Cedric BAIL 1a2574ee77 edje: fix propagation of recursive events.
SVN revision: 57248
2011-02-22 18:09:19 +00:00
Cedric BAIL 45652e5da5 * edje: finally fix everything !
SVN revision: 56286
2011-01-24 13:29:17 +00:00
Carsten Haitzler e70188c5a2 "...PLEASE TEST ASAP AND REPORT TO ME: cedric.bail@free.fr !..."
you broke everything in e17 with this - evry apps window bottom half
is back now! i'll rever for now and let you re-apply the patch locally
and do some testing to find out what you broke with evry in trying to
fix this other bug. :)
  


SVN revision: 56259
2011-01-22 02:36:57 +00:00
Cedric BAIL 93d5b87e0a * edje: fix bug when targetting external, table and box items
reported by yoz and watchwolf.

	WARNING: IT SHOULD BE JUST A FIX, TRIED AND TESTED, BUT COULD
	BREAK YOUR APPS, PLEASE TEST ASAP AND REPORT TO ME:
	cedric.bail@free.fr !


SVN revision: 56241
2011-01-20 13:03:09 +00:00
Cedric BAIL d3e3b86e29 * edje: the most simple and usefull case of alias convertion
wasn't implemented at all. Should be working now, please test
	all your code that relly on "part1:part2[index]:sig" behaviour.


SVN revision: 55086
2010-11-30 13:09:03 +00:00
Andreas Volz f6b5aa850a allow to edje_object_part_external_param_set/edje_object_part_external_param_get with internal objects too. Currently implemented support for EDJE_PART_TYPE_TEXT and EDJE_PART_TYPE_TEXTBLOCK and param "text".
SVN revision: 54727
2010-11-19 22:50:33 +00:00
Carsten Haitzler 125e86c661 fix valgrind complaint - definite bug waiting to happen there - remvoe
the list item u are walking! bad!



SVN revision: 54361
2010-11-09 09:44:39 +00:00
Iván Briano db43f575ef B-B-B-B-BETA BREAKER!
As for Evas callbacks, let's have a del_full() version for the Edje signals.


SVN revision: 53997
2010-10-29 17:14:55 +00:00
Vincent Torri 1e1bb3b6a4 Put everything in edje_private. It should fix a compilation
bug on Windows

SVN revision: 52736
2010-09-25 17:10:33 +00:00
Lucas De Marchi e46b64199f Don't check return value of alloca
alloca() doesn't return NULL on error, so do not check its return value.



SVN revision: 52199
2010-09-13 18:40:32 +00:00
Carsten Haitzler 2d34d6d2a3 formatting fix + list walk optimisation.
SVN revision: 51874
2010-09-04 03:53:12 +00:00
Carsten Haitzler 1d076da0c0 turn lots of if's into switch. should be more efficient (if compiler
isnt dumb)



SVN revision: 51623
2010-08-25 01:16:34 +00:00
Carsten Haitzler 5e36f9979b nuke old obsolete lua stuff - except edje_lua.c. let it dangle with
the actual lua code in it entirely not being compiled just as reference until
it's killed off.



SVN revision: 51622
2010-08-25 01:09:44 +00:00
Lucas De Marchi 5a8a8c9014 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Cedric BAIL 2623367732 * edje: fix some memleak issue.
SVN revision: 51033
2010-08-12 12:58:54 +00:00
Jonathan Atton 6772fa343d Edje: a signal can be sent in a item of a table.
SVN revision: 50870
2010-08-06 19:52:07 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL c94ae93096 * edje: split programs type in different stack for later speed improvements.
SVN revision: 50810
2010-08-04 14:25:40 +00:00
Mike Blumenkrantz 40a5ee431a another case without a break
SVN revision: 50702
2010-07-31 04:58:32 +00:00
Mike Blumenkrantz ae3e0ce5c5 comment a couple unused lines and add a break to a case instead of falling through to autoreturn NULL
SVN revision: 50701
2010-07-31 04:28:27 +00:00
Cedric BAIL e773bc9246 * edje: change memory layout that will become the new file format.
NOTE: I tried this change with all the apps and theme I had, but maybe
	i missed some bug. Please report any strange behaviour.


SVN revision: 50641
2010-07-29 12:02:36 +00:00
Cedric BAIL 8e1a7c28e6 * edje: jump to the right offset in the string.
SVN revision: 50280
2010-07-16 13:05:37 +00:00
Cedric BAIL 30d35eb1ba * edje: start to split structure content.
SVN revision: 50279
2010-07-16 11:37:58 +00:00
Carsten Haitzler 519ca3be8b lua2 getting gooooooooooooooood. message method still needs work.
SVN revision: 50139
2010-07-09 05:12:35 +00:00
Carsten Haitzler 65ee259ada code example wrong
SVN revision: 49957
2010-07-01 02:42:57 +00:00
Cedric BAIL 73ac5cdc95 * edje: remove warning due to API change in Ecore.
SVN revision: 49830
2010-06-24 16:16:50 +00:00
Cedric BAIL 4eadc13551 * edje: fix constness issue.
SVN revision: 49666
2010-06-14 14:38:58 +00:00
Cedric BAIL 1ebbbd7d37 * edje: improve the way to target children of box and table.
You can now adress them with somethin like part[name]:subpart
	or part[index]:subpart in all signal emit code and API that
	require a part to be specified.

	TODO: we need to add this index/name information when a signal
	is emitted from a subpart.


SVN revision: 49614
2010-06-10 15:40:51 +00:00
Fabiano Fidêncio 40563f8aef From: Fabiano Fidêncio <fidencio@profusion.mobi>
Changing return of Eina_Bool functions that were not EINA_TRUE or
EINA_FALSE in Edje.



SVN revision: 49469
2010-06-05 13:07:08 +00:00
Carsten Haitzler 8babebf48e 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.



SVN revision: 47782
2010-04-06 11:26:32 +00:00
Carsten Haitzler 77a55c3fd8 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.



SVN revision: 47685
2010-04-02 11:05:53 +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