[TD]centralize balloon prefs

This commit is contained in:
wandererfan
2023-02-10 21:43:22 -05:00
committed by WandererFan
parent 7f2f5e9414
commit cd79b8744f
4 changed files with 25 additions and 28 deletions

View File

@@ -242,6 +242,26 @@ int Preferences::balloonArrow()
return end;
}
double Preferences::balloonKinkLength()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication()
.GetUserParameter()
.GetGroup("BaseApp")
->GetGroup("Preferences")
->GetGroup("Mod/TechDraw/Dimensions");
return hGrp->GetFloat("BalloonKink", 5.0);
}
int Preferences::balloonShape()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication()
.GetUserParameter()
.GetGroup("BaseApp")
->GetGroup("Preferences")
->GetGroup("Mod/TechDraw/Decorations");
return hGrp->GetInt("BalloonShape", 0);
}
QString Preferences::defaultTemplate()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication()