Gui: Add setting for changing size of navigation cube

It's already possible to change size of the navigation cube through the
parameters. This just adds a GUI option in the preferences window.
This commit is contained in:
Benjamin Nauck
2021-03-09 00:38:33 +01:00
committed by wmayer
parent 7b33ba361b
commit 7ba93c9e32
2 changed files with 34 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ void DlgSettingsNavigation::saveSettings()
ui->CheckBox_UseAutoRotation->onSave();
ui->qspinNewDocScale->onSave();
ui->prefStepByTurn->onSave();
ui->prefCubeSize->onSave();
bool showNaviCube = ui->groupBoxNaviCube->isChecked();
hGrp->SetBool("ShowNaviCube", showNaviCube);
@@ -118,6 +119,7 @@ void DlgSettingsNavigation::loadSettings()
ui->CheckBox_UseAutoRotation->onRestore();
ui->qspinNewDocScale->onRestore();
ui->prefStepByTurn->onRestore();
ui->prefCubeSize->onRestore();
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View");

View File

@@ -108,6 +108,38 @@
</item>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Cube size</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="Gui::PrefSpinBox" name="prefCubeSize">
<property name="toolTip">
<string>Size of the navigation cube</string>
</property>
<property name="minimum">
<number>10</number>
</property>
<property name="maximum">
<number>1024</number>
</property>
<property name="singleStep">
<number>10</number>
</property>
<property name="value">
<number>132</number>
</property>
<property name="prefEntry" stdset="0">
<cstring>CubeSize</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>NaviCube</cstring>
</property>
</widget>
</item>
</layout>
</widget>
</item>