[TD]fix missing parm save/restore
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>521</width>
|
||||
<height>1055</height>
|
||||
<height>1110</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -671,7 +671,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="0">
|
||||
<widget class="Gui::PrefCheckBox" name="checkBox">
|
||||
<widget class="Gui::PrefCheckBox" name="cbPrintCenterMarks">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
|
||||
@@ -45,52 +45,56 @@ DlgPrefsTechDraw3Imp::~DlgPrefsTechDraw3Imp()
|
||||
|
||||
void DlgPrefsTechDraw3Imp::saveSettings()
|
||||
{
|
||||
pcbMatting->onSave();
|
||||
pcbBalloonShape->onSave();
|
||||
cbSectionLineStd->onSave();
|
||||
cbPyramidOrtho->onSave();
|
||||
pcbCenterStyle->onSave();
|
||||
pcbSectionStyle->onSave();
|
||||
leLineGroup->onSave();
|
||||
pcbBalloonArrow->onSave();
|
||||
cbAutoHoriz->onSave();
|
||||
leDiameter->onSave();
|
||||
pcbArrow->onSave();
|
||||
sbAltDecimals->onSave();
|
||||
plsb_FontSize->onSave();
|
||||
plsb_ArrowSize->onSave();
|
||||
leformatSpec->onSave();
|
||||
cbGlobalDecimals->onSave();
|
||||
cbShowUnits->onSave();
|
||||
pcbStandardAndStyle->onSave();
|
||||
cbProjAngle->onSave();
|
||||
cbHiddenLineStyle->onSave();
|
||||
cbPrintCenterMarks->onSave();
|
||||
cbProjAngle->onSave();
|
||||
cbPyramidOrtho->onSave();
|
||||
cbSectionLineStd->onSave();
|
||||
cbShowCenterMarks->onSave();
|
||||
cbShowUnits->onSave();
|
||||
leDiameter->onSave();
|
||||
leformatSpec->onSave();
|
||||
leLineGroup->onSave();
|
||||
pcbArrow->onSave();
|
||||
pcbBalloonArrow->onSave();
|
||||
pcbBalloonShape->onSave();
|
||||
pcbCenterStyle->onSave();
|
||||
pcbMatting->onSave();
|
||||
pcbSectionStyle->onSave();
|
||||
pcbStandardAndStyle->onSave();
|
||||
pdsbBalloonKink->onSave();
|
||||
plsb_ArrowSize->onSave();
|
||||
plsb_FontSize->onSave();
|
||||
sbAltDecimals->onSave();
|
||||
}
|
||||
|
||||
void DlgPrefsTechDraw3Imp::loadSettings()
|
||||
{
|
||||
pcbMatting->onRestore();
|
||||
pcbBalloonShape->onRestore();
|
||||
cbSectionLineStd->onRestore();
|
||||
cbPyramidOrtho->onRestore();
|
||||
pcbCenterStyle->onRestore();
|
||||
pcbSectionStyle->onRestore();
|
||||
leLineGroup->onRestore();
|
||||
pcbBalloonArrow->onRestore();
|
||||
cbAutoHoriz->onRestore();
|
||||
leDiameter->onRestore();
|
||||
pcbArrow->onRestore();
|
||||
sbAltDecimals->onRestore();
|
||||
plsb_FontSize->onRestore();
|
||||
plsb_ArrowSize->onRestore();
|
||||
leformatSpec->onRestore();
|
||||
cbGlobalDecimals->onRestore();
|
||||
cbShowUnits->onRestore();
|
||||
pcbStandardAndStyle->onRestore();
|
||||
cbProjAngle->onRestore();
|
||||
cbHiddenLineStyle->onRestore();
|
||||
cbPrintCenterMarks->onRestore();
|
||||
cbProjAngle->onRestore();
|
||||
cbPyramidOrtho->onRestore();
|
||||
cbSectionLineStd->onRestore();
|
||||
cbShowCenterMarks->onRestore();
|
||||
cbShowUnits->onRestore();
|
||||
leDiameter->onRestore();
|
||||
leformatSpec->onRestore();
|
||||
leLineGroup->onRestore();
|
||||
pcbArrow->onRestore();
|
||||
pcbBalloonArrow->onRestore();
|
||||
pcbBalloonShape->onRestore();
|
||||
pcbCenterStyle->onRestore();
|
||||
pcbMatting->onRestore();
|
||||
pcbSectionStyle->onRestore();
|
||||
pcbStandardAndStyle->onRestore();
|
||||
pdsbBalloonKink->onRestore();
|
||||
plsb_ArrowSize->onRestore();
|
||||
plsb_FontSize->onRestore();
|
||||
sbAltDecimals->onRestore();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -85,9 +85,10 @@ ViewProviderViewPart::ViewProviderViewPart()
|
||||
|
||||
hGrp = App::GetApplication().GetUserParameter().GetGroup("BaseApp")->
|
||||
GetGroup("Preferences")->GetGroup("Mod/TechDraw/Decorations");
|
||||
double defScale = hGrp->GetFloat("CenterMarkScale",2.0);
|
||||
bool defShowCenters = hGrp->GetBool("ShowCenterMarks", true);
|
||||
|
||||
double defScale = hGrp->GetFloat("CenterMarkScale",2.0);
|
||||
bool defShowCenters = hGrp->GetBool("ShowCenterMarks", false);
|
||||
|
||||
//decorations
|
||||
ADD_PROPERTY_TYPE(HorizCenterLine ,(false),dgroup,App::Prop_None,"Show a horizontal centerline through view");
|
||||
ADD_PROPERTY_TYPE(VertCenterLine ,(false),dgroup,App::Prop_None,"Show a vertical centerline through view");
|
||||
|
||||
Reference in New Issue
Block a user