summaryrefslogtreecommitdiffstats
path: root/src/rect-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-12-13 09:45:27 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-12-13 09:45:27 +0000
commitcae2409c94b11d17643f7c19829e2653d759ff8e (patch)
treea8399ab9b3e8ff2570a92bef06e63f2307fef592 /src/rect-context.cpp
parentlibgdl: avoid setting a negative preferred height for dock items, (diff)
downloadinkscape-cae2409c94b11d17643f7c19829e2653d759ff8e.tar.gz
inkscape-cae2409c94b11d17643f7c19829e2653d759ff8e.zip
Fundamentally reworked version of the 3D box tool (among many other things, this fixes bugs #168900 and #168868). See mailing list for details. Sorry for this single large commit but it was unfeasible to keep the history.
(bzr r4224)
Diffstat (limited to 'src/rect-context.cpp')
-rw-r--r--src/rect-context.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rect-context.cpp b/src/rect-context.cpp
index d069e052c..3efc81596 100644
--- a/src/rect-context.cpp
+++ b/src/rect-context.cpp
@@ -15,6 +15,7 @@
*/
#include "config.h"
+#include "inkscape.h"
#include <gdk/gdkkeysyms.h>
@@ -397,6 +398,19 @@ static gint sp_rect_context_root_handler(SPEventContext *event_context, GdkEvent
}
break;
+ case GDK_T:
+ {
+ Inkscape::Selection *selection = sp_desktop_selection (inkscape_active_desktop());
+ SPItem *item = selection->singleItem();
+ if (item && SP_IS_RECT (item)) {
+ g_print ("Scaling transformation matrix\n");
+ SP_RECT (item)->transform = nr_matrix_set_scale(SP_RECT (item)->transform, 1.25, 1.5);
+ SP_OBJECT (item)->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG);
+ }
+ ret = TRUE;
+ }
+ break;
+
case GDK_Escape:
sp_desktop_selection(desktop)->clear();
//TODO: make dragging escapable by Esc