Enlightenment CVS committal

Author  : davemds
Project : e17
Module  : proto/edje_editor

Dir     : e17/proto/edje_editor


Modified Files:
        edje_edit.patch 


Log Message:
 * add/remove tween frame

===================================================================
RCS file: /cvs/e/e17/proto/edje_editor/edje_edit.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- edje_edit.patch     15 Feb 2008 21:48:41 -0000      1.1
+++ edje_edit.patch     16 Feb 2008 01:22:20 -0000      1.2
@@ -4,7 +4,7 @@
 retrieving revision 1.4
 diff -u -r1.4 Doxyfile
 --- Doxyfile   6 Dec 2007 23:40:48 -0000       1.4
-+++ Doxyfile   15 Feb 2008 21:04:10 -0000
++++ Doxyfile   16 Feb 2008 01:18:05 -0000
 @@ -1,7 +1,7 @@
  PROJECT_NAME           = Edje
  PROJECT_NUMBER         =
@@ -29,7 +29,7 @@
 retrieving revision 1.93
 diff -u -r1.93 configure.in
 --- configure.in       25 Jan 2008 03:35:46 -0000      1.93
-+++ configure.in       15 Feb 2008 21:04:10 -0000
++++ configure.in       16 Feb 2008 01:18:05 -0000
 @@ -66,6 +66,7 @@
    evas >= 0.9.9
    ecore-evas >= 0.9.9
@@ -44,7 +44,7 @@
 retrieving revision 1.6
 diff -u -r1.6 gendoc
 --- gendoc     6 Dec 2007 23:42:38 -0000       1.6
-+++ gendoc     15 Feb 2008 21:04:10 -0000
++++ gendoc     16 Feb 2008 01:18:05 -0000
 @@ -1,7 +1,7 @@
  #!/bin/sh
  cp ./edje.c.in ./edje.c
@@ -68,8 +68,8 @@
 RCS file: src/lib/Edje_Edit.h
 diff -N src/lib/Edje_Edit.h
 --- /dev/null  1 Jan 1970 00:00:00 -0000
-+++ src/lib/Edje_Edit.h        15 Feb 2008 21:04:10 -0000
-@@ -0,0 +1,986 @@
++++ src/lib/Edje_Edit.h        16 Feb 2008 01:18:06 -0000
+@@ -0,0 +1,1007 @@
 +#ifndef _EDJE_EDIT_H
 +#define _EDJE_EDIT_H
 +
@@ -983,8 +983,6 @@
 +);
 +    
 +/**Get the list of all the tweens images in the given part state.
-+ * @return An Evas_List* of string (char *)containing all the tweens images 
names found 
-+ * in the given part state.
 + * Use edje_edit_string_list_free() when you don't need it anymore.
 + */
 +EAPI Evas_List *           ///@return A string list containing all the image 
name that form a tween animation in the given part state
@@ -994,6 +992,29 @@
 +   const char *state       ///< The name of the 'part state' (ex. "default 
0.00")
 +);
 +
++/**Add a new tween frame to the given part state
++ * The tween param must be the name of an existing image.
++ */
++EAPI unsigned char         ///@return 1 on success, 0 otherwise
++edje_edit_state_tween_add(
++   Evas_Object *obj,       ///< The edje object
++   const char *part,       ///< The name of the part
++   const char *state,      ///< The name of the 'part state' (ex. "default 
0.00")
++   const char *tween       ///< The name of the image to add.
++);
++   
++/**Remove the first tween with the given name.
++ * If none is removed the function return 0.
++ * The image is not removed from the edje.
++ */
++EAPI unsigned char         ///@return 1 on success, 0 otherwise
++edje_edit_state_tween_del(
++   Evas_Object *obj,       ///< The edje object
++   const char *part,       ///< The name of the part
++   const char *state,      ///< The name of the 'part state' (ex. "default 
0.00")
++   const char *tween       ///< The name of the image to remove from the 
tween list.
++);
++
 +//@}
 
+/******************************************************************************/
 +/*************************   PROGRAMS API   
***********************************/
@@ -1062,7 +1083,7 @@
 retrieving revision 1.39
 diff -u -r1.39 Makefile.am
 --- src/lib/Makefile.am        18 Jan 2008 06:38:46 -0000      1.39
-+++ src/lib/Makefile.am        15 Feb 2008 21:04:10 -0000
++++ src/lib/Makefile.am        16 Feb 2008 01:18:06 -0000
 @@ -14,7 +14,8 @@
  libedje.la
  
@@ -1088,8 +1109,8 @@
 RCS file: src/lib/edje_edit.c
 diff -N src/lib/edje_edit.c
 --- /dev/null  1 Jan 1970 00:00:00 -0000
-+++ src/lib/edje_edit.c        15 Feb 2008 21:04:10 -0000
-@@ -0,0 +1,2225 @@
++++ src/lib/edje_edit.c        16 Feb 2008 01:18:06 -0000
+@@ -0,0 +1,2272 @@
 +/*
 + * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
 + */
@@ -1269,7 +1290,6 @@
 +   return NULL;
 +}
 +
-+
 +static void
 +_edje_real_part_free(Edje_Real_Part *rp)
 +{
@@ -3123,6 +3143,54 @@
 +   return tweens;
 +}
 +
++EAPI unsigned char
++edje_edit_state_tween_add(Evas_Object *obj, const char *part, const char 
*state, const char *tween)
++{
++   Edje_Part_Image_Id *i;
++   int id;
++   GET_PD_OR_RETURN(0)
++   
++   id = _edje_image_id_find(obj, tween);
++   if (id < 0) return 0;
++   
++   /* alloc Edje_Part_Image_Id */
++   i = mem_alloc(SZ(Edje_Part_Image_Id));
++   if (!i) return 0;
++   i->id = id;
++   
++   /* add to tween list */
++   pd->image.tween_list = evas_list_append(pd->image.tween_list, i);
++
++   return 1;
++}
++
++EAPI unsigned char
++edje_edit_state_tween_del(Evas_Object *obj, const char *part, const char 
*state, const char *tween)
++{
++   Evas_List *l;
++   int id;
++   GET_PD_OR_RETURN(0)
++
++   if (!pd->image.tween_list) return 0;
++   
++   id = _edje_image_id_find(obj, tween);
++   if (id < 0) return 0;
++   
++   l = pd->image.tween_list;
++   while (l)
++   {
++      Edje_Part_Image_Id *i;
++      i = l->data;
++      if (i->id == id)
++      {
++         pd->image.tween_list = evas_list_remove_list(pd->image.tween_list, 
l);
++         return 1;
++      }
++      l = l->next;
++   }
++   return 0;
++}
++
 +EAPI void
 +edje_edit_state_image_border_get(Evas_Object *obj, const char *part, const 
char *state, int *l, int *r, int *t, int *b)
 +{
@@ -3321,7 +3389,7 @@
 retrieving revision 1.111
 diff -u -r1.111 edje_load.c
 --- src/lib/edje_load.c        18 Jan 2008 06:34:04 -0000      1.111
-+++ src/lib/edje_load.c        15 Feb 2008 21:04:10 -0000
++++ src/lib/edje_load.c        16 Feb 2008 01:18:06 -0000
 @@ -5,7 +5,7 @@
  #include "Edje.h"
  #include "edje_private.h"



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to