Commit Graph

269 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 deb0057d7f edje: add EDJE_ASPECT_PREFER_SOURCE.
NOTE: this is a prototype, play with and report any issue to me.


SVN revision: 66937
2012-01-06 11:28:38 +00:00
Cedric BAIL f74f396d8d edje: fix edje recent brokeness with text flickering.
NOTE: it's just a partial revert of previous patch by
raster. Without that, some text were flickering going
on and off for sometime. I didn't take the time to
understand why, but by forcing the recalc it permanently
solve the issue.


SVN revision: 66903
2012-01-05 15:26:49 +00:00
Carsten Haitzler 12aa897e26 fixc new recalc cb to be able to call size min recalc in cb.
SVN revision: 66893
2012-01-05 05:21:02 +00:00
Carsten Haitzler ac8a671596 dont call recalc if doing calc only
SVN revision: 66849
2012-01-04 05:17:11 +00:00
Carsten Haitzler 61d66cf1b1 add the actual recalc smart callback code and docs.
SVN revision: 66843
2012-01-04 04:35:37 +00:00
Mike Blumenkrantz b8f17dd903 fix a pair of buffer overflows from r65619
SVN revision: 66121
2011-12-12 19:59:25 +00:00
Cedric BAIL 1593fbca3f edje: forgotten #if.
SVN revision: 65713
2011-11-30 10:57:30 +00:00
Cedric BAIL 7473d15aea edje: cleanup and more accurate evaluation of CURRENT.
SVN revision: 65642
2011-11-28 10:20:51 +00:00
Cedric BAIL 493b6a58d5 edje: fix typo and remove useless code.
SVN revision: 65637
2011-11-28 08:22:36 +00:00
Cedric BAIL af33528af8 edje: major cleanup of map calc in edje, now done inside Edje_Calc_Param.
NOTE: This was necessary for solving issue with the new CURRENT feature. I
don't like this massive change, but there is no way around. This patch is
only the first step, I will wait the full night before completly fixing
the issue with CURRENT.

WARNING: If this patch doesn't break svn, you must feel lucky and go play
money games. In all other case, please report any issue to the developper
mailing-list.


SVN revision: 65619
2011-11-27 23:55:37 +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
Carsten Haitzler 371874381b and actually always apply border_scale_by directly as-is even if
border_scale is not set.



SVN revision: 63944
2011-10-10 07:58:14 +00:00
Carsten Haitzler f18d4de8d5 add border_scale_by that adds another scaling factor for border
scaling. use it as a way of super-sampling borders (eg use 0.5 to use
2x over-sampling, 0.25 for 4x oversapling etc.)



SVN revision: 63938
2011-10-10 05:53:02 +00:00
Cedric BAIL 881244542d edje: refactor code.
SVN revision: 63620
2011-09-27 06:16:34 +00:00
Daniel Juyung Seo f915dca8ae edje edje_calc.c: Removed warnings.
SVN revision: 62729
2011-08-23 16:44:36 +00:00
Gustavo Sverzut Barbieri cc1d1f95c6 change text's single recalc to use apply version.
Original _edje_part_recalc_single_text() was not working as
expected since it was not doing size fit, range, ellipsis and so
on.

The purpose of this function compared with
_edje_text_recalc_apply() is to be faster, not calling Evas update
functions. However for text this is quite difficult given that to
fit we need to set the font, size, style, etc. If it was done
correctly, we'd save some calls to move and some color sets,
however those shouldn't matter much in the overall picture.

I've changed this to force applying the value, it should be more
correct and not so slow. The previous code is kept below for
reference but should be removed before next release!




SVN revision: 62640
2011-08-21 01:38:17 +00:00
Carsten Haitzler 87985a16fa and when doing proxy.. lets calc the right proxy id part shall we?
SVN revision: 62630
2011-08-20 13:03:01 +00:00
Carsten Haitzler 64aa704c69 fix: if proxy id < 0 (invalid) disable proxy...!!! (yes i know -
backport. leaving for 1.1)



SVN revision: 62623
2011-08-20 07:27:52 +00:00
Cedric BAIL 5c95f8d422 edje: fix cache and proxy.
SVN revision: 62464
2011-08-14 21:55:31 +00:00
Rafael Antognolli e53adf4789 edje/perspective - Actually use the global perspective.
The Edje object should use the global perspective if it didn't have its
own perspective set.



SVN revision: 62146
2011-08-05 18:08:07 +00:00
Cedric BAIL 8b674974f6 edje: remove warning.
SVN revision: 60553
2011-06-21 14:31:37 +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 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 0b0d51c5cf add text effect shadow direction support.
SVN revision: 58548
2011-04-11 12:08:03 +00:00
Carsten Haitzler 51a9855952 valign applied to tetxblock parts. yay!
SVN revision: 58203
2011-03-30 11:43:22 +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
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 998ffa4094 fix test min AND max bool flags to work right again. :)
SVN revision: 56280
2011-01-24 10:35:34 +00:00
Carsten Haitzler 567d9037fe type part gradient shouldnt cause an abort! just ignore it!
SVN revision: 56172
2011-01-16 04:11:47 +00:00
Carsten Haitzler b118d95efd use unused instead of dead code to silence warnings
SVN revision: 56167
2011-01-16 04:00:50 +00:00
Vincent Torri c69cd7ec27 use size_t when it does not hurt
SVN revision: 55548
2010-12-14 06:19:30 +00:00
Carsten Haitzler f1ec894769 fix inlined fonts again.
SVN revision: 53258
2010-10-11 07:24:46 +00:00
Gustavo Sverzut Barbieri 7ac13f931f better log.
* lower case domain names;

 * binaries use their own color (EDJE_CC_DEFAULT_LOG_COLOR)

 * log messages do not take multiple lines, it's annoying. The colors
   should call your attention already.

 * the ever annoying "did you forgot fixed: 1 1;" message that used to
   consume 3 lines is now bit more descriptive and uses a single line.



SVN revision: 53178
2010-10-08 00:24:22 +00:00
Leandro Pereira 9dc21add3a edje_cc: Don't dereference a NULL pointer on badly-formed .edj files.
(Should have been on r52931.)


SVN revision: 52932
2010-09-30 21:37:49 +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
Carsten Haitzler 82470f073e correctness!
SVN revision: 52618
2010-09-23 02:52:19 +00:00
Carsten Haitzler af2651748c int -> enum.
SVN revision: 52589
2010-09-22 13:27:09 +00:00
Cedric BAIL 8102552b7a * edje: cleanup aspect code and reduce memory presure.
SVN revision: 52304
2010-09-15 14:15:23 +00:00
Cedric BAIL 10356b8e50 * edje: turn it on again and go fix your theme :-)
SVN revision: 52303
2010-09-15 14:09:58 +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 2e87895f67 * edje: remove use of flags as it was always set to FLAG_XY
in _edje_part_recalc_single.


SVN revision: 52245
2010-09-14 15:53:47 +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
Cedric BAIL e687c13d1c * edje: fix interpolation of text color during animation.
SVN revision: 51782
2010-08-31 13:30:11 +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