diff --git a/src/Gui/DlgSettings3DView.ui b/src/Gui/DlgSettings3DView.ui index 138c0bea19..498bb5af29 100644 --- a/src/Gui/DlgSettings3DView.ui +++ b/src/Gui/DlgSettings3DView.ui @@ -343,57 +343,14 @@ 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 - + @@ -429,7 +386,7 @@ bounding box size of the 3D object that is currently displayed. - + Backlight is enabled with the defined color @@ -445,7 +402,7 @@ bounding box size of the 3D object that is currently displayed. - + false @@ -468,7 +425,7 @@ bounding box size of the 3D object that is currently displayed. - + Qt::Horizontal @@ -481,7 +438,7 @@ bounding box size of the 3D object that is currently displayed. - + false @@ -497,7 +454,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 1d5a80320e..d6d60cc8b9 100644 --- a/src/Gui/DlgSettings3DViewImp.cpp +++ b/src/Gui/DlgSettings3DViewImp.cpp @@ -83,7 +83,6 @@ void DlgSettings3DViewImp::saveSettings() ui->SpinBox_CornerCoordSystemSize->onSave(); ui->CheckBox_ShowAxisCross->onSave(); ui->CheckBox_ShowFPS->onSave(); - ui->spinPickRadius->onSave(); ui->CheckBox_use_SW_OpenGL->onSave(); ui->CheckBox_useVBO->onSave(); ui->FloatSpinBox_EyeDistance->onSave(); @@ -100,7 +99,6 @@ void DlgSettings3DViewImp::loadSettings() ui->SpinBox_CornerCoordSystemSize->onRestore(); ui->CheckBox_ShowAxisCross->onRestore(); ui->CheckBox_ShowFPS->onRestore(); - ui->spinPickRadius->onRestore(); ui->CheckBox_use_SW_OpenGL->onRestore(); ui->CheckBox_useVBO->onRestore(); ui->FloatSpinBox_EyeDistance->onRestore(); diff --git a/src/Gui/DlgSettingsSelection.cpp b/src/Gui/DlgSettingsSelection.cpp index 4fd6c5c10f..1f29bc5bd9 100644 --- a/src/Gui/DlgSettingsSelection.cpp +++ b/src/Gui/DlgSettingsSelection.cpp @@ -45,6 +45,7 @@ DlgSettingsSelection::~DlgSettingsSelection() void DlgSettingsSelection::saveSettings() { + ui->spinPickRadius->onSave(); auto handle = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/TreeView"); handle->SetBool("SyncView", ui->checkBoxAutoSwitch->isChecked()); handle->SetBool("SyncSelection", ui->checkBoxAutoExpand->isChecked()); @@ -55,6 +56,7 @@ void DlgSettingsSelection::saveSettings() void DlgSettingsSelection::loadSettings() { + ui->spinPickRadius->onRestore(); auto handle = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/TreeView"); ui->checkBoxAutoSwitch->setChecked(handle->GetBool("SyncView", true)); ui->checkBoxAutoExpand->setChecked(handle->GetBool("SyncSelection", true)); diff --git a/src/Gui/DlgSettingsSelection.ui b/src/Gui/DlgSettingsSelection.ui index 12ac3da475..22541a9de0 100644 --- a/src/Gui/DlgSettingsSelection.ui +++ b/src/Gui/DlgSettingsSelection.ui @@ -15,41 +15,84 @@ + + + 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 + + + + Auto switch to the 3D view containing the selected item - + Auto expand tree item when the corresponding object is selected in 3D view - + Preselect the object in 3D view when mouse over the tree item - + Record selection in tree view in order to go back/forward using navigation button - + Add checkboxes for selection in document tree - + Qt::Vertical @@ -64,6 +107,13 @@ + + + Gui::PrefDoubleSpinBox + QDoubleSpinBox +
Gui/PrefWidgets.h
+
+