Commit Graph

334 Commits

Author SHA1 Message Date
Cedric BAIL 686d473591 edje: add collection.group.limits.vertical and collection.group.limits.horizontal.
The goal is to provide an easy way to do the kind of effect you see in that video
around 00:36 : http://www.youtube.com/watch?v=KVoVLHh8CHc.
  At that time it was really difficult to do such thing and required a lot of
embryo code, we designed limit with Billiob to be able to do such kind of things
much more easily.

NOTE: so Billiob, now nothing stop you from releasing amsn2 ! ;-)


SVN revision: 62701
2011-08-22 21:44:49 +00:00
Carsten Haitzler 8af403fcff fix edje_shutdown being calle3d before all edje object are deleted -
keep edje internal data around until all refs to edje are gone from
objects, then shtudown the core.



SVN revision: 61984
2011-08-02 07:23:05 +00:00
Jihoon Kim 94cf5e7829 From: Jihoon Kim <jihoon48.kim@samsung.com>
Subject: Re: [E-devel] [Patch] Add XIM module for ecore_imf

Patch to set the right window ID for IMF access from Edje



SVN revision: 61756
2011-07-26 12:04:27 +00:00
WooHyun Jung 7a205c0ef6 edje : Password's last char show feature supported. This patch is made
by Shilpa.


SVN revision: 60858
2011-06-30 05:31:08 +00:00
Cedric BAIL c83256416a edje: refactor text_class and color_class code.
SVN revision: 60627
2011-06-23 09:55:57 +00:00
Cedric BAIL 6d4c47e879 edje: fix huge memory leak.
SVN revision: 60593
2011-06-22 14:51:53 +00:00
Cedric BAIL 66098e4c82 edje: don't forget to del text_class when destroying object.
SVN revision: 60585
2011-06-22 09:47:16 +00:00
Cedric BAIL e8ec9f6c50 edje: update hints after loading GROUP.
SVN revision: 60026
2011-06-07 07:43:32 +00:00
Cedric BAIL 3a69fed6f5 edje: trying to add back my small improvements.
SVN revision: 59999
2011-06-06 17:47:32 +00:00
Cedric BAIL 993b27c50f edje: set parent earlier.
SVN revision: 59996
2011-06-06 17:29:07 +00:00
Carsten Haitzler d02f25e1ff whover did table and box support forgot:
1. table to have min.h/v ability like box
2. to ACTUALLY implement box h/v (and well of course implement
tableh/v too)

this basically fixes this working at all and completes the feature to
table too.



SVN revision: 59960
2011-06-04 15:58:02 +00:00
Carsten Haitzler 1b7ff0248e CEDIRC: SEGV CAUSING BUG. go to e17 font settings -> advanced
and sewt a font for menu item.. or menu title. segv. (try it under
falgrind) the members list in the hash is garbage when its trying to
remove a member. double heck your changes and test :)



SVN revision: 59902
2011-06-02 15:21:21 +00:00
Cedric BAIL 995527500a edje: improve speed when deleting text member class.
SVN revision: 59850
2011-05-31 16:51:48 +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
Tom Hacohen 30847d0bdc Edje text: Added edje_object_part_text_append.
SVN revision: 59407
2011-05-15 15:57:38 +00:00
Brett Nash 6894af9d5e Edje: (trivial) Put the clipper/evas pointer in the base structure.
I say trivial in the sense it has no functional changes, however it's a large
patch.  Recommendation from Gustavo.

SVN revision: 58080
2011-03-25 03:21:07 +00:00
Brett Nash 8c2df9fc33 Edje: Minor: Reorder args to make it compatible with smart_clipper
SVN revision: 58054
2011-03-24 03:12:39 +00:00
Brett Nash 4c7200cc6a Edje: remove pointless call to _edje_fetch
Also tag edje_fetch as pure... since it's pretty clean.

SVN revision: 57960
2011-03-22 05:32:21 +00:00
Cedric BAIL d0810de637 edje: add PROXY part.
example:

