Commit Graph

213 Commits

Author SHA1 Message Date
rephorm 8cda88c2e6 Add initial support for edje gradients. See data/src/gradient.edc for an example.
SVN revision: 24361
2006-08-02 10:52:44 +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 2f82204b7b revert cedrics patch for font stuff - it breaks textblocks
SVN revision: 23681
2006-07-03 06:15:05 +00:00
Carsten Haitzler 334eb3a389 cedrics font hash lookup speedup :)
SVN revision: 23644
2006-07-02 06:18:18 +00:00
Carsten Haitzler 5a3be0fd8c zigs patch for edje adding more embryo script power to set state vals
SVN revision: 23616
2006-06-28 18:31:56 +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 24b55bb6c2 Add edje_color_class_del(), edje_object_color_class_del() and edje_color_class_list().
Use stringshare for cc names.


SVN revision: 19862
2006-01-17 02:41:26 +00:00
rephorm 0b56671b3e color class blocks in edje.
this allows you to specify the default color for any parts using color_classes in a given file.

this color will be overridden by edje_color_class_set()
which will in turn be overridden by edje_object_color_class_set()

note. if you specify a color (color: ...) in a part description that also has a color_class, the cc will be multiplied against the color -- generally not what you want.

also, as a tip, the gimp's 'multiply' blend mode is almost exactly the same as evas/edje's coloring.


example:

...
part {
  name: "colored";
  type: RECT;
  description {
    state: "default" 0.0;
    color_class: "bg_color";
    /* note: no color: set here */
  }
}
...
color_classes {
  color_class {
    name: "bg_color";
    color: 229 239 255 255;
  }
}


SVN revision: 19707
2006-01-11 03:19:45 +00:00
Carsten Haitzler 53b57f67a6 visibility -> off
SVN revision: 19682
2006-01-10 07:34:48 +00:00
Carsten Haitzler 7554f8ee36 actually make symbol hiding work!
SVN revision: 19314
2005-12-27 17:17:31 +00:00
Carsten Haitzler 430b2a1901 use stringshare! :)
SVN revision: 18728
2005-11-30 09:56:15 +00:00
Carsten Haitzler e5856869df no need to alloc path and part strings if its cached and thus shared
anyway... so detect and re-cycle :)


SVN revision: 18677
2005-11-28 09:54:06 +00:00
rbdpngn ba901efc05 Use the style features available in evas text objects to avoid creating more
evas objects. This saves up to 25 text objects per text part for soft shadows.


SVN revision: 18645
2005-11-26 08:14:34 +00:00
Carsten Haitzler 25ee716746 push/pop vm on the fly - saves a chunk of ram.
SVN revision: 18625
2005-11-24 03:23:01 +00:00
Carsten Haitzler 36db7b296f add elipsis direct control
SVN revision: 18326
2005-11-06 03:32:01 +00:00
Carsten Haitzler bcab625b79 fix det leeek
SVN revision: 18209
2005-11-02 08:13:56 +00:00
Carsten Haitzler 3b20105112 minor leak--
SVN revision: 18142
2005-10-30 09:06:45 +00:00
Carsten Haitzler 208de4897a the first wave of evas smart object modes. commit hell #1. :) other things
still need updating in cvs - but i am sure others can do that :)


SVN revision: 18001
2005-10-27 02:44:36 +00:00
Carsten Haitzler 503de08b68 code3 clean - move code to special files and maybe fix a bug?
SVN revision: 17187
2005-10-05 08:38:04 +00:00
Carsten Haitzler a4fc9aa9ba fix typos in edje docs patch from martin :)
SVN revision: 16821
2005-09-21 03:11:31 +00:00
Carsten Haitzler 2c69e593a8 hmm - make min size calculation mroe accurate and handle corner cases...
SVN revision: 16760
2005-09-19 06:51:49 +00:00
Carsten Haitzler ab19b67038 blame: TILMAN:
1.73         (tsauerbe 29-Oct-04): #ifndef ABS
1.74         (tsauerbe 29-Oct-04): #define ABS(x) (x < 0 ? -x : x)

