diff --git a/src/Gui/DlgSettingsSelection.cpp b/src/Gui/DlgSettingsSelection.cpp index c26114fe0f..ad90da3e3e 100644 --- a/src/Gui/DlgSettingsSelection.cpp +++ b/src/Gui/DlgSettingsSelection.cpp @@ -50,12 +50,11 @@ void DlgSettingsSelection::saveSettings() ui->HighlightColor->onSave(); ui->SelectionColor->onSave(); 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()); - handle->SetBool("PreSelection", ui->checkBoxPreselect->isChecked()); - handle->SetBool("RecordSelection", ui->checkBoxRecord->isChecked()); - handle->SetBool("CheckBoxesSelection", ui->checkBoxSelectionCheckBoxes->isChecked()); + ui->checkBoxAutoSwitch->onSave(); + ui->checkBoxAutoExpand->onSave(); + ui->checkBoxPreselect->onSave(); + ui->checkBoxRecord->onSave(); + ui->checkBoxSelectionCheckBoxes->onSave(); } void DlgSettingsSelection::loadSettings() @@ -65,12 +64,11 @@ void DlgSettingsSelection::loadSettings() ui->HighlightColor->onRestore(); ui->SelectionColor->onRestore(); 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)); - ui->checkBoxPreselect->setChecked(handle->GetBool("PreSelection", true)); - ui->checkBoxRecord->setChecked(handle->GetBool("RecordSelection", true)); - ui->checkBoxSelectionCheckBoxes->setChecked(handle->GetBool("CheckBoxesSelection")); + ui->checkBoxAutoSwitch->onRestore(); + ui->checkBoxAutoExpand->onRestore(); + ui->checkBoxPreselect->onRestore(); + ui->checkBoxRecord->onRestore(); + ui->checkBoxSelectionCheckBoxes->onRestore(); } void DlgSettingsSelection::changeEvent(QEvent *e) diff --git a/src/Gui/DlgSettingsSelection.ui b/src/Gui/DlgSettingsSelection.ui index 6c11c35fbb..fe81b0549f 100644 --- a/src/Gui/DlgSettingsSelection.ui +++ b/src/Gui/DlgSettingsSelection.ui @@ -174,38 +174,68 @@ Larger value eases to pick things, but can make small features impossible to sel - + Auto switch to the 3D view containing the selected item + + SyncView + + + TreeView + - + Auto expand tree item when the corresponding object is selected in 3D view + + SyncSelection + + + TreeView + - + Preselect the object in 3D view when mouse over the tree item + + PreSelection + + + TreeView + - + Record selection in tree view in order to go back/forward using navigation button + + RecordSelection + + + TreeView + - + Add checkboxes for selection in document tree + + CheckBoxesSelection + + + TreeView +