From 5e3ce0331eae513132cfe2b80f3ffa9d9db773d4 Mon Sep 17 00:00:00 2001 From: hokieengr Date: Mon, 2 Jul 2018 18:20:32 -0400 Subject: [PATCH] Added option to hide units in sketch Currently not hooked up to anything just yet. --- src/Mod/Sketcher/Gui/SketcherSettings.cpp | 2 + src/Mod/Sketcher/Gui/SketcherSettings.ui | 132 ++++++++++++---------- 2 files changed, 76 insertions(+), 58 deletions(-) diff --git a/src/Mod/Sketcher/Gui/SketcherSettings.cpp b/src/Mod/Sketcher/Gui/SketcherSettings.cpp index f27ef5be0f..68bf4a3b87 100644 --- a/src/Mod/Sketcher/Gui/SketcherSettings.cpp +++ b/src/Mod/Sketcher/Gui/SketcherSettings.cpp @@ -100,6 +100,7 @@ void SketcherSettings::saveSettings() ui->dialogOnDistanceConstraint->onSave(); ui->continueMode->onSave(); ui->constraintMode->onSave(); + ui->checkBoxHideUnits->onSave(); ui->checkBoxAdvancedSolverTaskBox->onSave(); ui->checkBoxRecalculateInitialSolutionWhileDragging->onSave(); ui->checkBoxTVHideDependent->onSave(); @@ -123,6 +124,7 @@ void SketcherSettings::loadSettings() ui->dialogOnDistanceConstraint->onRestore(); ui->continueMode->onRestore(); ui->constraintMode->onRestore(); + ui->checkBoxHideUnits->onRestore(); ui->checkBoxAdvancedSolverTaskBox->onRestore(); ui->checkBoxRecalculateInitialSolutionWhileDragging->onRestore(); ui->checkBoxTVHideDependent->onRestore(); diff --git a/src/Mod/Sketcher/Gui/SketcherSettings.ui b/src/Mod/Sketcher/Gui/SketcherSettings.ui index ad9fbf52e6..e2d36f3f90 100644 --- a/src/Mod/Sketcher/Gui/SketcherSettings.ui +++ b/src/Mod/Sketcher/Gui/SketcherSettings.ui @@ -6,8 +6,8 @@ 0 0 - 602 - 653 + 604 + 668 @@ -20,6 +20,61 @@ Sketch editing + + + + true + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + 0 + 0 + + + + Notifications + + + + + + Notify automatic constraint substitutions. + + + Notify automatic constraint substitutions + + + true + + + NotifyConstraintSubstitutions + + + Mod/Sketcher/General + + + + + + @@ -117,7 +172,7 @@ - + true @@ -264,61 +319,6 @@ - - - - true - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - - 0 - 0 - - - - Notifications - - - - - - Notify automatic constraint substitutions. - - - Notify automatic constraint substitutions - - - true - - - NotifyConstraintSubstitutions - - - Mod/Sketcher/General - - - - - - @@ -342,6 +342,22 @@ + + + + Do not show base length units in sketches. Supports all unit systems except US Customary and Building US/Euro. + + + Hide base length units for supported unit systems + + + HideUnits + + + Mod/Sketcher + + +