summaryrefslogtreecommitdiffstats
path: root/src/box3d-context.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2007-09-11 12:25:12 +0000
committercilix42 <cilix42@users.sourceforge.net>2007-09-11 12:25:12 +0000
commit3916b60702abf416c04a3dae2e62ca556b40a082 (patch)
tree2200ba21e2e8a4bd1ab3cd2b2c412bb62d12a160 /src/box3d-context.cpp
parentadd select all, select all in all layers, deselect to selector toolbar (diff)
downloadinkscape-3916b60702abf416c04a3dae2e62ca556b40a082.tar.gz
inkscape-3916b60702abf416c04a3dae2e62ca556b40a082.zip
Use angle step from prefs for rotation of PLs; Alt+parentheses rotate PLs by (constant) small amount
(bzr r3720)
Diffstat (limited to 'src/box3d-context.cpp')
-rw-r--r--src/box3d-context.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/box3d-context.cpp b/src/box3d-context.cpp
index 818a87c6c..cb6dd1d0b 100644
--- a/src/box3d-context.cpp
+++ b/src/box3d-context.cpp
@@ -295,6 +295,7 @@ static gint sp_3dbox_context_root_handler(SPEventContext *event_context, GdkEven
SPDesktop *desktop = event_context->desktop;
Inkscape::Selection *selection = sp_desktop_selection (desktop);
+ int const snaps = prefs_get_int_attribute("options.rotationsnapsperpi", "value", 12);
SP3DBoxContext *bc = SP_3DBOX_CONTEXT(event_context);
@@ -452,32 +453,32 @@ static gint sp_3dbox_context_root_handler(SPEventContext *event_context, GdkEven
break;
case GDK_bracketright:
- inkscape_active_document()->current_perspective->rotate (Box3D::X, -10);
+ inkscape_active_document()->current_perspective->rotate (Box3D::X, -180/snaps, MOD__ALT);
ret = true;
break;
case GDK_bracketleft:
- inkscape_active_document()->current_perspective->rotate (Box3D::X, 10);
+ inkscape_active_document()->current_perspective->rotate (Box3D::X, 180/snaps, MOD__ALT);
ret = true;
break;
case GDK_parenright:
- inkscape_active_document()->current_perspective->rotate (Box3D::Y, -10);
+ inkscape_active_document()->current_perspective->rotate (Box3D::Y, -180/snaps, MOD__ALT);
ret = true;
break;
case GDK_parenleft:
- inkscape_active_document()->current_perspective->rotate (Box3D::Y, 10);
+ inkscape_active_document()->current_perspective->rotate (Box3D::Y, 180/snaps, MOD__ALT);
ret = true;
break;
case GDK_braceright:
- inkscape_active_document()->current_perspective->rotate (Box3D::Z, -10);
+ inkscape_active_document()->current_perspective->rotate (Box3D::Z, -180/snaps, MOD__ALT);
ret = true;
break;
case GDK_braceleft:
- inkscape_active_document()->current_perspective->rotate (Box3D::Z, 10);
+ inkscape_active_document()->current_perspective->rotate (Box3D::Z, 180/snaps, MOD__ALT);
ret = true;
break;