[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:
donovaly
2020-12-28 02:07:59 +01:00
committed by wwmayer
parent 942c40227e
commit bd1f06cf72
11 changed files with 994 additions and 982 deletions

View File

@@ -45,32 +45,36 @@ DlgPrefsTechDrawAdvancedImp::~DlgPrefsTechDrawAdvancedImp()
void DlgPrefsTechDrawAdvancedImp::saveSettings()
{
ui->cbEndCap->onSave();
ui->cbCrazyEdges->onSave();
ui->cbDebugSection->onSave();
ui->cbDetectFaces->onSave();
ui->cbDebugDetail->onSave();
ui->cbDetectFaces->onSave();
ui->cbShowSectionEdges->onSave();
ui->cbDebugSection->onSave();
ui->cbDebugDetail->onSave();
ui->cbCrazyEdges->onSave();
ui->cbFuseBeforeSection->onSave();
ui->cbShowLoose->onSave();
ui->pdsbEdgeFuzz->onSave();
ui->pdsbMarkFuzz->onSave();
ui->leFormatSpec->onSave();
ui->cbEndCap->onSave();
ui->sbMaxTiles->onSave();
ui->sbMaxPat->onSave();
ui->cbShowLoose->onSave();
ui->leFormatSpec->onSave();
}
void DlgPrefsTechDrawAdvancedImp::loadSettings()
{
ui->cbEndCap->onRestore();
ui->cbCrazyEdges->onRestore();
ui->cbDebugSection->onRestore();
ui->cbDetectFaces->onRestore();
ui->cbDebugDetail->onRestore();
ui->cbShowSectionEdges->onRestore();
ui->cbDebugSection->onRestore();
ui->cbDebugDetail->onRestore();
ui->cbCrazyEdges->onRestore();
ui->cbFuseBeforeSection->onRestore();
ui->cbShowLoose->onRestore();
ui->pdsbEdgeFuzz->onRestore();
ui->pdsbMarkFuzz->onRestore();
ui->leFormatSpec->onRestore();
ui->cbEndCap->onRestore();
ui->sbMaxTiles->onRestore();
ui->sbMaxPat->onRestore();
ui->cbShowLoose->onRestore();
ui->leFormatSpec->onRestore();
}
/**