diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui index b38b000983..5f11e09dc2 100644 --- a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui +++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui @@ -597,25 +597,6 @@ - - - - Label height in millimeters - - - 0.100000000000000 - - - 5.000000000000000 - - - LabelSize - - - /Mod/TechDraw/Labels - - - @@ -655,22 +636,6 @@ - - - - EditableText Dot Size in mm - - - 3.000000000000000 - - - TemplateDotSize - - - /Mod/TechDraw/General - - - @@ -697,6 +662,38 @@ + + + + View Label size in units + + + 3.500000000000000 + + + LabelSize + + + /Mod/TechDraw/Labels + + + + + + + Green edit dot size in units + + + 3.000000000000000 + + + TemplateDotSize + + + /Mod/TechDraw/General + + + @@ -736,6 +733,11 @@ QWidget
Gui/FileDialog.h
+ + Gui::QuantitySpinBox + QWidget +
Gui/QuantitySpinBox.h
+
Gui::ColorButton QPushButton @@ -767,13 +769,13 @@
Gui/PrefWidgets.h
- Gui::PrefDoubleSpinBox - QDoubleSpinBox + Gui::PrefFontBox + QFontComboBox
Gui/PrefWidgets.h
- Gui::PrefFontBox - QFontComboBox + Gui::PrefUnitSpinBox + Gui::QuantitySpinBox
Gui/PrefWidgets.h
diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2.ui b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2.ui index 118208132c..eb1b9e31e6 100644 --- a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2.ui +++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2.ui @@ -22,29 +22,6 @@ - - - - Arrow Style - - - - - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - 2 - - - AltDecimals - - - /Mod/TechDraw/Dimensions - - - @@ -65,6 +42,23 @@ + + + + + 0 + 0 + 0 + + + + Color + + + /Mod/TechDraw/Dimensions + + + @@ -85,39 +79,17 @@ - - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - 1 - - - 3.500000000000000 - - - FontSize - - - /Mod/TechDraw/Dimensions + + + + Alternate Decimals - - - - - 0 - 0 - 0 - - - - Color - - - /Mod/TechDraw/Dimensions + + + + Arrow Size @@ -149,13 +121,6 @@ - - - - Alternate Decimals - - - @@ -241,17 +206,49 @@ - - + + - Arrow Size + Arrow Style + + + + + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + 2 + + + AltDecimals + + + /Mod/TechDraw/Dimensions + + + + + + + Dimension font size in units + + + 3.500000000000000 + + + FontSize + + + /Mod/TechDraw/Dimensions - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + Dimension arrowhead size in units 3.500000000000000 @@ -506,6 +503,11 @@ + + Gui::QuantitySpinBox + QWidget +
Gui/QuantitySpinBox.h
+
Gui::ColorButton QPushButton @@ -537,8 +539,8 @@
Gui/PrefWidgets.h
- Gui::PrefDoubleSpinBox - QDoubleSpinBox + Gui::PrefUnitSpinBox + Gui::QuantitySpinBox
Gui/PrefWidgets.h
diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2Imp.cpp b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2Imp.cpp index d46779b1d4..57e9332d79 100644 --- a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2Imp.cpp +++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw2Imp.cpp @@ -34,6 +34,8 @@ DlgPrefsTechDraw2Imp::DlgPrefsTechDraw2Imp( QWidget* parent ) : PreferencePage( parent ) { this->setupUi(this); + plsb_FontSize->setUnit(Base::Unit::Length); + plsb_ArrowSize->setUnit(Base::Unit::Length); } DlgPrefsTechDraw2Imp::~DlgPrefsTechDraw2Imp() @@ -44,7 +46,7 @@ DlgPrefsTechDraw2Imp::~DlgPrefsTechDraw2Imp() void DlgPrefsTechDraw2Imp::saveSettings() { cbShowUnits->onSave(); - dsbFontSize->onSave(); + plsb_FontSize->onSave(); colDimColor->onSave(); leDiameter->onSave(); pcbMatting->onSave(); @@ -55,14 +57,14 @@ void DlgPrefsTechDraw2Imp::saveSettings() pcbArrow->onSave(); cbGlobalDecimals->onSave(); sbAltDecimals->onSave(); - dsbArrowSize->onSave(); + plsb_ArrowSize->onSave(); leLineGroup->onSave(); } void DlgPrefsTechDraw2Imp::loadSettings() { cbShowUnits->onRestore(); - dsbFontSize->onRestore(); + plsb_FontSize->onRestore(); colDimColor->onRestore(); leDiameter->onRestore(); pcbMatting->onRestore(); @@ -73,7 +75,7 @@ void DlgPrefsTechDraw2Imp::loadSettings() pcbArrow->onRestore(); cbGlobalDecimals->onRestore(); sbAltDecimals->onRestore(); - dsbArrowSize->onRestore(); + plsb_ArrowSize->onRestore(); leLineGroup->onRestore(); } diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp b/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp index 1c53fc7237..879a8786e9 100644 --- a/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp +++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp @@ -34,6 +34,8 @@ DlgPrefsTechDrawImp::DlgPrefsTechDrawImp( QWidget* parent ) : PreferencePage( parent ) { this->setupUi(this); + plsb_LabelSize->setUnit(Base::Unit::Length); + plsb_TemplateDot->setUnit(Base::Unit::Length); } DlgPrefsTechDrawImp::~DlgPrefsTechDrawImp() @@ -48,7 +50,6 @@ void DlgPrefsTechDrawImp::saveSettings() cb_Faces->onSave(); cb_SectionEdges->onSave(); cb_PageUpdate->onSave(); - dsb_TemplateDot->onSave(); pcb_Normal->onSave(); pcb_Select->onSave(); @@ -59,7 +60,8 @@ void DlgPrefsTechDrawImp::saveSettings() pcb_Hatch->onSave(); pfb_LabelFont->onSave(); - dsb_LabelSize->onSave(); + plsb_LabelSize->onSave(); + plsb_TemplateDot->onSave(); pfc_DefTemp->onSave(); pfc_DefDir->onSave(); @@ -75,7 +77,6 @@ void DlgPrefsTechDrawImp::loadSettings() cb_Faces->onRestore(); cb_SectionEdges->onRestore(); cb_PageUpdate->onRestore(); - dsb_TemplateDot->onRestore(); pcb_Normal->onRestore(); pcb_Select->onRestore(); @@ -86,7 +87,8 @@ void DlgPrefsTechDrawImp::loadSettings() pcb_Hatch->onRestore(); pfb_LabelFont->onRestore(); - dsb_LabelSize->onRestore(); + plsb_LabelSize->onRestore(); + plsb_TemplateDot->onRestore(); pfc_DefTemp->onRestore(); pfc_DefDir->onRestore();