Commit Graph

685 Commits

Author SHA1 Message Date
Carsten Haitzler eeae28d198 ummm... also remove unused vars if u are going to remove the other
unused code.



SVN revision: 56154
2011-01-16 01:57:06 +00:00
Mike Blumenkrantz 20a92cd4f7 avoid trying to fwrite to an unopened file
SVN revision: 56140
2011-01-15 19:53:11 +00:00
Mike Blumenkrantz 9e6ff792cd revert last, must have been high
SVN revision: 56139
2011-01-15 19:47:02 +00:00
Mike Blumenkrantz 767b0c52ad more correctly shut gcc warnings up
SVN revision: 56138
2011-01-15 19:46:13 +00:00
Mike Blumenkrantz 2c0ef4b08a #if0 out some unimplemented stuff
SVN revision: 56137
2011-01-15 19:44:17 +00:00
Vincent Torri 588c29451b better include of headers
SVN revision: 55820
2011-01-03 08:11:36 +00:00
Iván Briano f64f4930e9 FOCUS_OBJECT takes a part as target
SVN revision: 55556
2010-12-14 17:18:31 +00:00
Vincent Torri 8f3ad6ed15 DSO problem: math functions are used in edje_cc
SVN revision: 55443
2010-12-10 07:59:48 +00:00
Vincent Torri 78a75afd7b first step toward DSO solution. see ticket #644
SVN revision: 55431
2010-12-09 18:39:08 +00:00
Cedric BAIL d5d953a533 * edje: remove c++ comment also.
SVN revision: 55209
2010-12-03 17:55:02 +00:00
Cedric BAIL 561114732b * edje: improve portability and simplify code.
SVN revision: 55198
2010-12-03 16:41:38 +00:00
Iván Briano 3f6ada804f Make edje_cc store script source snippets (only embryo now) in the generated file.
Yeah... yeah... we are on a freeze and we aren't supposed to be doing things like this, but it's not change anything other than allow edje_edit to know about scripts in order to not screw them up when modifying a file.


SVN revision: 55088
2010-11-30 15:37:20 +00:00
Gustavo Sverzut Barbieri 32c3f22f70 oops, forgot some machine output.
SVN revision: 55000
2010-11-25 23:22:50 +00:00
Gustavo Sverzut Barbieri 038b682a04 welcome edje_external_inspector.
this tool is similar to edje_inspector as it uses similar command line
and output formats, but instead of acting upon EDJ compiled files, it
will use edje EXTERNAL module providers (/usr/lib/edje/modules/*),
being able to list modules and their registered types.

it is quite useful to know which parameters are exposed, their types
and default value (--detail=terse) and also mode information such as
flags, min/max/step/accepted/denied and other valuable information
(--detail=all).

as usual it accepts globs to filter input. example usage:

{{{
shell$ edje_external_inspector -t '*anch*'
module {
   name: "elm";
   friendly_name: "Elementary";
   types {
      type {
         name: "elm/anchorblock";
         params {
            string: "style" "default";
            string: "text" "some text";
         }
      }
      type {
         name: "elm/anchorview";
         params {
            string: "style" "default";
            string: "text" "some text";
         }
      }
   }
}

shell$ edje_external_inspector --type='*anch*'
module {
   name: "elm";
   friendly_name: "Elementary";
   types {
      type {
         name: "elm/anchorblock";
         params {
            string: "style" "default";
            string: "text" "some text";
         }
      }
      type {
         name: "elm/anchorview";
         params {
            string: "style" "default";
            string: "text" "some text";
         }
      }
   }
}

shell$ edje_external_inspector --detail=all 'emo*'
module {
   name: "emotion";
   friendly_name: "Emotion";
   types {
      type {
         name: "emotion";
         label: "Emotion";
         params {
            choice: "engine" "xine"; /* flags: REGULAR, choices: "xine" "gstreamer" */
            string: "file"; /* flags: REGULAR */
            bool: "play" "0"; /* flags: REGULAR, false_str: "false", true_str: "true" */
            double: "position" "0"; /* flags: REGULAR */
            bool: "smooth_scale" "0"; /* flags: REGULAR, false_str: "false", true_str: "true" */
            double: "audio_volume" "0.9"; /* flags: REGULAR */
            bool: "audio_mute" "0"; /* flags: REGULAR, false_str: "false", true_str: "true" */
            int: "audio_channel" "0"; /* flags: REGULAR */
            bool: "video_mute" "0"; /* flags: REGULAR, false_str: "false", true_str: "true" */
            int: "video_channel" "0"; /* flags: REGULAR */
            bool: "spu_mute" "0"; /* flags: REGULAR, false_str: "false", true_str: "true" */
            int: "spu_channel" "0"; /* flags: REGULAR */
            int: "chapter" "0"; /* flags: REGULAR */
            double: "play_speed" "1"; /* flags: REGULAR */
            double: "play_length" "0"; /* flags: REGULAR */
         }
      }
   }
}
}}}



SVN revision: 54999
2010-11-25 23:16:56 +00:00
Gustavo Sverzut Barbieri d964e8e5cb welcome edje_inspector.
This tool inspects a binary EDJ file and dumps group names, part
names, parts, programs, externals, images, fonts and global data of
it. The output is in both human readable (edc-like) and machine
readable (easily parseable with shell scripts).

It allows filtering of groups, parts and programs names using glob
expressions (fnmatch). Also allows filtering of parts/prgrams that are
marked with "api:".

My idea is to later change elementary-generator to use this tool and
generate code for any Edje file, generating stub code for windows and
layouts marked with names "elm/win/*" and "elm/layoyt/application/*",
exposing parts marked as "api:". It would be much more helpful and
extensible than the current generator that is based on pre-defined C
code.



SVN revision: 54846
2010-11-22 23:24:44 +00:00
Gustavo Sverzut Barbieri 1c9b6a174b keep the same order so eet serialization works properly.
Fonts should be the same as Edje_Font_Directory_Entry as it's
serialized using the same eet descriptor, so the fields should match
their order.



SVN revision: 54835
2010-11-22 22:05:03 +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
Gustavo Sverzut Barbieri 15f8b5101d show group name when it is auto-discovered as well.
SVN revision: 53264
2010-10-11 15:10:34 +00:00
Carsten Haitzler 997acfa3a5 focus objcet we play
SVN revision: 53260
2010-10-11 08:30:17 +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
Boris Faure 545ea3a1a4 edje: improve doc
SVN revision: 53004
2010-10-03 21:21:58 +00:00
Mike Blumenkrantz 2c1c6f633d add big FIXME for fixme
SVN revision: 52978
2010-10-02 08:22:48 +00:00
Mike Blumenkrantz 52ad489422 this is the WRONG fix for compiled-in edj font issues. it does, however, temporarily fix the problem until someone who knows what they're doing comes along
SVN revision: 52977
2010-10-02 07:42:01 +00:00
Iván Briano 2233302716 Fix having api keyword in parts, that is, don't have edje_cc segfault if there is one.
SVN revision: 52952
2010-10-01 16:49:31 +00:00
Leandro Pereira fcfaebe1e3 edje_cc: Bail out on descriptions without a state.
Also, don't dereference a NULL pointer on badly-formed .edj files.


SVN revision: 52931
2010-09-30 21:31:00 +00:00
Leandro Pereira 0e7da3e783 edje_cc: Fix typos
SVN revision: 52930
2010-09-30 21:16:38 +00:00
Carsten Haitzler ead7329b42 warning--
(shuddup gcc)



SVN revision: 52433
2010-09-19 00:33:45 +00:00
Lucas De Marchi 31c1225bd7 Fix parameter order in help
Calling help in edje_player was showing the wrong order for sending a signal.
The right order is the same of the function edje_object_signal_emit()




SVN revision: 52105
2010-09-09 20:35:44 +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
Iván Briano b61db77029 Put fonts into the .edj file again.
SVN revision: 51684
2010-08-27 18:52:41 +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 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
Cedric BAIL b10e598f52 * edje: add back anonymous script.
SVN revision: 51617
2010-08-24 16:39:51 +00:00
Cedric BAIL 1f0b19c4b4 * edje: add back anonymous program support.
SVN revision: 51613
2010-08-24 14:17:17 +00:00
Cedric BAIL 5857b6030f * edje: prevent segv when no param is given to edje_convert.
SVN revision: 51575
2010-08-23 14:44:04 +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
Cedric BAIL 1d1a36047b * edje: remove edje_convert use in edje_cc.
SVN revision: 51134
2010-08-15 18:14:33 +00:00
Iván Briano 8b2e29dc75 Use right key to find stuff in the eet file. By Fidencio
Store filename for the fonts when adding eith Edje_Edit. By Fidencio
Use the hash in edje_file to dump fonts with edje_decc, avoiding the
need for the fontmap, which should probably be taken out entirely later.


SVN revision: 51095
2010-08-13 20:07:12 +00:00
Cedric BAIL 6ccc46d500 * edje: finally fix all this eet mess.
SVN revision: 51087
2010-08-13 16:35:45 +00:00
Cedric BAIL 4b3b130d17 * edje: fix eet api break.
SVN revision: 51081
2010-08-13 15:24:45 +00:00
Carsten Haitzler 550e1a7531 compiler wrong! fix!
SVN revision: 51068
2010-08-13 10:04:37 +00:00
Cedric BAIL 74fe3f6247 * edje: only link edje_convert with eina and eet.
SVN revision: 51051
2010-08-12 16:32:12 +00:00
Cedric BAIL 1b77b770fc * edje: fix segv when converting old theme with gradient.
SVN revision: 51049
2010-08-12 15:29:00 +00:00
Cedric BAIL c1436aac91 * edje: fix memory leak.
SVN revision: 51046
2010-08-12 15:05:56 +00:00
Cedric BAIL 2623367732 * edje: fix some memleak issue.
SVN revision: 51033
2010-08-12 12:58:54 +00:00
Cedric BAIL d4bf64d1c2 * edje: move code around.
SVN revision: 51016
2010-08-11 18:29:41 +00:00
Iván Briano b8b8381576 No need for path in font_directory, and use the right key to store/find them
SVN revision: 50999
2010-08-11 14:24:03 +00:00
Cedric BAIL ca93c6e5e4 * edje: fix version detection.
SVN revision: 50940
2010-08-09 18:31:25 +00:00
Cedric BAIL f3894fdd27 * edje: add some error detection.
SVN revision: 50939
2010-08-09 18:22:48 +00:00
Cedric BAIL 415b06bf48 * edje: oops forgotten file.
SVN revision: 50937
2010-08-09 18:00:02 +00:00
Cedric BAIL 9ecc1354c6 * edje: new file format.
WARNING ! WARNING ! WARNING ! WARNING !
	Old file format is not readable by edje directly. If you have old edje
	file that you want to convert, use edje_convert. Their is no way back.

	Recompile your file as soon as possible. Please report any issue you
	spot as this is a huge and needed change.



SVN revision: 50936
2010-08-09 17:34:03 +00:00
Lucas De Marchi 0a4617ae38 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Mike Blumenkrantz 5c670876c0 verify that fopen succeeded
SVN revision: 50709
2010-07-31 05:24:47 +00:00
Mike Blumenkrantz 056cfca56f const
SVN revision: 50706
2010-07-31 05:10:44 +00:00
Mike Blumenkrantz bb0b72558f add lengthy comment to document an obvious bug that someone who knows the code should fix
FIX THIS!!!!!!!!!!!!!


SVN revision: 50704
2010-07-31 05:01:34 +00:00
Cedric BAIL e773bc9246 * edje: change memory layout that will become the new file format.
NOTE: I tried this change with all the apps and theme I had, but maybe
	i missed some bug. Please report any strange behaviour.


SVN revision: 50641
2010-07-29 12:02:36 +00:00
Carsten Haitzler 0cdb510001 fix up docs. edje player - 60fps
SVN revision: 50505
2010-07-26 06:52:36 +00:00
Cedric BAIL 793c66b5dc * edje: last move of properties in the right structure.
SVN revision: 50284
2010-07-16 16:00:26 +00:00
Cedric BAIL 04ffefa9e5 * edje: move image specific properties to their own structure.
SVN revision: 50282
2010-07-16 14:13:38 +00:00
Cedric BAIL 83bb52f7c9 * edje: attempt to reduce code size by using more macro.
SVN revision: 50281
2010-07-16 13:58:35 +00:00
Cedric BAIL 30d35eb1ba * edje: start to split structure content.
SVN revision: 50279
2010-07-16 11:37:58 +00:00
Cedric BAIL b49c2411bd * edje: when gradient meet dodo. Yes, they are gone !
SVN revision: 50223
2010-07-13 15:47:19 +00:00
Carsten Haitzler 3f941f2e46 bah! i didnt mean to add this "make 2 of them" test to svn. remove.
SVN revision: 50097
2010-07-07 23:39:12 +00:00
Carsten Haitzler ec1bf49da9 lua2 stuff.
SVN revision: 50061
2010-07-06 09:35:34 +00:00
Cedric BAIL 9560d51241 * edje: Add alias for part too. This should help designer to
provide the right part name and still use GROUP and BOX.


SVN revision: 50001
2010-07-02 16:56:42 +00:00
Cedric BAIL ba95606159 * edje: prevent some segv in edje_cc and detect wrong edje file
before compiling them.

	Patch by Rafael Fonseca <rfonseca@profusion.mobi>.


SVN revision: 49999
2010-07-02 15:37:37 +00:00
Cedric BAIL 4e30cb2411 * edje: move structure from Eina_List to array now that Eet support
them.


SVN revision: 49936
2010-06-29 13:48:03 +00:00
Cedric BAIL e17a4089df * edje: This is the first commit of a rewrite of edje file
internal representation.

	The objectiv is to simplify code, consume less CPU and memory
	without loosing feature. Please report any breakage when you
	see them. It will take a few weeks before we change the file
	layout, during that time the load time may increase.


SVN revision: 49922
2010-06-28 13:56:30 +00:00
Vincent Torri 818fa06716 disable slave mode on Windows
SVN revision: 49879
2010-06-26 16:20:50 +00:00
Cedric BAIL 73ac5cdc95 * edje: remove warning due to API change in Ecore.
SVN revision: 49830
2010-06-24 16:16:50 +00:00
Vincent Torri be2c84be5c add delete_request callback to properly shut down the program
SVN revision: 49724
2010-06-17 06:27:53 +00:00
Vincent Torri 1a1410895c use correct enum variable (same value, though)
SVN revision: 49543
2010-06-06 19:26:12 +00:00
Vincent Torri 7851a9cc0e fcntl is used, so evil is needed on Windows
SVN revision: 49456
2010-06-04 20:23:53 +00:00
Vincent Torri 8de402fabc put efl headers after standard headers
SVN revision: 49452
2010-06-04 19:15:57 +00:00
Cedric BAIL 83e505b5c6 * edje: Add image set support.
Ease support of Freedesktop multiple size image.

	Sample:
	-------

	images {
		..
	       	set {
			name: "image_name_used";
  			image {
				image: "500x500.png" LOSSY 90;
     				size: 201 201 500 500;
  			}
  			image {
				image: "200x200.png" COMP;
     				size: 51 51 200 200;
  			}
  			image {
				image: "50x50.png" COMP;
     				size: 11 11 50 50;
  			}
  			image {
				image: "10x10.png" COMP;
     				size: 0 0 10 10;
  			}
		}
		..
	}



SVN revision: 49369
2010-06-01 13:31:07 +00:00
Bruno Dilly 5a34288bfb Add '-h' argument to edje_decc and improve usage message.
SVN revision: 49221
2010-05-27 02:39:20 +00:00
kiwi b55d9b91c3 preprocess the edc file on OpenBSD as on MacOS X.
NetBSD and FreeBSD might have the same issue

fixes handling of #define and comments in edc files, so e theme builds now on OpenBSD


SVN revision: 49113
2010-05-21 19:58:40 +00:00
Tiago Rezende Campos Falcao c1be10e587 Removing some warnings of edje
Remaining:
edje_lua.c:328: ‘_edje_lua_reg_count’ defined but not used
edje_lua.c:409: ‘_edje_lua_rawgetfield’ defined but not used
edje_lua.c:445: ‘_edje_lua_free_metatable’ defined but not used
edje_lua.c:2182: ‘_edje_lua_object_set_pointer_mode’ defined but not used
edje_lua.c:2190: ‘_edje_lua_object_set_precise_is_inside’ defined but not used

SVN revision: 48142
2010-04-19 20:37:28 +00:00
Gustavo Sverzut Barbieri 651070fc1d new program action PARAM_SET, complements PARAM_COPY.
Sometimes you want to catch an action like "clicked" from elm/button
or "mouse,clicked,1" from a regular part and want to set a property
like "play" on some object. In this case there is no source property
to copy, so setting the destination makes sense. This was possible
with Embryo, and now it is with regular "program".

Sample EDC:
{{{

   // test.edc, compile with edje_cc and run with edje_player

   externals {
      external: "elm";
   }
   collections {
      group { name: "main";
         parts {
            part { name: "bg"; type: RECT;
               description { state: "default" 0.0;
                  color: 255 255 255 255;
               }
            }
            part { name: "button"; type: EXTERNAL;
               source: "elm/button";
               description { state: "default" 0.0;
                  rel2.relative: 1.0 0.5;
               }
            }
            part { name: "display"; type: TEXT;
               description { state: "default" 0.0;
                  color: 0 128 0 255;
                  rel1.relative: 0.0 0.5;
                  rel2.relative: 0.5 1.0;
                  text { font: "Sans"; size: 16; }
               }
            }
            part { name: "entry"; type: EXTERNAL;
               source: "elm/scrolled_entry";
               description { state: "default" 0.0;
                  rel1.relative: 0.5 0.5;
                  params.bool: "editable" 0;
               }
            }
            programs {
               program {
                  signal: "clicked";
                  source: "button";
                  action: PARAM_SET "display" "text" "hello world!";
               }
               program {
                  signal: "clicked";
                  source: "button";
                  action: PARAM_SET "entry" "text" "bla!";
               }
            }
         }
      }
   }

}}}



SVN revision: 47635
2010-03-31 20:48:51 +00:00
Gustavo Sverzut Barbieri 0b231e99ce Add CHOICES to EXTERNAL support.
Choices are useful to represent enumerations and restricted set of
elements to user. Usually this is displayed in hoversel/comboboxes.



SVN revision: 47570
2010-03-29 21:51:40 +00:00
Gustavo Sverzut Barbieri 4981652e8c set ecore_app arguments, edje external will use it to init elm_init()
SVN revision: 47563
2010-03-29 18:45:18 +00:00
Gustavo Sverzut Barbieri 71d603c360 new program action PARAM_COPY, awesome crazy stuff! :-)
Edje got a new program action called PARAM_COPY in the form:

   action: PARAM_COPY "src_part" "src_param" "dst_part" "dst_param";

This will copy the parameter "src_param" from part "src_part" to
parameter "dst_param" of part "dst_part".

So far so good, why the "crazy" in the first line? Because this also:
  * do type conversion!
  * set properties of native parts, not just EXTERNAL!

The type conversion allows one to get an integer and display that in a
text property, or get an string and convert into a float.

The set of native parts is quite simple, basically a map of Edje.h
edje_object_part_*_set(). With that one can set the string to be used
by a TEXT, or set drag page/step/size/value! (page/step increments are
not supported at the moment, if it is worth, they may be supported in
future).

Sample EDC:

{{{

  // test.edc, compile with edje_cc and run with edje_player

   externals {
      external: "elm";
   }
   collections {
      group { name: "main";
         parts {
            part { name: "bg"; type: RECT;
               description { state: "default" 0.0;
                  color: 255 255 255 255;
               }
            }
            part { name: "entry"; type: EXTERNAL;
               source: "elm/scrolled_entry";
               description { state: "default" 0.0;
                  rel2.relative: 1.0 0.5;
               }
            }
            part { name: "display"; type: TEXT;
               description { state: "default" 0.0;
                  color: 0 128 0 255;
                  rel1.relative: 0.0 0.5;
                  text { font: "Sans"; size: 16; }
               }
            }
            programs {
               program {
                  signal: "changed";
                  source: "entry";
                  action: PARAM_COPY "entry" "text" "display" "text";
               }
            }
         }
      }
   }

}}}



