summaryrefslogtreecommitdiffstats
path: root/src/knotholder.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-06-21 13:01:57 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-06-21 13:01:57 +0000
commitcf233ff5bbc68bd598ef4b81c7b4063548f2eff9 (patch)
tree56d48726d21ad368509a945bf7df91966115cc9c /src/knotholder.cpp
parentFix function plotter for the most common case where there are no transforms a... (diff)
downloadinkscape-cf233ff5bbc68bd598ef4b81c7b4063548f2eff9.tar.gz
inkscape-cf233ff5bbc68bd598ef4b81c7b4063548f2eff9.zip
First (very limited) version of the 3D box tool; allows for drawing of new boxes in a fixed perspective without any live interaction.
(bzr r3084)
Diffstat (limited to 'src/knotholder.cpp')
-rw-r--r--src/knotholder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/knotholder.cpp b/src/knotholder.cpp
index c67f22933..a24bb1625 100644
--- a/src/knotholder.cpp
+++ b/src/knotholder.cpp
@@ -29,6 +29,7 @@
#include "spiral-context.h"
#include "sp-spiral.h"
#include "sp-offset.h"
+#include "box3d.h"
#include <libnr/nr-matrix-div.h>
#include <glibmm/i18n.h>
@@ -236,6 +237,8 @@ static void knot_clicked_handler(SPKnot *knot, guint state, gpointer data)
if (SP_IS_RECT(item))
object_verb = SP_VERB_CONTEXT_RECT;
+ else if (SP_IS_3DBOX(item))
+ object_verb = SP_VERB_CONTEXT_3DBOX;
else if (SP_IS_GENERICELLIPSE(item))
object_verb = SP_VERB_CONTEXT_ARC;
else if (SP_IS_STAR(item))
@@ -289,6 +292,8 @@ static void knot_ungrabbed_handler(SPKnot *knot, unsigned int state, SPKnotHolde
if (SP_IS_RECT(object))
object_verb = SP_VERB_CONTEXT_RECT;
+ else if (SP_IS_3DBOX(object))
+ object_verb = SP_VERB_CONTEXT_3DBOX;
else if (SP_IS_GENERICELLIPSE(object))
object_verb = SP_VERB_CONTEXT_ARC;
else if (SP_IS_STAR(object))