Code

clean up tabs and DOS-ishness
[inkscape.git] / src / sp-gradient.h
index 9c152598b3a033063dbac03591e7def38f0ee866..52234b50e47d6b1dcbce049d1ee0efe031dc0952 100644 (file)
@@ -6,7 +6,9 @@
  *
  * Authors:
  *   Lauris Kaplinski <lauris@kaplinski.com>
+ *   Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
  *
+ * Copyright (C) 2007 Johan Engelen
  * Copyright (C) 1999-2002 Lauris Kaplinski
  * Copyright (C) 2000-2001 Ximian, Inc.
  *
@@ -20,6 +22,8 @@
 #include "sp-gradient-units.h"
 #include "sp-gradient-vector.h"
 
+#include <sigc++/connection.h>
+
 struct SPGradientReference;
 
 typedef enum {
@@ -35,13 +39,19 @@ typedef enum {
 } SPGradientState;
 
 typedef enum {
-    POINT_LG_P1,
-    POINT_LG_P2,
+    POINT_LG_BEGIN =0, //start enum at 0 (for indexing into gr_knot_shapes array for example)
+    POINT_LG_END,
+    POINT_LG_MID,
     POINT_RG_CENTER,
     POINT_RG_R1,
     POINT_RG_R2,
-    POINT_RG_FOCUS
-} GrPoint;
+    POINT_RG_FOCUS,
+    POINT_RG_MID1,
+    POINT_RG_MID2,
+    // insert new point types here.
+    
+    POINT_G_INVALID
+} GrPointType;
 
 /**
  * Gradient
@@ -69,6 +79,8 @@ struct SPGradient : public SPPaintServer {
        SPGradientVector vector;
        /** Rendered color array (4 * 1024 bytes) */
        guchar *color;
+
+        sigc::connection modified_connection;
 };
 
 /**