Commit f84cdf0c authored by Jan Möbius's avatar Jan Möbius

Option to switch toolbox between left and right side

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10349 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b8e92e83
......@@ -266,6 +266,9 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
//paths
logFile->setText( OpenFlipperSettings().value("Core/Log/logFile").toString() );
// UI settings
toolBoxOrientation->setCurrentIndex((OpenFlipperSettings().value("Core/Gui/ToolBoxOnTheRight").toBool() ? 0 : 1));
//stereo
// Grey out OpenGL stereo mode option if not available
......@@ -584,6 +587,13 @@ void OptionsWidget::slotApply() {
OpenFlipperSettings().setValue("Core/Log/logFileEnabled",enableLogFile->isChecked());
OpenFlipperSettings().setValue("Core/Log/logFile",logFile->text());
// Toolbox orientation
bool toolBoxOrientationChanged = !((OpenFlipperSettings().value("Core/Gui/ToolBoxOnTheRight", true).toBool() && (toolBoxOrientation->currentIndex() == 0)) ||
((!OpenFlipperSettings().value("Core/Gui/ToolBoxOnTheRight", true).toBool()) && (toolBoxOrientation->currentIndex() == 1)));
OpenFlipperSettings().setValue("Core/Gui/ToolBoxOnTheRight", (toolBoxOrientation->currentIndex() == 0));
if ( iconDefault->isChecked() )
OpenFlipperSettings().setValue("Core/Toolbar/iconSize", 0);
else if ( iconSmall->isChecked() )
......
......@@ -23,7 +23,7 @@
<string/>
</property>
<property name="currentIndex">
<number>2</number>
<number>0</number>
</property>
<property name="usesScrollButtons">
<bool>true</bool>
......@@ -92,6 +92,52 @@
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="minimumSize">
<size>
<width>0</width>
<height>70</height>
</size>
</property>
<property name="title">
<string>Toolbox Orientation</string>
</property>
<widget class="QWidget" name="formLayoutWidget">
<property name="geometry">
<rect>
<x>19</x>
<y>30</y>
<width>611</width>
<height>31</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout_4">
<item row="0" column="0">
<widget class="QLabel" name="label_26">
<property name="text">
<string>Side of toolbox (applies after relaunch)</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="toolBoxOrientation">
<item>
<property name="text">
<string>Right</string>
</property>
</item>
<item>
<property name="text">
<string>Left</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_11">
<property name="title">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment