[TD]allow showing units on individual dimensions

This commit is contained in:
wandererfan
2025-01-24 13:04:00 -05:00
parent 06143dcb15
commit 2bc9f2ea1f
7 changed files with 29 additions and 26 deletions

View File

@@ -231,6 +231,8 @@ DrawViewDimension::DrawViewDimension()
"If true, area dimensions return the area of the face minus the areas of any enclosed faces. \
If false, the area of the face's outer boundary is returned.");
ADD_PROPERTY_TYPE(ShowUnits, (Preferences::showUnits()), "Format", App::Prop_None,
"Show or hide the units.");
measurement = new Measure::Measurement();
// TODO: should have better initial datumLabel position than (0, 0) in the DVP?? something
// closer to the object being measured?
@@ -2076,7 +2078,7 @@ bool DrawViewDimension::hasOverUnderTolerance() const
bool DrawViewDimension::showUnits() const
{
return Preferences::getPreferenceGroup("Dimensions")->GetBool("ShowUnits", false);
return ShowUnits.getValue();
}
bool DrawViewDimension::useDecimals() const