From b1c5ddcf6d3521d17badf16fa5bc694d34b431c3 Mon Sep 17 00:00:00 2001 From: arijeetbaruah Date: Mon, 5 Oct 2020 13:55:38 +0530 Subject: [PATCH] moved 'Pick Radius' from 'Color' to '3D View' fixes #0004147 --- src/Gui/DlgSettings3DView.ui | 58 ++++++++++++++++++++++++++++---- src/Gui/DlgSettings3DViewImp.cpp | 2 ++ src/Gui/DlgSettingsViewColor.cpp | 4 +-- src/Gui/DlgSettingsViewColor.ui | 36 -------------------- 4 files changed, 55 insertions(+), 45 deletions(-) diff --git a/src/Gui/DlgSettings3DView.ui b/src/Gui/DlgSettings3DView.ui index e9d622567c..9862126d54 100644 --- a/src/Gui/DlgSettings3DView.ui +++ b/src/Gui/DlgSettings3DView.ui @@ -292,14 +292,58 @@ but slower response to any scene changes. - + + + + Pick radius (px): + + + + + + + + 120 + 0 + + + + + Area for picking elements in 3D view. + Larger value eases to pick things, but can make small features impossible to select. + + + + Qt::ImhPreferNumbers + + + 1 + + + 0.500000000000000 + + + 200.000000000000000 + + + 5.000000000000000 + + + PickRadius + + + View + + + + Eye to eye distance for stereo modes - + @@ -335,7 +379,7 @@ bounding box size of the 3D object that is currently displayed. - + Backlight is enabled with the defined color @@ -351,7 +395,7 @@ bounding box size of the 3D object that is currently displayed. - + false @@ -374,7 +418,7 @@ bounding box size of the 3D object that is currently displayed. - + Qt::Horizontal @@ -387,7 +431,7 @@ bounding box size of the 3D object that is currently displayed. - + false @@ -403,7 +447,7 @@ bounding box size of the 3D object that is currently displayed. - + false diff --git a/src/Gui/DlgSettings3DViewImp.cpp b/src/Gui/DlgSettings3DViewImp.cpp index cd0c07b745..3f6dbb0acc 100644 --- a/src/Gui/DlgSettings3DViewImp.cpp +++ b/src/Gui/DlgSettings3DViewImp.cpp @@ -92,6 +92,7 @@ void DlgSettings3DViewImp::saveSettings() ui->CheckBox_ShowAxisCross->onSave(); ui->CheckBox_WbByTab->onSave(); ui->CheckBox_ShowFPS->onSave(); + ui->spinPickRadius->onSave(); ui->CheckBox_useVBO->onSave(); ui->FloatSpinBox_EyeDistance->onSave(); ui->checkBoxBacklight->onSave(); @@ -107,6 +108,7 @@ void DlgSettings3DViewImp::loadSettings() ui->CheckBox_ShowAxisCross->onRestore(); ui->CheckBox_WbByTab->onRestore(); ui->CheckBox_ShowFPS->onRestore(); + ui->spinPickRadius->onRestore(); ui->CheckBox_useVBO->onRestore(); ui->FloatSpinBox_EyeDistance->onRestore(); ui->checkBoxBacklight->onRestore(); diff --git a/src/Gui/DlgSettingsViewColor.cpp b/src/Gui/DlgSettingsViewColor.cpp index b04aedddea..18c6a46ce1 100644 --- a/src/Gui/DlgSettingsViewColor.cpp +++ b/src/Gui/DlgSettingsViewColor.cpp @@ -68,7 +68,7 @@ void DlgSettingsViewColor::saveSettings() ui->checkBoxSelection->onSave(); ui->HighlightColor->onSave(); ui->SelectionColor->onSave(); - ui->spinPickRadius->onSave(); + //ui->spinPickRadius->onSave(); ui->TreeEditColor->onSave(); ui->TreeActiveColor->onSave(); } @@ -86,7 +86,7 @@ void DlgSettingsViewColor::loadSettings() ui->checkBoxSelection->onRestore(); ui->HighlightColor->onRestore(); ui->SelectionColor->onRestore(); - ui->spinPickRadius->onRestore(); + //ui->spinPickRadius->onRestore(); ui->TreeEditColor->onRestore(); ui->TreeActiveColor->onRestore(); } diff --git a/src/Gui/DlgSettingsViewColor.ui b/src/Gui/DlgSettingsViewColor.ui index de6de207a0..08509d39b5 100644 --- a/src/Gui/DlgSettingsViewColor.ui +++ b/src/Gui/DlgSettingsViewColor.ui @@ -176,42 +176,6 @@ - - - - Pick radius (px): - - - - - - - Area for picking elements in 3D view. -Larger value eases to pick things, but can make small features impossible to select. - - - Qt::ImhPreferNumbers - - - 1 - - - 0.500000000000000 - - - 200.000000000000000 - - - 5.000000000000000 - - - PickRadius - - - View - - -