Commit Graph

124 Commits

Author SHA1 Message Date
Cedric BAIL fa66dbf40a Remove Evas list from Edje and use Eina instead.
SVN revision: 36961
2008-10-22 11:34:42 +00:00
Carsten Haitzler 7428272b25 and support anchors now. fix up other nigglies. very solid now.
SVN revision: 36741
2008-10-17 06:40:46 +00:00
Carsten Haitzler ab9c9c71d3 edje entry growing.
SVN revision: 36709
2008-10-16 09:17:44 +00:00
Cedric BAIL b489e1936b Switch evas_stringshare to eina_stringshare.
SVN revision: 36672
2008-10-15 14:11:11 +00:00
Carsten Haitzler af9a085880 and more entry support.
SVN revision: 36665
2008-10-15 09:58:25 +00:00
Carsten Haitzler 58841dae63 edje uses size min/max and aspect hints in evas - old extern blah calls
compatible and use the evas hints internally.



SVN revision: 36439
2008-10-05 03:37:37 +00:00
Gustavo Sverzut Barbieri fb44db2211 Revert edje_smart_calculate_v4_r2, it breaks e17 shelf resize.
Not ready yet, reverting...



SVN revision: 36031
2008-09-17 01:50:16 +00:00
Gustavo Sverzut Barbieri d044a0245a More svn:ignore
SVN revision: 36026
2008-09-16 19:44:20 +00:00
Carsten Haitzler aaa724d23c ok still doesnt work - FASTFREEZE shoudl work.. but dont.
SVN revision: 35925
2008-09-10 07:17:24 +00:00
Carsten Haitzler 673efdedd5 fix scaling on edje_scale - works with smnall sizes now too. problem is
really i was chasing a freeze/thaw problem. something is up.



SVN revision: 35922
2008-09-10 06:39:57 +00:00
Gustavo Sverzut Barbieri 0a75de51f0 Revert edje calculate optimizations.
Edje is tricky, it's event processing is too weird and Cedric's
changes to make it work are not working as expected. Edje freezes
itself while processing signals, but in mouse down cb it forces
recalculate, which seems was previously ignored, but now they are not.

We should look at how to fix this and then re-apply this patch.



SVN revision: 35908
2008-09-09 23:41:42 +00:00
Carsten Haitzler 23e2c9e035 support an edje scaling factor. parts can selectively say "yes.. scale me!"
:)... this allows e etc. to adapt to massivelyt different dpi screens with
slickness that even svg can't get to... why? you scale just what NEEDS
scaling (text, button sizes, and other limiting elements). other bits like
borders, padding etc. can remain pixel-perfect and thus the look is amazing.
pixel-perfect drawing with scalable adapting.



SVN revision: 35895
2008-09-09 14:13:34 +00:00
Gustavo Sverzut Barbieri 58a49c2f69 Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
2008-09-07 01:25:49 +00:00
Gustavo Sverzut Barbieri d428d6ec1d Add some consts to Edje's API.
Some methods do no change object internal state and can be marked as
read only. In parallel have infamous edje_object_part_object_get() to
return a read-only object, so it's even more clear that one should not
touch this object state (either a cast or a compiler warning if you do
that!)


SVN revision: 35485
2008-08-14 18:21:27 +00:00
Gustavo Sverzut Barbieri a85c8a5f2b Fix name incoherency: rename Edje->part to group.
It is very confusing to have "part" there and in the methods call,
because we want the group name, not part.


SVN revision: 35483
2008-08-14 18:04:43 +00:00
Davide Andreoli 464c92eece * fix compiler warnings
SVN revision: 35095
2008-07-13 13:55:43 +00:00
doursse c5623c01b3 reorganize header files inclusion. Fix some problems when compiling on Windows
SVN revision: 34768
2008-06-07 10:06:14 +00:00
Carsten Haitzler dde62f1882 add another constraint-aware min calc
SVN revision: 34297
2008-04-17 10:22:57 +00:00
Carsten Haitzler 368f148fef use hold event and emit hold,on and hold,off
SVN revision: 34161
2008-03-31 21:38:51 +00:00
doursse 8e386e3f73 remove trailing spaces
SVN revision: 34101
2008-03-24 08:22:01 +00:00
Christopher Michael 6fd085f0aa Fix formatting ugliness.
Add 'const' to evas_hash_foreach functions as per recent Evas changes.


SVN revision: 33748
2008-02-15 19:30:12 +00:00
Carsten Haitzler fff9c738a2 did some tests - this seems to be faster and seems to match correctly in some
test cases i brewed up. doesnt seem to break e so far and thats a fairly
comprehensive test.


SVN revision: 33515
2008-01-18 06:34:04 +00:00
Gustavo Sverzut Barbieri 3500a5c059 Fix calculation of maximum values for swallow parts.
Due my last change, the code was broken by edjes without a group
min/max, this happens because edje_object_size_max_get() returns
100000 for these objects, and this was being used as object maximum
size.

Current fix is a hack: just check for this value, now known as
EDJE_INF_MAX_*, but the real solution would be to return 0 (or -1) and
check for it in other parts of the code, but it's harder to get right.


SVN revision: 32123
2007-10-19 19:31:42 +00:00
Gustavo Sverzut Barbieri 8f12e90da0 Set pass_events to 0 if "mouse_events: 1".
I'm not sure this is the right thing to do, but since we're setting it
to 1 when "mouse_events: 0", it fix some problems.

Maye we shouldn't set this flag at all and let users have these
options set on clippers?


SVN revision: 32120
2007-10-19 16:07:43 +00:00
doursse 974152be16 remove trailingspaces
SVN revision: 31657
2007-09-08 18:31:56 +00:00
Gustavo Sverzut Barbieri eda1f13b33 Support for selectable pointer_mode.
Evas now support objects that do not grab mouse down event (NOGRAB) aside
with the default (AUTOGRAB). API is meant to be extensible.


