Commit Graph

136 Commits

Author SHA1 Message Date
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
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 702c78bb82 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: 19708
2006-01-11 03:19:46 +00:00
sebastid 002bc72042 Fix EAPI warnings.
SVN revision: 19595
2006-01-07 08:54:30 +00:00
Carsten Haitzler bd0c83af10 make more use of stringshare and eet alloc methods
SVN revision: 18732
2005-11-30 15:36:34 +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
Carsten Haitzler 3a6be732b9 clean up some null string stuff
SVN revision: 18620
2005-11-23 14:00:39 +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 83f010591d no more old textblock - gone. completely. tb2 renamed (as threatened) to
textblock. updated edje and e17.


SVN revision: 18054
2005-10-28 02:56:27 +00:00
stffrdhrn c45a3f58b5 - If its not really edj, or if its corrupt dont crash
- Collect the error message now. should we just check for NULL when setting?


SVN revision: 17777
2005-10-23 00:15:45 +00:00
rbdpngn ccc8f7236f Set load errors in more cases.
SVN revision: 17617
2005-10-16 20:36:20 +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 4cc2291251 god man that was a bad typo!
SVN revision: 16784
2005-09-20 09:20:57 +00:00
Carsten Haitzler 4f71e046bf printf--
SVN revision: 16742
2005-09-18 05:24:57 +00:00
Carsten Haitzler 9fd23d550d handle embedded fotns for textblocks
SVN revision: 16741
2005-09-18 04:56:06 +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
Carsten Haitzler 24e1406536 pavel's patch. :)
SVN revision: 15905
2005-07-26 13:59:03 +00:00
Carsten Haitzler 526a8099fa fix potential bugs in msg queu processing
SVN revision: 14933
2005-05-25 08:07:34 +00:00
tsauerbeck bae19f7bea the evas_hash_foreach callback is supposed to return a value ;)
SVN revision: 14930
2005-05-24 17:02:00 +00:00
Carsten Haitzler 43716e4698 let programmers know they are NORTY!
SVN revision: 14929
2005-05-24 05:42:36 +00:00
Carsten Haitzler 901dc350fd fix segv
SVN revision: 14927
2005-05-24 04:25:38 +00:00
tsauerbeck cfd247aac1 made edje_file_collection_list() check its argument before trying to do anything with it
SVN revision: 14923
2005-05-23 17:48:53 +00:00
tsauerbeck bd62aadc6e fix a silly bug that caused a memleak (i think)
SVN revision: 14922
2005-05-23 17:29:43 +00:00
Carsten Haitzler 396a16f47c commented out debug
SVN revision: 14921
2005-05-23 07:06:20 +00:00
tsauerbeck 2facd89808 removed unused function
SVN revision: 14407
2005-04-27 13:53:42 +00:00
Carsten Haitzler 1e8b4c5f34 fix some leaks
SVN revision: 14400
2005-04-27 08:11:58 +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 ad5e015627 the default extension for Edje EET files is 'edj' now
SVN revision: 13855
2005-03-22 19:29:06 +00:00
tsauerbeck a4449501a3 fixed a memory leak that was introduced with the recent decompiler changes
SVN revision: 13827
2005-03-21 12:12:51 +00:00
Carsten Haitzler 878bd6d9f4 deferred message bug. fixeed.
SVN revision: 12335
2004-12-02 09:21:22 +00:00
Carsten Haitzler 9b2339df48 fix initial dragable values
SVN revision: 12229
2004-11-20 04:43:37 +00:00
tsauerbeck 53596e93c3 added basic support for custom state magic. only description.align can be changed at runtime so far.
SVN revision: 12065
2004-10-29 17:56:12 +00:00
Carsten Haitzler 3d49466146 and on file set - live in the RIGHT layer
SVN revision: 11921
2004-10-20 06:25:43 +00:00
Carsten Haitzler 44984e65a3 allow text source and text style sources to be specified.. this lets multiple
text parts "shadow" a controlling/parent text part. this allows multiple
window titles for example even tho the app only sets 1 title part. this
allows for interesting text effects with mutliepl text parts animating
differently... or you cna use invivlbe text parts ad "proxies" for
calculating sizes of stuff... :)


SVN revision: 11851
2004-10-13 03:43:42 +00:00
rephorm cbbc9f38fc Check if descriptors exist (i.e. if edje_init() was run) before trying to use them.
SVN revision: 11596
2004-09-09 21:55:32 +00:00
Carsten Haitzler f8aaef0cf7 oops - if the edje ONLy has a swallow part.. bad things (tm) happen :)
SVN revision: 11515
2004-09-04 09:45:59 +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
Carsten Haitzler 001bc61602 more comments
SVN revision: 10821
2004-07-14 09:59:29 +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 9fb09cae7a edje arlo patches
SVN revision: 10443
2004-06-06 04:42:17 +00:00
Carsten Haitzler a778585887 clean up callbacks and smart stuff too
SVN revision: 10268
2004-05-18 06:06:57 +00:00
Carsten Haitzler 709fa0ba1f hmm - dont delete swallowed child objects... too much implicit stuff..
SVN revision: 10265
2004-05-18 04:21:22 +00:00
Carsten Haitzler 40f9fc4f31 faster lookups for programs & parts - saves a lot of list walking
SVN revision: 9552
2004-04-01 15:32:17 +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 59a6f2c4b0 embryo support... started. :)
SVN revision: 9487
2004-03-26 09:10:05 +00:00
Carsten Haitzler e069710f42 init drag step on load
freeze/thaw imbalance! fix. :(


SVN revision: 9365
2004-03-16 08:38:51 +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
Carsten Haitzler a9cfdc0688 support for inlining ttf's in edje's so you can ship your fonts along too! :)
SVN revision: 8624
2004-01-23 02:13:42 +00:00
Carsten Haitzler 19fdd7fbe7 thanks tillsan! :) leak found. leak fixed. happy pants!
SVN revision: 8351
2004-01-12 02:13:11 +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 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 1bb9260fea remove lots of warnings
SVN revision: 7662
2003-10-19 02:11:06 +00:00
rephorm 7e7a3e88b4 edje_object_file_set() now returns 1 on success and 0 on failure.
SVN revision: 7493
2003-09-29 20:43:37 +00:00
Carsten Haitzler 62eb5b0b19 setting extern min/max size overrides min/max sizes implied by objects
SVN revision: 7427
2003-09-07 05:16:08 +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 1c58c1210d no more MEH!
SVN revision: 7378
2003-08-26 04:15:07 +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 604a586caf fix segv on del! :)
SVN revision: 7305
2003-08-09 03:32:21 +00:00
Carsten Haitzler bab34b26f2 dang! crap. that was silly nwo wasn't it! FIX!
SVN revision: 7297
2003-08-07 23:34:54 +00:00
Carsten Haitzler c74aee15ef cleanup printf's
SVN revision: 7292
2003-08-05 22:56:29 +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 3b449e38cb memory corruption.. well just not cleaning up things in the cache hash... fix
fix... :)


SVN revision: 7273
2003-08-03 07:00:03 +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 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 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 395743c598 edje can now swallow other evas objects... including... other EDJES! :)
SVN revision: 7166
2003-07-13 06:19:09 +00:00
Carsten Haitzler 7f7e4d9cc8 load printfs removed....
SVN revision: 7129
2003-07-10 23:42:38 +00:00
Carsten Haitzler 3f98db8705 more arm niceness
SVN revision: 7128
2003-07-10 23:19:55 +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 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 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