[TD]move format spec to dimension tab

- also make %.2w default format
This commit is contained in:
Wanderer Fan
2022-03-02 18:03:41 -05:00
committed by WandererFan
parent 0149b99b6f
commit 58d1ef260b
7 changed files with 550 additions and 544 deletions

View File

@@ -233,3 +233,17 @@ std::string Preferences::lineGroupFile()
}
return lgFileName;
}
std::string Preferences::formatSpec()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Dimensions");
return hGrp->GetASCII("formatSpec","%.2w");
}
int Preferences::altDecimals()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/Dimensions");
return hGrp->GetInt("AltDecimals", 2);
}