From e49d553f1f3133f6915f49e97d68d0d59e64ad34 Mon Sep 17 00:00:00 2001
From: 0penBrain <48731257+0penBrain@users.noreply.github.com>
Date: Wed, 22 Jan 2020 19:16:52 +0100
Subject: [PATCH] [NaviCube]Add 'NaviStepByTurn' parameter to 'View'
preferences
---
src/Gui/DlgSettings3DView.ui | 47 ++++++++++++++++++++++++++++++++
src/Gui/DlgSettings3DViewImp.cpp | 2 ++
2 files changed, 49 insertions(+)
diff --git a/src/Gui/DlgSettings3DView.ui b/src/Gui/DlgSettings3DView.ui
index f312f18a3b..5dabdba1b4 100644
--- a/src/Gui/DlgSettings3DView.ui
+++ b/src/Gui/DlgSettings3DView.ui
@@ -91,6 +91,48 @@ will be shown at the lower left corner in opened files
+ -
+
+
+ Steps by turn
+
+
+
+ -
+
+
+ Number of steps by turn when using arrows (default = 8 : step angle = 360/8 = 45 deg)
+
+
+ 8
+
+
+ 4
+
+
+ 36
+
+
+ NaviStepByTurn
+
+
+ View
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
-
@@ -849,6 +891,11 @@ bounding box size of the 3D object that is currently displayed.
1
+
+ Gui::PrefSpinBox
+ QSpinBox
+
+
CheckBox_CornerCoordSystem
diff --git a/src/Gui/DlgSettings3DViewImp.cpp b/src/Gui/DlgSettings3DViewImp.cpp
index 5d5c206b5a..7b79f8adae 100644
--- a/src/Gui/DlgSettings3DViewImp.cpp
+++ b/src/Gui/DlgSettings3DViewImp.cpp
@@ -113,6 +113,7 @@ void DlgSettings3DViewImp::saveSettings()
ui->radioPerspective->onSave();
ui->radioOrthographic->onSave();
ui->qspinNewDocScale->onSave();
+ ui->prefStepByTurn->onSave();
QVariant camera = ui->comboNewDocView->itemData(ui->comboNewDocView->currentIndex(), Qt::UserRole);
hGrp->SetASCII("NewDocumentCameraOrientation", (const char*)camera.toByteArray());
@@ -144,6 +145,7 @@ void DlgSettings3DViewImp::loadSettings()
ui->radioPerspective->onRestore();
ui->radioOrthographic->onRestore();
ui->qspinNewDocScale->onRestore();
+ ui->prefStepByTurn->onRestore();
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View");