SVN revision: 47500
2010-03-27 01:26:10 +00:00
Gustavo Sverzut Barbieri 11b1398008 allows basic interaction from automated scripts and signal/message debug.
SVN revision: 47347
2010-03-19 19:04:50 +00:00
Gustavo Sverzut Barbieri 2cdac2a9bd edje_player gets in.
I almost rewrote it to be cleaner and use more modern technologies
such as box and ecore_evas_object_associate.



SVN revision: 47343
2010-03-19 16:19:50 +00:00
Gustavo Sverzut Barbieri 71a3bb5cfe copy edje_player, it will be changed to use Ecore_Getopt and then enabled in compile...
SVN revision: 47341
2010-03-19 13:23:24 +00:00
Vincent Torri d1c0ea07fc force gcc to use C preprocessor (otherwise the file extension (.edc) is
breaking that behavior)


SVN revision: 47338
2010-03-18 22:52:28 +00:00
Vincent Torri a8e1557dbc fix edje_cc on Mac OS X: c++ comments were not removed, so pass
gcc -E on the edc file a second time. As Linux gcc does not like
it, compile that part only on Mac OS X.


SVN revision: 47280
2010-03-16 05:49:13 +00:00
Viktor Kojouharov 2ae2d6c7bc docu typos
SVN revision: 46952
2010-03-07 15:53:46 +00:00
Sebastian Dransfeld f2273a3f51 use PATH_MAX to define buffer size
in snprintf on the buffer PATH_MAX is used, so also use it to define
buffer size

SVN revision: 46729
2010-03-01 19:05:37 +00:00
Gustavo Sverzut Barbieri 15ee9e8847 documentation improvements:
- quick access in the huuuuuuuge edcref
 - block name is top-aligned to its example fragment



SVN revision: 46668
2010-02-28 19:25:10 +00:00
Gustavo Sverzut Barbieri cc5e332525 remove warnings from edje binaries.
SVN revision: 46647
2010-02-28 16:14:50 +00:00
Gustavo Sverzut Barbieri 456f222a0f [PATCH2/2] Improve edje documentation.
This reorder couple of functions so the generated documentation makes
sense.

By: Eduardo Felipe < eduardofelipe87@gmail.com>



SVN revision: 46541
2010-02-27 00:25:32 +00:00
Gustavo Sverzut Barbieri 46f0a73003 [PATCH1/2] Improve edje documentation.
This fixes the documentation, but they are still in the wrong order.

By: Eduardo Felipe <eduardofelipe87@gmail.com>


SVN revision: 46540
2010-02-27 00:15:41 +00:00
Cedric BAIL fc20b4541e * edje: Use fixed point for tween too.
SVN revision: 46429
2010-02-24 15:37:16 +00:00
Cedric BAIL 51de26862a * edje: Add more focus event in edje. A start for a focus layout work.
SVN revision: 46389
2010-02-23 13:39:19 +00:00
Carsten Haitzler a952803f13 aaaah missing map smooth and alpha flags.
SVN revision: 46383
2010-02-23 05:45:24 +00:00
Carsten Haitzler ea37c003f3 docs++
SVN revision: 46342
2010-02-21 09:39:58 +00:00
Carsten Haitzler e89c590b0d add border_scale option for images - image border will scale based on edje
scale factors. this is independant of scale: per part.



SVN revision: 46341
2010-02-21 06:53:44 +00:00
Cedric BAIL e4ee012951 * edje: Change filter_state to filter and give the possibility to
filter from another part than the event source.



SVN revision: 46316
2010-02-19 18:30:46 +00:00
Carsten Haitzler e2bc27fb44 interp properly and make perspective api work.. untested yet...
SVN revision: 46302
2010-02-19 06:28:03 +00:00
Carsten Haitzler 3c71b10522 add back face cull option.
SVN revision: 46217
2010-02-16 16:36:16 +00:00
Carsten Haitzler bf293931a1 map support in edje - first cut, missing features like back-face culling.
also no dependency tracking etc. etc.



SVN revision: 46216
2010-02-16 16:20:15 +00:00
Cedric BAIL 397b718cf1 * edje: Add filter_state to program.
Patch from "Tristan <blunderer@gmail.com>".


SVN revision: 46048
2010-02-10 15:07:17 +00:00
Boris Faure 44de2046c0 edje: edc property is elipsis and not text_elipsis (update doc + vim syntax file)
SVN revision: 46031
2010-02-09 22:28:07 +00:00
Tiago Rezende Campos Falcao 2ab186175e Save font filename in eet. By Masaki
Author:    Thiago Ribeiro Masaki <masaki at profusion.mobi>

SVN revision: 45869
2010-02-04 14:34:06 +00:00
Vincent Torri e2fe3d0f59 Fix init checks so that there is no more seg fault.
All that stuff should be cleaned, though.


SVN revision: 45780
2010-02-01 17:26:25 +00:00
Vincent Torri b3a68cc3f7 edje_cc:
exit properly if eina_init() fails (like if
a mempool is not found), instead of a seg
fault.


SVN revision: 45759
2010-01-31 19:43:53 +00:00
Sebastian Dransfeld ef970dfb10 make clang happy
SVN revision: 45195
2010-01-15 20:01:42 +00:00
Vincent Torri 9540d8ad79 binaries can be disabled
SVN revision: 45170
2010-01-15 06:10:00 +00:00
Carsten Haitzler 61f893a3a0 fix docs! were wrong!
SVN revision: 45058
2010-01-12 07:05:30 +00:00
Iván Briano 953835bad8 Add 'api' keyword to parts and programs.
Not used yet, stay tuned.

Patch by Thiago Masaki


SVN revision: 44912
2010-01-05 19:26:18 +00:00
Cedric BAIL 31fca0780a * edje_cc: Fix edje_cc running without parameter.
SVN revision: 44756
2009-12-29 15:01:24 +00:00
Gustavo Sverzut Barbieri a85cc11943 better error reporting for edje_cc.
Instead of saying lots of possibilities that confuse users, check the
correct one and possibly give a hint.



SVN revision: 44669
2009-12-22 23:56:11 +00:00
Cedric BAIL 018a9dad66 * edje: Use Eina_Log.
Patch from Mathieu Taillefumier.


SVN revision: 44655
2009-12-22 13:46:00 +00:00
Gustavo Sverzut Barbieri ffdd35a843 add docs for image 'USER', that I didn't know about.
SVN revision: 44540
2009-12-18 12:34:07 +00:00
Carsten Haitzler 5b9e0b0ead fix return checks. broke compile!
SVN revision: 44523
2009-12-17 11:58:15 +00:00
Vincent Torri c7c66a652a add Sun Studio support when parsing edc files. Technically,
it means that e17 can run on OpenSolaris using Sun Studio
or gcc. It actually runs if temperature and battery modules
are disabled as they don't compile yet.

Also, the problem on Mac OS X problem with C++ comments
can be fixed (I think). See FIXME in that patch



SVN revision: 44519
2009-12-17 00:50:43 +00:00
Cedric BAIL 0209236d41 * edje_cc: Generate valid edje file when fixed point is enable.
SVN revision: 44332
2009-12-10 13:19:54 +00:00
Carsten Haitzler 4d42a6d2db warnings--
SVN revision: 44306
2009-12-09 05:46:02 +00:00
Carsten Haitzler 3ec78b10c3 edje_cc -> add % modulo to math eval and floor() and ceil()
SVN revision: 44301
2009-12-09 04:30:45 +00:00
Gustavo Sverzut Barbieri 6ab03e1d93 edje_decc: option to output to current directory.
SVN revision: 44133
2009-12-02 21:06:11 +00:00
Gustavo Sverzut Barbieri 6396f3fb00 edje_decc: -no-build-sh
Don't output build.sh



SVN revision: 44132
2009-12-02 21:00:57 +00:00
Iván Briano 9892926bdf Autoload modules for external widgets
Patch by Fabiano Fidencio


SVN revision: 43951
2009-11-24 17:55:11 +00:00
Gustavo Sverzut Barbieri d40d8d123d edje external support, part 1.
Patch by Fabiano Fidêncio <fidencio@profusion.mobi>



SVN revision: 43927
2009-11-23 15:03:19 +00:00
Iván Briano 22952844c4 and bring external back now that the file was added
SVN revision: 43306
2009-10-27 01:08:19 +00:00
Carsten Haitzler d3fd0c30cb REVERT! broke edje.
try again and dont forget to add edje_external.c! (and any others needing
adding)



SVN revision: 43304
2009-10-27 00:27:50 +00:00
Iván Briano 68756f92b2 External objects support by Brian 'rephorm' Mattern
Since we are on a freeze, the patch goes on updated to current svn, but without changing its API. After the freeze some things will be added, and some will change :)


SVN revision: 43302
2009-10-26 21:33:56 +00:00
Vincent Torri 10b4ebc4d4 * fix some warnings
* move variable declarations at the top of the bloc

SVN revision: 43265
2009-10-25 11:40:06 +00:00
Vincent Torri d3f076e73a unused parameters --
SVN revision: 43264
2009-10-25 11:24:55 +00:00
Vincent Torri 3c48d7e6d0 * include config.h in all source files
* declare alloca before the standard headers
 * include Evil.h for the declaration of realpath in edje_cc_prefix.c

SVN revision: 43263
2009-10-25 11:19:12 +00:00
Cedric BAIL fd65247e8e * edje: Support back empty file.
SVN revision: 42981
2009-10-09 08:51:03 +00:00
Cedric BAIL c6267c9fb9 * edje: Oops. Correct fix.
SVN revision: 42937
2009-10-07 12:40:28 +00:00
Cedric BAIL 8ea901a753 * edje: Remove some potential bug detected by llvm and gcc.
See: http://local.profusion.mobi:8081/~lfelipe/output-efl/


SVN revision: 42930
2009-10-07 10:55:48 +00:00
Vincent Torri e4bea597c7 Fix documentation
* update Doxyfile file
 * fix end of groups
 * fix some warnings
 * fix link in head.html for Edje API ref


SVN revision: 42794
2009-09-29 06:13:33 +00:00
Vincent Torri d3d9560eb1 remove debug
SVN revision: 42086
2009-08-29 08:42:44 +00:00
Vincent Torri 1029babb26 remove debug
SVN revision: 42057
2009-08-28 05:49:40 +00:00
Vincent Torri 2a8d44f5a0 allow the user to chose in which directory the temporary file
will be created. The logic is the following:

 * if the environment variable TMPDIR is set, use its value
 * if it is not set, take the directory passed with the
   -td option (see edje_cc help)
 * otherwise on Windows use a temporary dir and on other
   platform, use /tmp


SVN revision: 41978
2009-08-25 17:25:23 +00:00
Cedric BAIL 6c7f8ce84c * edje: Remove warning, mainly due to lua merge.
SVN revision: 41838
2009-08-17 11:32:56 +00:00
Hanspeter Portner da75132793 From: "Hanspeter Portner" <ventosus@airpost.net>
This concerns Ticket #109: Add Lua support for Edje

It adds Lua as scripting facility to Edje, letting Embryo untouched.
It should be easier to use and be more flexible than Embryo, imho ;-)

---
The patch
---

Lua 5.1 is used in sandboxed mode. Lua byte code is not
platform/architecture independent, Lua code is saved as text in the Edje
container and parsed at load time, therefore.

The patch goes in two directions

1) Analogous to Embryo for scripting logic, messaging and custom states.
The same things are implemented as in Embryo:

    - messaging from and to C
        - manual creation of timers, animators, pollers for custom events /
            animations
                - manual manipulation of Edje parts by means of the public
                    edje_object_part_* and internal functions and custom states
                    
                        -> those routines are actually implemented as Lua
bindings to
    functions in Edje.h and Ecore.h
        -> the implementation is done in an object oriented way, so that the
            interface gives the feel of an object description language, pretty
                similar to EDC itself
                    -> combining custom states and custom animators allows
for fancy
    animations and transitions, e.g circular/spline translations or
        complex/conditional transitions, etc.
            -> this is just the same as Embryo does, but implemented in Lua, so
                nothing new here, actually
                
                2) Dynamic object creation and manipulation
                
                    - this interface stems from the 'script_only' objects in
Edje. Those
    objects are a kind of scriptable Edje counterparts to Evas_Smart
        objects. The infrastructure for Embryo is already there, but has
            never been used
                - I added this in Lua and added some first bindings to
experiment
    with
        - I thought it would be useful to allow for a limited dynamic
            creation of ui parts
                - We can create instances of groups from within the same Edje
                    container and use them just like the main Edje object as
stated in
    1)
        - And there are some stand-alone bindings to dynamically create
            Evas_Image, Evas_Table, Evas_Line, Evas_Polygon as examples
            
                -> this may be useful to decouple the program from the ui
even more,
    to be able to do things that have to be done in the program itself
        atm, but actually belong to the user interface, but need dynamic
            creation of objects or complex interactions
                -> those objects are manipulated manually with Lua bindings
