diff --git a/src/Mod/Sketcher/Gui/SketcherSettings.cpp b/src/Mod/Sketcher/Gui/SketcherSettings.cpp index 152afdd05b..973957b259 100644 --- a/src/Mod/Sketcher/Gui/SketcherSettings.cpp +++ b/src/Mod/Sketcher/Gui/SketcherSettings.cpp @@ -117,6 +117,12 @@ void SketcherSettings::saveSettings() } hGrp->SetBool("DimensioningDiameter", Diameter); hGrp->SetBool("DimensioningRadius", Radius); + + hGrp = App::GetApplication().GetParameterGroupByPath( + "User parameter:BaseApp/Preferences/Mod/Sketcher/Tools"); + + index = ui->ovpVisibility->currentIndex(); + hGrp->SetInt("OnViewParameterVisibility", index); } void SketcherSettings::loadSettings() @@ -157,6 +163,16 @@ void SketcherSettings::loadSettings() bool Radius = hGrp->GetBool("DimensioningRadius", true); index = Diameter ? (Radius ? 0 : 1) : 2; ui->radiusDiameterMode->setCurrentIndex(index); + + hGrp = App::GetApplication().GetParameterGroupByPath( + "User parameter:BaseApp/Preferences/Mod/Sketcher/Tools"); + ui->ovpVisibility->clear(); + ui->ovpVisibility->addItem(tr("Disabled")); + ui->ovpVisibility->addItem(tr("Only dimensional")); + ui->ovpVisibility->addItem(tr("All")); + + index = hGrp->GetInt("OnViewParameterVisibility", 1); + ui->ovpVisibility->setCurrentIndex(index); } void SketcherSettings::dimensioningModeChanged(int index) diff --git a/src/Mod/Sketcher/Gui/SketcherSettings.ui b/src/Mod/Sketcher/Gui/SketcherSettings.ui index effbb7ff66..dafd343a4a 100644 --- a/src/Mod/Sketcher/Gui/SketcherSettings.ui +++ b/src/Mod/Sketcher/Gui/SketcherSettings.ui @@ -213,6 +213,38 @@ This setting is only for the toolbar. Whichever you chose, all tools are always + + + + 0 + 0 + + + + Tool Parameters + + + + + + On-View-Parameters : + + + + + + + Choose a visibility mode for the On-View-Parameters: +'Disabled': On-View-Parameters are completely disabled. +'Only dimensional': Only dimensional On-View-Parameters are visible. They are the most useful. For example the radius of a circle. +'All': Both dimensional and positional On-View-Parameters. Positionals are the (x,y) position of the cursor. For example for the center of a circle. + + + + + + + Qt::Vertical