SVN revision: 30950
2007-07-24 14:20:07 +00:00
Carsten Haitzler d6f9cc797e adrunko's precise event patch
SVN revision: 30939
2007-07-23 14:22:57 +00:00
Carsten Haitzler 24b62d0683 constness patches from cedric
SVN revision: 30848
2007-07-16 07:31:06 +00:00
Sebastian Dransfeld 50c700d439 Remove unused variable.
SVN revision: 30365
2007-06-17 07:09:02 +00:00
rephorm d4a055585b Add GROUP Parts to edje.
These can be used to automatically swallow in another group from the same file.

Parts within child groups can be referred to by a ':' separated 'full path' of
part names. Any API functions that take a part name will now accept a full path
also.

Signals emitted by child objects will be repeated up to the parents with the
source changed to be the path relative to the receiving object.  E.g in the
example below, a mouse moving over the lower light green rectangle would result
in the parent object recieving a "mouse,move" signal with source "bot:inner".

**** NEW RESTRICTION ****  part names should no longer include a ':' character.
This is not yet enforced by edje_cc, but will cause the part to be inaccessible
from the API.

Example EDC:

collections {
  group {
    name: "parent";
    parts {
      part {
        name: "top";
        type: GROUP;
        source: "child";
        description {
          state: "default" 0.0;
          rel2.relative: 1 0.5;
        }
      }
      part {
        name: "bot";
        type: GROUP;
        source: "child";
        description {
          state: "default" 0.0;
          rel1.relative: 0 0.5;
        }
      }
    }
  }
  group {
    name: "child";
    parts {
      part {
        name: "base";
        type: RECT;
        description {
          state: "default" 0.0;
          color: 160 208 8 255;
        }
      }
      part {
        name: "inner";
        type: RECT;
        description {
          state: "default" 0.0;
          rel1.offset: 10 10;
          rel2.offset: -11 -11;
          color: 210 228 76 255;
        }
      }
    }
  }
}


SVN revision: 30087
2007-05-27 05:28:07 +00:00
rephorm e954849ee1 Remove part list, using table everywhere instead
SVN revision: 30085
2007-05-26 23:57:21 +00:00
Stafford Mitchell Horne 61bda22a70 Add negative font size handling in text_classes
* negative size is a multiplier for the origianl size
 i.e. : -100 = 1.0x;  -120 = 1.2x


SVN revision: 29835
2007-05-03 23:15:09 +00:00
rephorm 766c1990c4 docs
SVN revision: 29523
2007-04-15 04:24:07 +00:00
Carsten Haitzler e0b17ee4ee 1. removed mosue_events 0 on swallows - as this now changes behavior. normalise
2. gustavo's patch.


SVN revision: 29352
2007-04-04 12:51:51 +00:00
Carsten Haitzler 7512a58ace swallow parent recalc etc. in.
SVN revision: 29351
2007-04-04 12:46:44 +00:00
Christopher Michael 7bab06fcb4 Use memset on fdata for edje_color_class_list and edje_text_class_list based on
help from RbdPngn, Seb & Rephorm...thanks guys :)


SVN revision: 28518
2007-03-01 22:39:01 +00:00
Christopher Michael dee90b02dd Properly fix edje_color_class_list.
thanks Sebastion :)


SVN revision: 28517
2007-03-01 21:53:33 +00:00
Christopher Michael fa64d7bb00 Fix edje_color_class_list so that it's usable with enlightenment_remote again.
SVN revision: 28513
2007-03-01 20:06:38 +00:00
Sebastian Dransfeld 43dd5f8882 No need to alloc Edje_List_Foreach_Data
SVN revision: 27583
2006-12-28 11:35:40 +00:00
Viktor Kojouharov 06ea50650b text_class_del/list functions
SVN revision: 27558
2006-12-24 10:29:16 +00:00
Carsten Haitzler 54184c2c37 add max text size for text objects - object wont get bigger than its text
contents. useful for some things.


SVN revision: 26439
2006-10-09 06:01:13 +00:00
Carsten Haitzler 2a8ce1da55 less noisy debug
SVN revision: 25209
2006-08-30 13:23:57 +00:00
moom 5014c11f2e * Add edje_object_part_object_get() to get the 'Evas_Object *'
corresponding to a given part.


SVN revision: 24912
2006-08-19 18:22:01 +00:00
Carsten Haitzler 3ea84d923f more external aspect support - all working nicely now
SVN revision: 24148
2006-07-23 19:33:27 +00:00
Carsten Haitzler 5de5999b5a allow code to specify an aspect for swallowed objects
SVN revision: 24145
2006-07-23 13:50:02 +00:00
Carsten Haitzler 155dbbbae8 dont set drag val if user already dragging
SVN revision: 22395
2006-04-29 14:15:16 +00:00
Stafford Mitchell Horne 39c1195176 Add ability for text blocks to use text classes
* Classes are defined at the tag level
 * Tags whithout classes inherit the parent class
 * text class defined by putting text_class=<class name> in tag style


SVN revision: 21518
2006-03-28 07:45:54 +00:00
stffrdhrn 46a61a67b7 Edje bug fixes:
* Add some comments
 * Fixup some const char */stringshare related compile warnings
 * Fix text classes


SVN revision: 21392
2006-03-19 04:22:35 +00:00
rephorm 89d591573a one more place that NULLS out the shared color class on delete.
SVN revision: 20099
2006-01-29 17:04:41 +00:00
rephorm af09f73295 damn wacked out indent style :)
SVN revision: 19884
2006-01-18 01:01:05 +00:00