to the
    corresponding edje_object_* and evas_object_* functions
    
    ---
    Discussion points
    ---
    
    Both stuff in 1) & 2) is functioning, but needs testing, feedback,
    improvements, ...
    
    Stuff in 1) can already fully replace Embryo scripting with Lua
    scripting. There still is space for improvements/additions, though.
    
    Of the stuff in 2), I think it may only make sense to add the dynamic
    creation of groups defined in the same Edje container.  Dynamic creation
    of other Evas_Objects makes not much sense, as most of them can already
    be used as Edje parts and be manipulated with custom states (apart from
    polygons and lines) and it would make the whole theming potentially more
    programing-like and much more susceptible for errors, etc.
    
    Would this be useful, or drop it all?
    
    The scripting should be there just for logic, conditionals, custom
    states and animations, not for a whole dynamic canvas, imho.
    
    There is a patch around with EXTERNAL Edje parts. Seems to be a better,
    faster, more secure way to extend Edje with custom objects.
    
    There would be the possibility of precompiling Lua code at compile time
    (edje_cc) for faster loading, but we would have to patch and run our own
    Lua version.
    The Lua parser is pretty fast, though, and using
    byte-converted/endianness-swapped byte-code does only pay off for Lua
    chunks of some kilo lines.
    Byte code also occupies much more space than text in the final Edje
    container, as it includes debug symbols.
    
    ---
    
    Cedric and Vincent told me, that the plan was to replace Embryo totally
    by Lua before the official release of Edje at the end of the year? So it
    would make sense to bring Lua to svn soon and look how it fits in, test,
    debug, adapt it further to the themers needs, decide on its final shape,
    GATHER SOME PEOPLE TO HELP ;-)
    
    ---
    
    The Lua enhanced Edje is in sync with svn and can be get directly here
       git clone git://repo.or.cz/edje_lua.git
          cd edje_lua
             git checkout -b lua_patch origin/lua_patch
             
             or apply the attached patch
             
             There are also some examples to show the usage of the things
mentioned
above
    - showcase.edj: shows usage of custom animators, custom states,
        messaging and the script_only object
            - test.edj: test cases of script usage and bindings (custom states,
                custom transitions, tween_states, animators, timers,
object_parts),
    but most of it are experimental script_only objects
    
    http://didgmo.sourceforge.net/showcase.edj
    http://didgmo.sourceforge.net/test.edj
    
    The source of showcase.edc is attached, too, to just have a glimpse at
    Lua inside of EDC
    
    ---
    
    So, what do you guys think?
    
    Thanks and sry for the looong mail, hehe ;-)



SVN revision: 41802
2009-08-16 02:34:02 +00:00
Cedric BAIL 2cf15dc335 * eet: Fix prefix.
SVN revision: 41735
2009-08-13 13:26:43 +00:00
Cedric BAIL bc5dda9c0c * edje: Use new clean API from Eet.
SVN revision: 41733
2009-08-13 12:53:12 +00:00
Gustavo Sverzut Barbieri 1d9af7284e typo--
SVN revision: 40999
2009-06-10 17:54:40 +00:00
Carsten Haitzler e6de097425 allow scale_hint to be added to items in edje
SVN revision: 40537
2009-05-07 13:30:18 +00:00
Carsten Haitzler 2afadb527b working on edje entry to allow more selection controls. not 100% done yet.
SVN revision: 39578
2009-03-19 13:36:10 +00:00
Viktor Kojouharov 0a544a09d3 'box.min' for the edje box
SVN revision: 39298
2009-02-28 19:38:35 +00:00
Cedric BAIL 6ab6dbca0d * edje: Remove snprintf("%i") for an eina itoa.
NOTE: When you just want to convert from an int to a string,
	better use eina for that.



SVN revision: 39213
2009-02-25 17:08:17 +00:00
Vincent Torri 052e867c7b missing header + move fcntl.h after sys/stat.h
SVN revision: 39093
2009-02-19 10:29:03 +00:00
Vincent Torri 1cd236068b * force open to allow read and write permission of the user
when creating or reading edj files


SVN revision: 39092
2009-02-19 10:13:28 +00:00
Carsten Haitzler c1af94ee4c in theory.. support middle solid/default/none changes in evas
SVN revision: 39001
2009-02-12 13:39:15 +00:00
Vincent Torri 812f1e185f add alloca declaration
SVN revision: 38977
2009-02-09 06:33:26 +00:00
Carsten Haitzler 5974b5a1fc fix prefix env vars to use edje_
SVN revision: 38448
2009-01-04 11:05:27 +00:00
Iván Briano 7f3dfc66f2 And finally, edje table goes in
SVN revision: 38204
2008-12-18 02:43:20 +00:00
Cedric BAIL e33474c92f Move to eina_hash. Nothing should break, but if you experience any unexpected behaviour
please ping me on #edevelop.



SVN revision: 38183
2008-12-17 14:26:47 +00:00
Carsten Haitzler 28c433974a olof patch - fix typo for password
SVN revision: 38034
2008-12-08 23:47:04 +00:00
Gustavo Sverzut Barbieri 2f8f874b20 Shut up a bunch of warnings and fix some real errors.
SVN revision: 37954
2008-12-06 03:08:17 +00:00
Carsten Haitzler 266594739f re-index aliases on override of part name too.
SVN revision: 37805
2008-11-25 23:18:04 +00:00
Iván Briano 0ee4d07727 Edje Box in. Have fun with it.
SVN revision: 37783
2008-11-24 05:15:15 +00:00
Viktor Kojouharov 3489be1dda typo--
SVN revision: 37517
2008-11-05 21:36:23 +00:00
Carsten Haitzler 60b4dab196 formatting.
SVN revision: 37425
2008-11-02 22:51:24 +00:00
Davide Andreoli 9c5fbd43a0 move 2 textblock functions out of the dragable doxy category
SVN revision: 37357
2008-10-31 15:13:50 +00:00
Vincent Torri f270fdb629 arg, missing config.h and too many EXTRA_DIST
SVN revision: 37160
2008-10-26 17:23:54 +00:00
Vincent Torri 9ba3147a09 * remove edje_main.h - useless now
* forget locale.h in edje_edit


SVN revision: 37159
2008-10-26 17:21:11 +00:00
Vincent Torri 0d8b00fdeb * move standard header files to source files
* remove gendoc


SVN revision: 37158
2008-10-26 17:18:19 +00:00
Vincent Torri 9d71cc15c7 autotools cleanups
* configure.ac re-organisation
 * don't compile edje binaries on windows ce
 * add doc rule to build documentation (hence gendo is removed,
   Doxyfile is moved to doc/ and edje.c.in is renamed doc/edje.dox.in)
   Next commit will fix completely the documentation
 * fix edje.pc.in


SVN revision: 37137
2008-10-26 11:55:57 +00:00
Carsten Haitzler f4b0bbe7b8 fix doc.
SVN revision: 37038
2008-10-24 00:43:24 +00:00
Carsten Haitzler 48f89d316a support repch - replacement char for passowrd mode. theme defines it now.
SVN revision: 37013
2008-10-23 05:38:06 +00:00
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
Andres Blanc 16fac846a9 edcref: a note about group overriding using names.
SVN revision: 36736
2008-10-17 01:05:02 +00:00
Andres Blanc 3d34d2782e small correction of the edc reference. (I really need to ad some sort of
index to this).


SVN revision: 36735
2008-10-17 00:41:14 +00:00
Cedric BAIL b489e1936b Switch evas_stringshare to eina_stringshare.
SVN revision: 36672
2008-10-15 14:11:11 +00:00
Cedric BAIL ab60bdaf87 Make edje depend on eina. No change in the code yet, so just fix your build system and no bug must show up.
SVN revision: 36623
2008-10-13 15:59:37 +00:00
Carsten Haitzler ce0d40cae7 editable textblocks... a start (definitely not there yet)
SVN revision: 36611
2008-10-13 09:19:04 +00:00
Davide Andreoli 270e803fb6 * More work on edc export... quite finished now :)
* Add gradient angle support to edje_edit
 * Some small doxy 

SVN revision: 36500
2008-10-07 14:11:11 +00:00
Davide Andreoli 57e19854bf * When you use \'confine\' on a draggie you must set a min size for the part!!
I have lost some time spotting this

SVN revision: 36388
2008-10-01 22:23:36 +00:00
Carsten Haitzler 96ad3331d8 allow groups if declared later to override (Replace) their prior declarations.
this basically allows u to #include some .edc then selectively override some
things in it u want changed.



SVN revision: 36204
2008-09-24 08:16:42 +00:00
Davide Andreoli 0a6fd34e84 * add doxy for programs in EDCREF
SVN revision: 36191
2008-09-23 19:25:01 +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
Caio Marcelo de Oliveira Filho 0d378996c8 edje_cc_out.c: Create an error_and_abort() function and use it.
SVN revision: 35596
2008-08-21 03:58:11 +00:00
Caio Marcelo de Oliveira Filho 5d229801fd edje_cc_out.c: Splitting data_write_scripts() in smaller pieces.
Now we have one function for creating the script file and another for
compiling it.  Also tried to avoid lots of nesting by checking for
error conditions early and returning (or aborting).  Avoided messing
with the code logic.

SVN revision: 35595
2008-08-21 03:57:56 +00:00
Caio Marcelo de Oliveira Filho e2d17e6ddf edje_cc_out.c: Removing unused function declaration and definition.
SVN revision: 35594
2008-08-21 03:57:39 +00:00
Caio Marcelo de Oliveira Filho f2a0a0f216 edje_cc_out.c: Split data_write() in a bunch of smaller functions.
Just moved the code pieces from data_write(), which was huge, to
static functions.  Also made minor cleanups, initializing variables
during declaration.

SVN revision: 35593
2008-08-21 03:57:20 +00:00
Carsten Haitzler fd5ae24875 and compression was off four edje_sources in .dj files. back on!
SVN revision: 35547
2008-08-18 15:09:27 +00:00
Davide Andreoli c2f8f05b7b fix typo in doxy
SVN revision: 34996
2008-07-02 20:13:31 +00:00
doursse 074765d3aa open files in binary mode, to fix problems on Windows. Fix a constness
SVN revision: 34931
2008-06-28 09:11:48 +00:00
Sebastian Dransfeld 4a54010498 Remove unused variable.
SVN revision: 34867
2008-06-19 12:47:04 +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
doursse e02cf13308 ecore-evas is needed only for the binaries
SVN revision: 34764
2008-06-07 08:03:52 +00:00
doursse 0cdcab6a5c forget to remove 2 calls
SVN revision: 34762
2008-06-06 18:52:19 +00:00
doursse 82fee3d58c evilize edje. Link against ecore_file only when needed. PATH_MAX and not MAX_PATH. Minor other fixes.
SVN revision: 34761
2008-06-06 18:31:49 +00:00
doursse 653692fa28 fix autotools stuff for Windows
SVN revision: 34712
2008-05-31 06:15:41 +00:00
Carsten Haitzler 43821d36e4 * add efreet garbage data check
* remove printfs that clutter output
* add efreet file type check - only parse regular files
* chekc mmap returns correctly for MAP_FAILED results
* edje has some stubs for adding script-only objecvts - but nothing useful
right now


SVN revision: 34689
2008-05-29 02:00:04 +00:00
Carsten Haitzler 661971e309 remove old pc.in
SVN revision: 34262
2008-04-13 12:39:14 +00:00
Carsten Haitzler 0afa61a56a santiago's embryo swallow patchs.
SVN revision: 34249
2008-04-11 23:36:35 +00:00
Caio Marcelo de Oliveira Filho ea56c61eba Edje: adding support for ignore_flags.
Parts can choose to ignore Events with certain flags in event_flags. The default value is
to accept all events. The syntax for this is specifying in the part:

    ignore_flags: ON_HOLD;

I've tried to update Edje_Edit bits also.


SVN revision: 34170
2008-04-01 21:33:17 +00:00
Caio Marcelo de Oliveira Filho a43c7ca786 Edje: missing va_ends.
SVN revision: 34169
2008-04-01 21:30:54 +00:00
Caio Marcelo de Oliveira Filho 20df0987d1 Edje: support for parsing flag-style values (and combinantions of them) in edje_cc.
For example:

    field: FLAG_A FLAG_B FLAG_C;   // at least one flag is needed

And we can assign a bit for each FLAG_*, the result would be the OR between all of them.
Refactored a bit of parse_enum to re-use code there.


SVN revision: 34168
2008-04-01 21:28:28 +00:00
Andres Blanc e515418737 included missing parts of the reference
SVN revision: 34145
2008-03-29 16:13:57 +00:00
doursse 8e386e3f73 remove trailing spaces
SVN revision: 34101
2008-03-24 08:22:01 +00:00
doursse ede49fdfb0 include correctly alloca.h and use ecore_file_mkpath instead of the local implementation
SVN revision: 34100
2008-03-24 08:09:06 +00:00
Andres Blanc a7f4024a29 I wasted quite some time thanks for ignoring this detail.
SVN revision: 34029
2008-03-15 00:51:45 +00:00
Carsten Haitzler f08234a968 improve build includes.
SVN revision: 33997
2008-03-12 16:32:35 +00:00
Carsten Haitzler 68a7734f67 disable compression for now on sources - this breaks edje_decc.
we need to resolve the bug where u can't read compressed sources anymore... :/


SVN revision: 33895
2008-03-02 05:39:51 +00:00
Carsten Haitzler e076a78519 cedric's eet and edje patches to use eet dictionaries for strings.
SVN revision: 33873
2008-03-01 06:38:09 +00:00
Carsten Haitzler 033737bdd9 edje data file patches in - not fill though.
SVN revision: 33543
2008-01-21 01:03:04 +00:00
doursse 33d11c8035 fix typo in symlink (win32)
SVN revision: 33469
2008-01-13 09:09:42 +00:00
Carsten Haitzler 0ceaf246a2 terminate strings properly?
SVN revision: 32900
2007-11-27 10:50:35 +00:00
doursse 5b257881d7 update win32 port : use correct temp dir value and correct open function according to the compiler
SVN revision: 32882
2007-11-25 16:22:58 +00:00
Sebastian Dransfeld bc6caea1f9 Edje reference patch two (from dresb)
SVN revision: 32849
2007-11-23 16:43:03 +00:00
Sebastian Dransfeld a71e255ede Edje reference patch one (from dresb)
SVN revision: 32848
2007-11-23 16:40:38 +00:00
doursse f936cbea25 * add mail in AC_INIT
* remove Makefile.in when cleaning
 * INCLUDES -> AM_CPPFLAGS
 * minor cleaning


SVN revision: 32342
2007-11-04 09:53:29 +00:00
doursse d6dd187899 configure improvements:
* add libtool versioning from the package version (from raster's
   management of package version)
 * replace AM_PROG_LIBTOOL(deprecated) by AC_PROG_LIBTOOL
 * remove AM_ENABLE_SHARED as shared lib is built by default
 * add AC_LIBTOOL_WIN32_DLL for libraries ported to Windows (tm)
 * remove the libtool checks of c++ and fortran compilers
 * remove PACKAGE_*_DIR from configure.in and define them in
   Makefile.am as bindir and al. are expanded in them.

please report any problem that these changes can add


SVN revision: 31999
2007-10-07 08:02:53 +00:00
Gustavo Sverzut Barbieri 89472b5bfc Fix edje_cc/edje_decc linkage in --as-needed mode
Requested by Pavlov Konstantin.


SVN revision: 31826
2007-09-26 18:22:34 +00:00
Sebastian Dransfeld 5b85440817 Don't segfault on empty file.
SVN revision: 31721
2007-09-15 08:46:34 +00:00
doursse 266887d1e5 implement a symlink function for Windows
SVN revision: 31658
2007-09-08 18:36:22 +00:00
doursse 97645159f8 Ecore_X and Ecore_Fb are not used
SVN revision: 31554
2007-08-27 11:52:04 +00:00
doursse 31618541b7 _O_BINARY exists only on windows
SVN revision: 31553
2007-08-27 11:28:30 +00:00
doursse 8a6ac30215 fix edje_cc on windows, remove some trailing spaces
SVN revision: 31549
2007-08-27 09:32:17 +00:00
doursse acdefc2be4 revert that change
SVN revision: 31519
2007-08-26 12:59:24 +00:00
doursse 2e7692e45e make edje binaries compile and allow the creation of the edje shared lib on windows. Remove some trailing spaces
SVN revision: 31517
2007-08-26 12:54:51 +00:00
Carsten Haitzler 07032e8edf handle USER images properly
SVN revision: 31253
2007-08-12 02:48:13 +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 902b6c40bb formattign and allocs...
SVN revision: 30925
2007-07-21 05:06:39 +00:00
Gustavo Sverzut Barbieri 233ecdf481 Fix escaping by remembering state, allows "\\" to be used as text.
Thanks to rephorm for hints, dj2 and mekius for review.


SVN revision: 30769
2007-07-11 20:47:28 +00:00
Gustavo Sverzut Barbieri 0e45d25776 Avoid doing math inside strings (quoted text), so I'm now enable to have part.description.text.text starting with "(".
Patch originally by rephorm.
Tested and minor changes by barbieri.


SVN revision: 30768
2007-07-11 15:33:03 +00:00
Peter Wehrfritz 4a9f47a386 sorry I forgot to commit this part of the patch
SVN revision: 30635
2007-07-07 11:07:42 +00:00
rephorm 982ad090be add cedric bail's fill.type patch.
you can now include "type: TILE;" in the fill block to tile an image part at the size of its image data


SVN revision: 30624
2007-07-06 22:36:40 +00:00
Carsten Haitzler 0d99270bc9 less stack for the parser - scratchbox hates the big stack usage :)
SVN revision: 30364
2007-06-17 06:51:42 +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
tilman c38e060fb2 hooked up the 'alternate font metrics stuff' in edje_cc.
SVN revision: 29280
2007-03-31 10:53:22 +00:00
tilman 731a6622f9 fixed some const char*/char* confusion.
SVN revision: 29279
2007-03-31 10:33:24 +00:00
tilman e0ed9aef1a use pkg-config to detect ecore
SVN revision: 28854
2007-03-21 15:36:26 +00:00
tilman d39dbeefa2 switched edje over to pkg-config. almost. ecore is still detected by ecore-config, cause that one's gonna be pain.
SVN revision: 28842
2007-03-21 02:52:41 +00:00
Carsten Haitzler e10fb8599e solve the edje_decc file thing
SVN revision: 28525
2007-03-02 07:24:32 +00:00
Carsten Haitzler 1cfed3e3c0 and actually allow "USER" images (ie don't encode them into the .edj - use an
external path to them)


SVN revision: 27156
2006-11-17 14:47:30 +00:00
Carsten Haitzler 935c00fdb1 remove even more
SVN revision: 26833
2006-10-28 09:28:10 +00:00
Carsten Haitzler f25731b240 remove...
SVN revision: 26832
2006-10-28 09:22:49 +00:00
Carsten Haitzler 9e61a142a6 removing...
SVN revision: 26831
2006-10-28 09:19:56 +00:00
rephorm 980a64d58a add group aliases.
use as follows:

group {
  name: "primary_name";
  alias: "another_name";
  alias: "one_more_name";
}

then you can refer to the group by any of these names.


SVN revision: 26546
2006-10-12 05:35:14 +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 8c93e825a8 same as previous commit.
SVN revision: 26236
2006-09-30 10:18:37 +00:00
rephorm 82a42879bb allow rel1.relative: 0 0; notation
set defaults


SVN revision: 24976
2006-08-21 03:14:09 +00:00
rephorm 46b3c5f1a0 add linear gradient specific fill options
used (inside a part description) as follows:

Horizontal from left to right filling entire part:

  gradient {
    spectrum: "black_to_white";
    rel1 {
      relative: 0 0.5;
      offset: 0 0;
    }
    rel2 {
      relative: 1 0.5;
      offset: -1 0;
    }
  }

Diagonal from top left to bottom right:


  gradient {
    spectrum: "black_to_white";
    rel1 {
      relative: 0 0;
      offset: 0 0;
    }
    rel2 {
      relative: 1 1;
      offset: -1 -1;
    }
  }

If either rel1 or rel2 is present in the gradient block of a linear gradient, these will override any angle/origin/size specified in the fill block ('spread' is still honored).


SVN revision: 24975
2006-08-21 03:00:01 +00:00
Carsten Haitzler fb4772a769 fix escape handling in quotes! :)
SVN revision: 24641
2006-08-13 10:37:04 +00:00
sebastid 57a4117e2d Remove unused variable.
SVN revision: 24598
2006-08-12 14:40:59 +00:00
sebastid 6163e51220 Fix warnings
SVN revision: 24415
2006-08-06 01:45:45 +00:00
sebastid 5dc6a1479f filename is const
SVN revision: 24414
2006-08-06 01:35:56 +00:00
rephorm 6f000216b2 don't check spectra if we don't have any... (fix segv)
SVN revision: 24392
2006-08-04 18:40:31 +00:00