From 9c7757e7fc10db2004c188a7aff95ab54b0e80d6 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sat, 21 Jul 2012 12:36:25 +0900 Subject: Fix for 816496 : Alt+mouse wheel z-order cycling, add option to cycle wrap (bzr r11561) --- src/ui/dialog/inkscape-preferences.cpp | 7 +++++++ src/ui/dialog/inkscape-preferences.h | 1 + 2 files changed, 8 insertions(+) (limited to 'src/ui') diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index f2de350a0..b0cbc1b9f 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -1089,6 +1089,13 @@ void InkscapePreferences::initPageBehavior() _page_select.add_line( false, "", _sel_layer_deselects, "", _("Uncheck this to be able to keep the current objects selected when the current layer changes")); + + _sel_cycle.init ( _("Wrap when cycling objects in z-order"), "/options/selection/cycleWrap", true); + + _page_select.add_group_header( _("Alt+Scroll Wheel")); + _page_select.add_line( true, "", _sel_cycle, "", + _("Wrap around at start and end when cycling objects in z-order")); + this->AddPage(_page_select, _("Selecting"), iter_behavior, PREFS_PAGE_BEHAVIOR_SELECTING); // Transforms options diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index 1cf5cc975..49818110a 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -279,6 +279,7 @@ protected: UI::Widget::PrefCheckButton _sel_hidden; UI::Widget::PrefCheckButton _sel_locked; UI::Widget::PrefCheckButton _sel_layer_deselects; + UI::Widget::PrefCheckButton _sel_cycle; UI::Widget::PrefSpinButton _importexport_export; UI::Widget::PrefSlider _snap_delay; -- cgit v1.2.3