Code

improve spcurve::second_point and document its behavior
[inkscape.git] / src / tweak-context.h
index 14297b5a24aff4950c2a55a937c0c6f2142b2e36..2157ecdaa794f817ca507f11ef5f1a8a4f96cee7 100644 (file)
@@ -12,7 +12,6 @@
  * Released under GNU GPL, read the file 'COPYING' for more information
  */
 
-#include "display/curve.h"
 #include "event-context.h"
 #include <display/display-forward.h>
 #include <libnr/nr-point.h>
@@ -30,13 +29,17 @@ class SPTweakContextClass;
 
 #define TC_MIN_PRESSURE      0.0
 #define TC_MAX_PRESSURE      1.0
-#define TC_DEFAULT_PRESSURE  0.4
+#define TC_DEFAULT_PRESSURE  0.35
 
 enum {
     TWEAK_MODE_PUSH,
-    TWEAK_MODE_SUCK,
-    TWEAK_MODE_BLOW,
-    TWEAK_MODE_ROUGHEN
+    TWEAK_MODE_SHRINK,
+    TWEAK_MODE_GROW,
+    TWEAK_MODE_ATTRACT,
+    TWEAK_MODE_REPEL,
+    TWEAK_MODE_ROUGHEN,
+    TWEAK_MODE_COLORPAINT,
+    TWEAK_MODE_COLORJITTER
 };
 
 struct SPTweakContext
@@ -65,6 +68,13 @@ struct SPTweakContext
     bool has_dilated;
     NR::Point last_push;
     SPCanvasItem *dilate_area;
+
+    bool do_h;
+    bool do_s;
+    bool do_l;
+    bool do_o;
+
+       sigc::connection style_set_connection;
 };
 
 struct SPTweakContextClass