[TD]move format spec to dimension tab

- also make %.2w default format
This commit is contained in:
Wanderer Fan
2022-03-02 18:03:41 -05:00
committed by WandererFan
parent 0149b99b6f
commit 58d1ef260b
7 changed files with 550 additions and 544 deletions

View File

@@ -29,6 +29,7 @@
#include <Base/Parameter.h>
#include <Base/Console.h>
#include <Base/Tools.h>
#include "DrawGuiUtil.h"
#include "PreferencesGui.h"
@@ -67,6 +68,7 @@ void DlgPrefsTechDrawDimensionsImp::saveSettings()
ui->leDiameter->onSave();
ui->pcbArrow->onSave();
ui->plsb_ArrowSize->onSave();
ui->leFormatSpec->onSave();
}
void DlgPrefsTechDrawDimensionsImp::loadSettings()
@@ -92,6 +94,9 @@ void DlgPrefsTechDrawDimensionsImp::loadSettings()
DrawGuiUtil::loadArrowBox(ui->pcbArrow);
ui->pcbArrow->setCurrentIndex(prefArrowStyle());
ui->leFormatSpec->setText(Base::Tools::fromStdString(Preferences::formatSpec()));
ui->leFormatSpec->onRestore();
}
/**