Code

Node tool: special case node duplication for endnodes - select new endnode
[inkscape.git] / src / tweak-context.h
index 478fe223f7b17a1a7a3617146f69652e47897ab9..ad688b0256431fd0d40cace694dcfd01c0438190 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,22 @@ 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_MOVE,
+    TWEAK_MODE_MOVE_IN_OUT,
+    TWEAK_MODE_MOVE_JITTER,
+    TWEAK_MODE_SCALE,
+    TWEAK_MODE_ROTATE,
+    TWEAK_MODE_MORELESS,
     TWEAK_MODE_PUSH,
-    TWEAK_MODE_MELT,
-    TWEAK_MODE_INFLATE,
-    TWEAK_MODE_ROUGHEN
+    TWEAK_MODE_SHRINK_GROW,
+    TWEAK_MODE_ATTRACT_REPEL,
+    TWEAK_MODE_ROUGHEN,
+    TWEAK_MODE_COLORPAINT,
+    TWEAK_MODE_COLORJITTER,
+    TWEAK_MODE_BLUR
 };
 
 struct SPTweakContext
@@ -63,8 +71,15 @@ struct SPTweakContext
 
     bool is_dilating;
     bool has_dilated;
-    NR::Point last_push;
+    Geom::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
@@ -85,4 +100,4 @@ GtkType sp_tweak_context_get_type(void);
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :