[TD] cleanup preferences
as discussed here: https://forum.freecadweb.org/viewtopic.php?f=35&t=53680&p=461356#p461349 * change default tolerance scale to 0.8 * the tolerance scale is directly applied, thus it must have non-italic label * move tolerance scale to "Dimensions" tab * move Fuzz settings to "Advanced" tab * move Conventions to General tab since e.g. the projection angle is an important general setting * add a note for the label font that this is also used for dimensions and that it there only has an effect for new ones * use more useful step size of 0.1 for some scaling spinboxes * sort UI fields in the C++ code to avoid doubled or missing entries (there were 2 doubled entries) * uniform width of all preferences dialogs * better alignment for the HLR dialog
This commit is contained in:
@@ -58,16 +58,15 @@ DlgPrefsTechDrawDimensionsImp::~DlgPrefsTechDrawDimensionsImp()
|
||||
|
||||
void DlgPrefsTechDrawDimensionsImp::saveSettings()
|
||||
{
|
||||
ui->pcbStandardAndStyle->onSave();
|
||||
ui->cbGlobalDecimals->onSave();
|
||||
ui->cbHiddenLineStyle->onSave();
|
||||
ui->cbProjAngle->onSave();
|
||||
ui->cbShowUnits->onSave();
|
||||
ui->sbAltDecimals->onSave();
|
||||
ui->plsb_FontSize->onSave();
|
||||
ui->pdsbToleranceScale->onSave();
|
||||
ui->leDiameter->onSave();
|
||||
ui->pcbArrow->onSave();
|
||||
ui->pcbStandardAndStyle->onSave();
|
||||
ui->plsb_ArrowSize->onSave();
|
||||
ui->plsb_FontSize->onSave();
|
||||
ui->sbAltDecimals->onSave();
|
||||
}
|
||||
|
||||
void DlgPrefsTechDrawDimensionsImp::loadSettings()
|
||||
@@ -81,16 +80,15 @@ void DlgPrefsTechDrawDimensionsImp::loadSettings()
|
||||
// plsb_ArrowSize->setValue(arrowDefault);
|
||||
ui->plsb_ArrowSize->setValue(fontDefault);
|
||||
|
||||
ui->pcbStandardAndStyle->onRestore();
|
||||
ui->cbGlobalDecimals->onRestore();
|
||||
ui->cbHiddenLineStyle->onRestore();
|
||||
ui->cbProjAngle->onRestore();
|
||||
ui->cbShowUnits->onRestore();
|
||||
ui->sbAltDecimals->onRestore();
|
||||
ui->plsb_FontSize->onRestore();
|
||||
ui->pdsbToleranceScale->onRestore();
|
||||
ui->leDiameter->onRestore();
|
||||
ui->pcbArrow->onRestore();
|
||||
ui->pcbStandardAndStyle->onRestore();
|
||||
ui->plsb_ArrowSize->onRestore();
|
||||
ui->plsb_FontSize->onRestore();
|
||||
ui->sbAltDecimals->onRestore();
|
||||
|
||||
DrawGuiUtil::loadArrowBox(ui->pcbArrow);
|
||||
ui->pcbArrow->setCurrentIndex(prefArrowStyle());
|
||||
|
||||
Reference in New Issue
Block a user