no ()'x around x - thus the part finder couldnt calculate distance of valued
parts properly! :) now it finds the right numbered part :)


SVN revision: 16758
2005-09-19 03:13:23 +00:00
Carsten Haitzler 3ac48d63ae and edje started supporting.... TEXTBLOCK2!!!!!
see e_logo.edc for an example. :)


SVN revision: 16698
2005-09-12 09:43:49 +00:00
sebastid e3ad2acd61 Add missing headers, and define MIN
SVN revision: 16552
2005-09-05 10:46:04 +00:00
Carsten Haitzler 3c16cf0327 ug callback that deletes the object that is bing walked for callbacks...
ouch.. fix.


SVN revision: 15932
2005-07-28 13:39:23 +00:00
Carsten Haitzler 24e1406536 pavel's patch. :)
SVN revision: 15905
2005-07-26 13:59:03 +00:00
Carsten Haitzler c3d08acb8b file and collection cache - this should remove a lot of file io... :)
SVN revision: 14081
2005-04-03 11:43:00 +00:00
tsauerbeck f06dec0f74 sanitize border scaling middle something logic. if the property needs to set to 'true' to be disabled, we better name it that way. this breaks eet compatibility, but since the previous commit is still young, i don't increment the version ids
SVN revision: 14048
2005-03-31 17:26:31 +00:00
Carsten Haitzler 62b9246441 support unfilled centers...
SVN revision: 14038
2005-03-31 11:40:05 +00:00
Carsten Haitzler 6938a5eb5f suport fontset appends
SVN revision: 13808
2005-03-20 16:49:10 +00:00
tsauerbeck 057ae3dfa5 Decompiler improvements: Edjes now contain a 'compiler' entry, which is set to the executable that's used to compile an Edje. edje_decc does some sanity checking on this string, to prevent exploitation.
SVN revision: 13754
2005-03-16 18:39:39 +00:00
Dan Sinclair 64fd36e92f - clean up the _edje_color_class_hash and _edje_text_class_hash on
edje_shutdown


SVN revision: 12943
2005-01-13 06:29:52 +00:00
Carsten Haitzler 96c09fd010 handle double/triple click again
SVN revision: 12397
2004-12-07 13:31:15 +00:00
tsauerbeck f6d680ad4b added support for a few more properties for the custom state stuff
SVN revision: 12135
2004-11-02 17:31:56 +00:00
tsauerbeck 67defc4296 trying to make the code more readable
SVN revision: 12082
2004-10-30 12:19:33 +00:00
tsauerbeck 42a26cb3db cleaned up autotools setup some more
SVN revision: 12080
2004-10-30 11:47:23 +00:00
rephorm 135d3ca91d Merge contents of Edje_Edit.h back into edje_private.h
Remove all traces of edje_edit (hopefully i didn't miss any).


SVN revision: 12071
2004-10-30 02:47:33 +00:00
tsauerbeck 82db225041 tweak
SVN revision: 12061
2004-10-29 15:43:50 +00:00
tsauerbeck 222cbec230 Oops2
SVN revision: 12060
2004-10-29 15:14:43 +00:00
Carsten Haitzler 90bac49c4f use animators... :)
SVN revision: 11521
2004-09-05 08:11:36 +00:00
tsauerbeck cdd01dee53 increment EDJE_FILE_VERSION because of the recent font directory additions
SVN revision: 11447
2004-08-30 16:08:31 +00:00
rephorm 0cccbd1d40 Add a Font_Directory to Edje_File
Check fonts against directory entries.


