[TD]fix ext line gap preference
This commit is contained in:
committed by
WandererFan
parent
6d54ca4df4
commit
5d93fbe0bb
@@ -320,20 +320,20 @@ std::string Preferences::bitmapFill(void)
|
||||
return result;
|
||||
}
|
||||
|
||||
double Preferences::ISOGap()
|
||||
double Preferences::GapISO()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->
|
||||
GetGroup("Mod/TechDraw/Dimensions");
|
||||
double factor = hGrp->GetFloat("ISOGap", 8.0);
|
||||
double factor = hGrp->GetFloat("GapISO", 8.0);
|
||||
return factor;
|
||||
}
|
||||
|
||||
double Preferences::ASMEGap()
|
||||
double Preferences::GapASME()
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter()
|
||||
.GetGroup("BaseApp")->GetGroup("Preferences")->
|
||||
GetGroup("Mod/TechDraw/Dimensions");
|
||||
double factor = hGrp->GetFloat("ASMEGap", 6.0);
|
||||
double factor = hGrp->GetFloat("GapASME", 6.0);
|
||||
return factor;
|
||||
}
|
||||
|
||||
@@ -76,8 +76,8 @@ static std::string patFile();
|
||||
|
||||
static std::string bitmapFill(void);
|
||||
|
||||
static double ISOGap();
|
||||
static double ASMEGap();
|
||||
static double GapISO();
|
||||
static double GapASME();
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -517,7 +517,7 @@ Multiplier of 'Font Size'</string>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="2">
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="pdsbISOGap">
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="pdsbGapISO">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Controls the size of gap between dimension point and start of extension line for ISO dimensions. Value * linewidth is the gap.</p></body></html></string>
|
||||
</property>
|
||||
@@ -536,7 +536,7 @@ Multiplier of 'Font Size'</string>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="2">
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="pdsbASMEGap">
|
||||
<widget class="Gui::PrefDoubleSpinBox" name="pdsbGapASME">
|
||||
<property name="toolTip">
|
||||
<string><html><head/><body><p>Controls the size of gap between dimension point and start of extension line for ASME dimensions. Value * linewidth is the gap.</p></body></html></string>
|
||||
</property>
|
||||
|
||||
@@ -69,8 +69,8 @@ void DlgPrefsTechDrawDimensionsImp::saveSettings()
|
||||
ui->pcbArrow->onSave();
|
||||
ui->plsb_ArrowSize->onSave();
|
||||
ui->leFormatSpec->onSave();
|
||||
ui->pdsbISOGap->onSave();
|
||||
ui->pdsbASMEGap->onSave();
|
||||
ui->pdsbGapISO->onSave();
|
||||
ui->pdsbGapASME->onSave();
|
||||
}
|
||||
|
||||
void DlgPrefsTechDrawDimensionsImp::loadSettings()
|
||||
@@ -100,8 +100,8 @@ void DlgPrefsTechDrawDimensionsImp::loadSettings()
|
||||
ui->leFormatSpec->setText(Base::Tools::fromStdString(Preferences::formatSpec()));
|
||||
ui->leFormatSpec->onRestore();
|
||||
|
||||
ui->pdsbISOGap->onRestore();
|
||||
ui->pdsbASMEGap->onRestore();
|
||||
ui->pdsbGapISO->onRestore();
|
||||
ui->pdsbGapASME->onRestore();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -81,9 +81,9 @@ ViewProviderDimension::ViewProviderDimension()
|
||||
RenderingExtent.setEnums(RenderingExtentEnums);
|
||||
ADD_PROPERTY_TYPE(FlipArrowheads, (false), group, App::Prop_None,
|
||||
"Reverses usual direction of dimension line terminators");
|
||||
ADD_PROPERTY_TYPE(GapFactorISO, (Preferences::ISOGap()), group, App::Prop_None,
|
||||
ADD_PROPERTY_TYPE(GapFactorISO, (Preferences::GapISO()), group, App::Prop_None,
|
||||
"Adjusts the gap between dimension point and extension line");
|
||||
ADD_PROPERTY_TYPE(GapFactorASME, (Preferences::ASMEGap()), group, App::Prop_None,
|
||||
ADD_PROPERTY_TYPE(GapFactorASME, (Preferences::GapASME()), group, App::Prop_None,
|
||||
"Adjusts the gap between dimension point and extension line");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user