collections {
   group {
      name: "main";
      parts {
         part {
            name: "sub1";
            type: GROUP;
            source: "sub1";

            description {
               rel1.relative: 0.5 0.5;
               rel2.relative: 1.0 1.0;
            }
         }

         part {
            name: "pro2";
            type: PROXY;

            description {
               rel1.relative: 0.0 0.5;
               rel2.relative: 0.5 1.0;
               source: "sub1";
               color: 255 0 0 128;

               map {
                  on: 1;
                  smooth: 1;
                  rotation {
                     z: 30;
                  }
               }
            }
         }
      }
   }

   group {
      name: "sub1";
      parts {
         part {
            name: "rect";
            type: RECT;

            description {
               rel1.relative: 0.0 0.0;
               rel2.relative: 0.5 0.5;
               color: 255 0 0 255;

               map {
                  on: 1;
                  smooth: 1;
                  rotation {
                     z: -30;
                  }
               }
            }
         }

         part {
            name: "pro1";
            type: PROXY;

            description {
               rel1.relative: 0.5 0.0;
               rel2.relative: 1.0 0.7;
               color: 128 128 0 128;
               source: rect;
            }
         }
      }
   }
}




SVN revision: 57694
2011-03-11 17:46:29 +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
Tom Hacohen 086d199799 Edje: Bumped EDJE_FILE_MINOR for the previous size_range changes.
SVN revision: 57412
2011-02-28 13:27:15 +00:00
Tom Hacohen 7bf5ba8a7b Edje text: Added size_range to limit the font size range.
This lets you limit the allowed sizes of the TEXT part (font sizes) to
a specific range. This is especially useful in combination with the
"fit" property.

SVN revision: 57395
2011-02-27 18:09:03 +00:00
Tom Hacohen 7a66e72df5 Edje entry: Added edje_object_part_text_cursor_pos_get/set.
This adds the ability to control the text position of an edje_entry.
Patch by Jihoon Kim.

SVN revision: 57365
2011-02-27 10:25:22 +00:00
Cedric BAIL c54cc95085 edje: fix signal comming from box/table part.
Thanks to the report by Jonathan "Watchwolf" Atton.


SVN revision: 57299
2011-02-24 14:41:08 +00:00
Tom Hacohen 5e33a75553 Edje: Added mirrored mode. Mirrored mode is used for UI-mirroring. It lets you mirror edje objects automatically (it also sends signals to the .edc code so you can do tweaks if you want), no need to create a special theme just for rtl layouts.
This is controlled by the two added API functions.
The changes in Elementary that utilize these functions will be committed soon.

SVN revision: 56635
2011-02-01 13:26:49 +00:00
Carsten Haitzler e13a158ef4 (minor) don't need 2 struct members anymore. mem use--
SVN revision: 56622
2011-02-01 09:13:23 +00:00
Tom Hacohen b34172c91e Edje entry: Added cursor_mode to edje to toggle between UNDER (efl/terminal) and BEFORE (gtk/rest of the world) cursor modes.
SVN revision: 56547
2011-01-30 10:46:33 +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
Vincent Torri c69cd7ec27 use size_t when it does not hurt
SVN revision: 55548
2010-12-14 06:19:30 +00:00
Vincent Torri aad53ed90d do not include some headers if vc++ is used
SVN revision: 55547
2010-12-14 05:56:46 +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
Cedric BAIL 26ba1c03e3 * edje: fix signal comming from aliased part.
I needed to bump minor file format version, but it will only
	change behaviour for people using alias for part and they
	couldn't use the signal emitted by them.


SVN revision: 53305
2010-10-12 13:26:18 +00:00
Carsten Haitzler 57d15d3ef8 actually hook in filter callbacks - have 2 types and pass in enum to
each as to what text they are seeing to filter. fix up other typdef
uses.



SVN revision: 52975
2010-10-02 03:34:00 +00:00
Gustavo Sverzut Barbieri abc87fd449 Adding a transition layout animation for edje box.
Perform an animation when changing the layout from an edje box.

By: Otavio Pontes <otavio@profusion.mobi>

-------

Sample EDC:

{{{

collections {
   group {
      name: "main";
      min: 500 500;
      max: 500 500;
      parts {
         part {
            name: "bg";
            type: RECT;
            description {
               color: 255 255 255 255;
               rel1 { relative: 0.0 0.0; }
               rel2 { relative: 1.0 1.0; }
            }
         }
         part {
            name: "box1";
            type: BOX;
            description {
               state: "default" 0.0;
               box {
                  layout: vertical;
                  padding: 0 0;
               }
               rel1 {
                  relative: 0.0 0.0;
               }
               rel2 {
                  relative: 1.0 1.0;
               }
            }
            description {
               state: "default" 0.1;
               inherit: "default" 0.0;
               box {
                  padding: 10 10;
                  layout: horizontal;
               }
            }
            description {
               state: "default" 0.2;
               inherit: "default" 0.0;
               box {
                  layout: vertical;
               }
               rel1 {
                  relative: 0.0 0.0;
                  offset: 100 100;
               }
               rel2 {
                  relative: 1.0 1.0;
               }
            }
            box {
               items {
                  item {
                     name: "rect1";
                     type: GROUP;
                     source: "grp_rect1";
                     weight: 1.0 1.0;
                     align: -1 -1;
                  }
                  item {
                     name: "rect2";
                     type: GROUP;
                     source: "grp_rect2";
                     weight: 1.0 1.0;
                     align: -1 -1;
                  }
               }
            }
         }
      }
      programs {
         program {
            name: "change_layout";
            signal: "mouse,clicked,1";
            source: "box1";
            action: STATE_SET "default" 0.1;
            target: "box1";
            transition: LINEAR 5.0;
            after: "change_back";
         }
         program {
            name: "change_back";
            action: STATE_SET "default" 0.2;
            target: "box1";
            transition: LINEAR 5.0;
         }
     }
   }
   group {
      name: "grp_rect1";
      parts {
         part {
            name: "r1";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 255 0 0 255;
               rel1 { relative: 0.0 0.0; }
               rel2 { relative: 1.0 1.0; }
            }
            description {
               state: "default" 0.1;
               inherit: "default" 0.0;
               color: 255 0 0 255;
            }
         }
      }
   }
   group {
      name: "grp_rect2";
      parts {
         part {
            name: "r2";
            type: RECT;
            description {
               state: "default" 0.0;
               color: 0 255 0 255;
               rel1 { relative: 0.0 0.0; }
               rel2 { relative: 1.0 1.0; }
            }
            description {
               state: "default" 0.1;
               color: 0 0 255 255;
            }
         }
      }
   }
}

}}}



SVN revision: 52871
2010-09-29 00:28:54 +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
Iván Briano 14187a92d3 Don't include Edje_Edit.h in edje_private.h and make it obvious at compile time that this API is not meant to be used outside of editors.
SVN revision: 52593
2010-09-22 14:52:23 +00:00
Cedric BAIL 8102552b7a * edje: cleanup aspect code and reduce memory presure.
SVN revision: 52304
2010-09-15 14:15:23 +00:00
Carsten Haitzler c1c7e901f5 CEEEEEEEEEDRICCCCCCCCCCCCCCCC!
borked e conf panel. unbork. disable aspect.



SVN revision: 52273
2010-09-14 22:32:34 +00:00
Cedric BAIL d1203fc0ca * edje: fix edje use of aspect when constrained by min or max.
NOTE: If you have swallow or parts that where constrained by min and
	max, and you used aspect on them, expect change on your layout.


SVN revision: 52244
2010-09-14 15:36:16 +00:00
Lucas De Marchi 3bec660090 Fix common misspellings
Following misspellings were fixed:

ammount->amount
arbitary->arbitrary
begining->beginning
carefull->careful
choosen->chosen
commited->committed
endig->ending
existance->existence
existant->existent
isnt->isn't
occured->occurred
postion->position
rougly->roughly
runing->running
shouldnt->shouldn't
soem->some
succesfully->successfully
succesful->successful
sucessful->successful
tranformed->transformed
usefull->useful
wehn->when
wich->which



SVN revision: 51988
2010-09-08 11:50:05 +00:00
Brett Nash 4bf9ee3df3 Merge branch 'elmdnd'
Conflicts:
	trunk/TMP/st/elementary/.gitignore

SVN revision: 51935
2010-09-07 06:56:16 +00:00
Carsten Haitzler fa19a2685b evil after alloca
SVN revision: 51639
2010-08-25 10:38:15 +00:00
Carsten Haitzler 195960ebac compile in windows again - i think. eapi hackery.
SVN revision: 51638
2010-08-25 10:37:08 +00:00
Cedric BAIL 800b1af09e * edje: add file minor version field.
It will show a warning when loading file that may use feature from
	newer edje (show up with EINA_LOG_LEVEL=2 in the env).

	Please don't forget to increase it when you add feature to edje
	file format without breaking backward compatibility.


SVN revision: 51636
2010-08-25 09:56:20 +00:00
Carsten Haitzler f54f39eb39 alloca header fix for edje.
SVN revision: 51634
2010-08-25 09:25:36 +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
Mike Blumenkrantz bba476aa91 char* -> const char*
Patch by Fabiano "I'm smoking crack" Fidêncio


SVN revision: 51152
2010-08-16 03:50:27 +00:00