[TD]harmonize Arrow enums
This commit is contained in:
@@ -25,10 +25,18 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/Application.h>
|
||||
|
||||
#include <Base/Parameter.h>
|
||||
#include <Base/Console.h>
|
||||
|
||||
#include "DrawGuiUtil.h"
|
||||
#include "DlgPrefsTechDraw3Imp.h"
|
||||
#include <Gui/PrefWidgets.h>
|
||||
|
||||
|
||||
using namespace TechDrawGui;
|
||||
using namespace TechDraw;
|
||||
|
||||
|
||||
DlgPrefsTechDraw3Imp::DlgPrefsTechDraw3Imp( QWidget* parent )
|
||||
: PreferencePage( parent )
|
||||
@@ -95,6 +103,11 @@ void DlgPrefsTechDraw3Imp::loadSettings()
|
||||
plsb_ArrowSize->onRestore();
|
||||
plsb_FontSize->onRestore();
|
||||
sbAltDecimals->onRestore();
|
||||
|
||||
DrawGuiUtil::loadArrowBox(pcbBalloonArrow);
|
||||
pcbBalloonArrow->setCurrentIndex(prefBalloonArrow());
|
||||
DrawGuiUtil::loadArrowBox(pcbArrow);
|
||||
pcbArrow->setCurrentIndex(prefArrowStyle());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -112,4 +125,24 @@ void DlgPrefsTechDraw3Imp::changeEvent(QEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
int DlgPrefsTechDraw3Imp::prefBalloonArrow(void) const
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().
|
||||
GetGroup("BaseApp")->GetGroup("Preferences")->
|
||||
GetGroup("Mod/TechDraw/Decorations");
|
||||
int end = hGrp->GetInt("BalloonArrow", 1);
|
||||
return end;
|
||||
}
|
||||
|
||||
int DlgPrefsTechDraw3Imp::prefArrowStyle(void) const
|
||||
{
|
||||
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().
|
||||
GetGroup("BaseApp")->GetGroup("Preferences")->
|
||||
GetGroup("Mod/TechDraw/Dimensions");
|
||||
int style = hGrp->GetInt("ArrowStyle", 1);
|
||||
return style;
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include <Mod/TechDraw/Gui/moc_DlgPrefsTechDraw3Imp.cpp>
|
||||
|
||||
Reference in New Issue
Block a user