SVN revision: 11438
2004-08-30 05:39:24 +00:00
tsauerbeck 6c0e20d5e0 warning fixes
SVN revision: 11339
2004-08-24 10:06:33 +00:00
Carsten Haitzler 5ff4a5b272 fully supported message queues now. that was a chunk of work!
SVN revision: 10663
2004-07-02 10:17:25 +00:00
Carsten Haitzler 6393094fb7 werd up to ma homies yo... err - i mean - message queue now uses more
standard structs for messages, and i allow the message queue to fee itsel for
up to 8 iterations before forcing us to rever to normal loop processing
again. this shoudl cover most soignal emit/respond cases in normal usage
without forcing more loop to run and possibly a render.


SVN revision: 10662
2004-07-02 03:24:56 +00:00
Carsten Haitzler 5b506efe2c 1. fix a leak. i was naughty. spank spank
2. message queue is in - i am currently not surer if i shoudl go with this
varags api internally ot move to a more manual "build a list" thing... but the
message queue does work - i've moved signals to use it.


SVN revision: 10653
2004-07-01 03:46:05 +00:00
Carsten Haitzler 8c5069a658 add stuff for evoak... and edje list vars... :)
SVN revision: 10424
2004-06-03 09:14:55 +00:00
Carsten Haitzler d22c821b4a timers and animators are now supported from the embryo scripts - WOOO!
examples in e_logo.edc

errr - the animators may have problems if somehow aan animator is deleted or
object deleteded or file changed while running thru the list...


SVN revision: 9567
2004-04-02 09:16:53 +00:00
Carsten Haitzler 6670c61e33 alloca...
SVN revision: 9564
2004-04-02 00:16:21 +00:00
Carsten Haitzler 7bd60e9cb0 busy adding some MEAT to edje's embryo script support. just added
"persistent" variables - ie tied to each instance of an edje object and you
can save/load via get_int() set_int() get_float() set_float(), get_str(),
get_strlen() and set_str(). the values are fetched/stored wherever you do
these calls. you need a public variable declaration to indicate you want to
use a global var, and use this variable handle as the variable index - edje
will init it for you.

e_logo.edc has some examples...
:)

this solves being able to keep state like if a check button is enabled or
disabled etc. etc. etc.
then i guess its onto the rest of the calls...


SVN revision: 9526
2004-03-30 10:30:35 +00:00
Carsten Haitzler 3821f74e99 and.... edje_cc can take small code snippets in script{} areas and compile
them, include them int eh edje.eet and edje can run them. all i have to do
now is actually give the small scripts an api worht talking about


SVN revision: 9514
2004-03-28 05:26:17 +00:00
Carsten Haitzler 59a6f2c4b0 embryo support... started. :)
SVN revision: 9487
2004-03-26 09:10:05 +00:00
Carsten Haitzler 92b6f79c2e fixed a leak... patches from trill... need to go thru my mail....
SVN revision: 9281
2004-03-08 02:43:48 +00:00
rephorm 160e4083c1 The beginnings of Edje_Edit, a lib for editing edje .eet files.
Doesn't do all that much yet, and I don't have much time, but I thought i'd get
it started at least. Feel free to add to, or even completely change things.


SVN revision: 9034
2004-02-20 03:20:10 +00:00
Carsten Haitzler b2102064ed cleanies
SVN revision: 8574
2004-01-20 01:04:16 +00:00
atmosphere b29897bd7d apparently char is unsigned by default on my compiler
SVN revision: 8566
2004-01-19 19:28:38 +00:00
tsauerbeck 7ebc004b74 more memory management cleanups. fixed some warnings.
SVN revision: 8357
2004-01-12 19:21:25 +00:00
tsauerbeck aa22ce4442 more memory management improvements. applications should call edje_shutdown() now.
SVN revision: 8355
2004-01-12 17:41:48 +00:00
Carsten Haitzler 19fdd7fbe7 thanks tillsan! :) leak found. leak fixed. happy pants!
SVN revision: 8351
2004-01-12 02:13:11 +00:00
Carsten Haitzler 614486c43c fix dragables! eeek! :)
SVN revision: 8211
2003-12-25 23:57:18 +00:00
rbdpngn 6bee6d788d Avoid memory corruption by cleaning up parts at the correct time.
SVN revision: 7942
2003-11-25 07:22:19 +00:00
rbdpngn 17678212d6 Global text and color class manipulation. Settings on individual edje's will
override the global values.


