Skip to content

Commit

Permalink
[TD]adjustable extension line gap
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jul 5, 2022
1 parent 90d6602 commit b6c2020
Show file tree
Hide file tree
Showing 8 changed files with 282 additions and 156 deletions.
18 changes: 18 additions & 0 deletions src/Mod/TechDraw/App/Preferences.cpp
Expand Up @@ -319,3 +319,21 @@ std::string Preferences::bitmapFill(void)
}
return result;
}

double Preferences::ISOGap()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->
GetGroup("Mod/TechDraw/Dimensions");
double factor = hGrp->GetFloat("ISOGap", 8.0);
return factor;
}

double Preferences::ASMEGap()
{
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
.GetGroup("BaseApp")->GetGroup("Preferences")->
GetGroup("Mod/TechDraw/Dimensions");
double factor = hGrp->GetFloat("ASMEGap", 6.0);
return factor;
}
5 changes: 5 additions & 0 deletions src/Mod/TechDraw/App/Preferences.h
Expand Up @@ -73,7 +73,12 @@ static int mattingStyle();

static std::string svgFile();
static std::string patFile();

static std::string bitmapFill(void);

static double ISOGap();
static double ASMEGap();

};

} //end namespace TechDraw
Expand Down

0 comments on commit b6c2020

Please sign in to comment.