SVN revision: 7795
2003-11-04 06:15:19 +00:00
rbdpngn c5366158c7 Moved the text_class into the description's text section.
SVN revision: 7773
2003-10-31 05:07:39 +00:00
rbdpngn 2042be6db7 Spelling cleanup, though it feels kinda dirty "correcting spelling" on a word
that doesn't exist.


SVN revision: 7767
2003-10-30 04:45:18 +00:00
rbdpngn f5c22b148b Slight re-organization of color classes, now can be set per-description rather
than per-part. This will probably break old edje's.


SVN revision: 7759
2003-10-29 06:42:03 +00:00
Carsten Haitzler c2ce9b7c48 load error fetching
SVN revision: 7674
2003-10-20 06:10:09 +00:00
Carsten Haitzler ea5bb6fb5d clean...
SVN revision: 7461
2003-09-18 00:43:02 +00:00
Carsten Haitzler df683295dd dragables are about complete now.. with new actions, page and step values....
all happy & smelly.


SVN revision: 7395
2003-09-01 02:53:08 +00:00
Carsten Haitzler 4c51ac32d8 IMMENSELY evil!
akuma no code desu!

there are a LOT of paths that lead to calling external callbacks froma
pgoram thaty will invalidate the loop or code just after that call-
causing... segv's and all sort sof fun goodies. i've blocks/locks off a lot
of them... i hope i haven't missed any - but it's likely. tread carefully
within callbacks!


SVN revision: 7375
2003-08-26 00:16:49 +00:00
Carsten Haitzler d3ad6fedd9 the basics of dragables work. signals are generated properly. there's calls
to set/get dragable size relative to its confie and is value relative to its
cofine, query what directiosn a dragable can be dragged. you shoudl be able
to do scrollbars - except scroll arrows internally in edje making the
scrollbar move.


SVN revision: 7324
2003-08-15 13:35:25 +00:00
Carsten Haitzler 211959c6c0 separate x & y relative "to" params. the old .edc format is still supported
where "to" implies both x & y. to_x == only in x dir, to_y == only in y dir :)


SVN revision: 7315
2003-08-14 03:22:38 +00:00
Carsten Haitzler 97700a07e9 make ending programs safe while iterating
SVN revision: 7314
2003-08-13 11:03:20 +00:00
Carsten Haitzler 516e43fc09 you can add arbitary key/value pair strings to either 1 the edje file .eet as
a whole and/or to each collection in the edje .eet file (different
namespoaces with each collection having its own namespace) :) this shoudl
make Rbdpngn happy :)


SVN revision: 7288
2003-08-05 14:33:35 +00:00
Carsten Haitzler 2b97e3a86a respect minw/h on load of edje file...
SVN revision: 7287
2003-08-05 13:38:44 +00:00
Carsten Haitzler 107230b052 fix 1 memleak...
SVN revision: 7264
2003-07-30 02:58:22 +00:00
Carsten Haitzler a8ed74dc0b more features... working on fixme list.
SVN revision: 7249
2003-07-27 13:16:51 +00:00
Carsten Haitzler 9a9a28fa14 some notes for me about edje program expansions..
SVN revision: 7219
2003-07-23 05:19:50 +00:00
Carsten Haitzler 3d128a9cdc min.max size properties now per edje collection can be specified in the edje
.edc file and can be accessed. the min_size_get has become a min_size_calc
since it does actually calculate it.

also swallowed edjes will be queried for their own min/max size and that will
be used to further limit the part that swallows. also you can attach
properties to any old evas object so it will have min/max size properties
(maybe one day this can go into evas itself?). also swallowed objects if
deleted before the parent edje will "unswallow" themselves properly :)


SVN revision: 7195
2003-07-20 12:37:49 +00:00
Carsten Haitzler f212675a33 optimizing. Glassy's matrix.eet works MUCH faster now. basically edje was not
very efficient at matching hundreds of prgorams up to lots of signals always
ticking off. i've optimized it now with a match (and no_match) cache so if an
input signal (and source) combination is known not to match anything, it's
cached after the first full check and henceforth avoids extra checks. the
cache is realyl simply right now - i could optimize it a bit to avoid excess
memory usage though...


SVN revision: 7189
2003-07-20 02:08:47 +00:00
Carsten Haitzler a7282b534b you can query the state of a part now
SVN revision: 7180
2003-07-16 13:50:28 +00:00
Carsten Haitzler fa42fa6de5 global freeze/thaw. much more optimial for COMPLEX edjed that take a fair bit
of grunt to re-calculate. avoid caclulations until idle time by freezing and
thawing appropriately pre/post render


SVN revision: 7178
2003-07-16 05:15:15 +00:00
Carsten Haitzler 565c76645a 1. types declared as int, not uchar. thansk rbdpgn! :)
2. you can query the REAL minimum size of an edje too.


SVN revision: 7168
2003-07-15 08:26:06 +00:00
Carsten Haitzler 181da0cf37 break out of while loops!
SVN revision: 7167
2003-07-15 02:21:58 +00:00
Carsten Haitzler 395743c598 edje can now swallow other evas objects... including... other EDJES! :)
SVN revision: 7166
2003-07-13 06:19:09 +00:00
Carsten Haitzler a23287c9fe tect & colorclasses - in theory, work. must test!
SVN revision: 7164
2003-07-13 02:06:46 +00:00
Carsten Haitzler 426a67340f build cross-compiled version. edje on ipaq's :)
SVN revision: 7126
2003-07-10 13:34:04 +00:00
Carsten Haitzler 073e9b47c6 api change... yes i know. sorry! but it's early days. this is much cleaner
using better namespacing.


SVN revision: 7119
2003-07-08 10:08:15 +00:00
Carsten Haitzler 1b587fd598 work has been done while i've been away. i just need to put this in cvs. many
fixem's have been fixed. text parts work fully now, ALONG with all their
respective effect modes, fits, alignments and "chopping". a few more api
calls have been added and cleaned up. you'll need to update eet too for this
to work.


SVN revision: 7113
2003-07-07 07:55:18 +00:00
Carsten Haitzler 1bf1f933a9 "random" ranged delays are now allowed before a program starts... in fact any
program. just provide an "in, 10.0 5.0;" line in the progrma to say "start
thew program in (10.0 + (random value from 0.0 - 5.0)_ seconds from the time
it is triggered. you can simply delay the program with a constant by making
the range 0.0.


SVN revision: 7104
2003-06-28 04:20:41 +00:00
Carsten Haitzler 62d66a7d63 nuke some FIXME's. smooth parameter now added for fills. program infinite
loops are now detected and limited to a recursion limit of 64 levels.


SVN revision: 7103
2003-06-28 03:08:25 +00:00
Carsten Haitzler 9ab9ba283d went through some more of the fixme list and fixed 'em
SVN revision: 7098
2003-06-26 14:04:31 +00:00
Carsten Haitzler 1da3fe4a5b consistant signal names! :)
SVN revision: 7094
2003-06-25 23:36:44 +00:00
Carsten Haitzler 1e190a8ac4 Edje now has some semblance of basic documentation.
SVN revision: 7090
2003-06-25 08:28:21 +00:00
Carsten Haitzler fbcf7fc180 more fixme's fixed. more fixme's added. edje is moving.
SVN revision: 7078
2003-06-25 02:29:25 +00:00
Carsten Haitzler 969629dfb2 1 mega-file (edje_main.c) split up into saner-to-manage files.
SVN revision: 7070
2003-06-24 02:33:04 +00:00
Carsten Haitzler 5ca68b4894 freeze/thaw stuff in for more optimum recalculation
SVN revision: 7063
2003-06-22 08:37:28 +00:00
Carsten Haitzler 13bac758b5 fixed bug where instant changes didnt happen if no animation was happening.
forgot a call to recalc. also added "Ckiecked" signals... working thru the
todo list.


SVN revision: 7062
2003-06-22 07:58:54 +00:00
Carsten Haitzler e863599780 more fixme's added, more fixed up. external callbakcs are now in. calling
application can emit signals now too.


SVN revision: 7051
2003-06-21 02:51:01 +00:00
Carsten Haitzler 4521ca1f87 signal emit action added
SVN revision: 7050
2003-06-20 13:41:00 +00:00
Carsten Haitzler 53f0296ad6 a fixme list added, and 1 segv removed! :)
SVN revision: 7048
2003-06-20 09:38:27 +00:00
Carsten Haitzler 6d14ff4b85 to doubles...
SVN revision: 7047
2003-06-20 00:25:09 +00:00
Carsten Haitzler 27d69a4698 emissions now for the part collection soruce is now "". fixed a tinsy parser
bug for parsing "". emissions now wont recurse - but they may loop. hmm need
to limit that - easy to do this way though.


SVN revision: 7046
2003-06-19 23:56:27 +00:00
Carsten Haitzler 5427be918c Adding code to handle programs, signals, emissions, loops, animation, timers
and the whole lot. it WORKS! :) just re-run the e_logo.sh to rebuild an edje
.eet file that has animation built in... you'll see.


SVN revision: 7044
2003-06-19 14:43:49 +00:00
Carsten Haitzler 627991bf24 workin g on the code... looking cleaner. properly have shared data hashes.
started putting in infrastructure to do edje part programs.


SVN revision: 7043
2003-06-18 14:20:26 +00:00
Carsten Haitzler 8cb638f08f the edje test program displays an edje .eet file now! build it all then:
cd data
./e_logo.sh
cd ..
./src/bin/edje

you can resize the window to watch the edje "bit" resize. this is just held
togetehr with sitckytape right now... its not done right.. it's only a
bootstrap - but it works. it needs to be cleaned up. definitely. will be
working on that.


SVN revision: 7041
2003-06-17 08:15:06 +00:00
Carsten Haitzler 0d2194a7b5 edje_cc can now fully parse my test edje input "test.edc" file and build a
properly formed test.eet output file including inlined images, data structs
and all. it can display verbose output infomration if you use the -v flag.
the only problem now is that no sample .edc files are shipped. I'll make one
or 2 better ones and include them.


SVN revision: 7033
2003-06-16 13:55:13 +00:00
Carsten Haitzler 5d7c4d02e0 we parse.... MORE! :) order is now irrelevant of how you delcare images or
parts and what they are relative to/use. the lookups are put off until just
before write-out. order of parts still is the stacking order though.


SVN revision: 7020
2003-06-14 03:06:36 +00:00
Carsten Haitzler 2f63ba5e91 edje_cc is beginning to do something. it parses the image section properly
and builds the memory data struct right, and writes the data struct out via
eet. need to parse the rest, build data structs and write them out ttoo. need
to write out images too.


SVN revision: 7002
2003-06-09 13:51:40 +00:00
Carsten Haitzler c2137f09bb more code & work on ejde. started on edje_cc.
SVN revision: 7001
2003-06-09 11:31:33 +00:00
Carsten Haitzler 3df3c11966 Added more geometry calculation code. This function is beginning to get
rather large, but then again so are the number of geometry parameters, so
it's only fair. This should cover calculating all parameters given a signle
descriptor and given rel_to_1, rel_to_2, confine_to objects. Only calculation
of text params is left. I think that will be as simpl as a "copy them across
from the description", but I may yet decided to complicate that a bit.


SVN revision: 6973
2003-06-03 14:00:52 +00:00
Carsten Haitzler 664d811ff9 in we go edje... no it doesnt do anything useful at the moment...
SVN revision: 6968
2003-06-02 23:49:56 +00:00