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

Dennis:

 Show all logger states in options dialog.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5207 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 3ce0e239
......@@ -127,8 +127,10 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
fullscreen->setChecked( OpenFlipper::Options::fullScreen() );
splash->setChecked( OpenFlipper::Options::splash() );
toolbox->setChecked( !OpenFlipper::Options::hideToolbox() );
#warning FIXME
logger->setChecked( OpenFlipper::Options::loggerState() != OpenFlipper::Options::Hidden);
loggerHidden->setChecked( OpenFlipper::Options::loggerState() == OpenFlipper::Options::Hidden);
loggerNormal->setChecked( OpenFlipper::Options::loggerState() == OpenFlipper::Options::Normal);
loggerInScene->setChecked( OpenFlipper::Options::loggerState() == OpenFlipper::Options::InScene);
enableLogFile->setChecked( OpenFlipper::Options::logFileEnabled() );
//paths
......@@ -360,10 +362,12 @@ void OptionsWidget::slotApply() {
OpenFlipper::Options::fullScreen( fullscreen->isChecked() );
OpenFlipper::Options::splash( splash->isChecked() );
OpenFlipper::Options::hideToolbox( !toolbox->isChecked() );
if (logger->isChecked())
OpenFlipper::Options::loggerState( OpenFlipper::Options::Normal );
else
if (loggerHidden->isChecked())
OpenFlipper::Options::loggerState( OpenFlipper::Options::Hidden );
else if (loggerInScene->isChecked())
OpenFlipper::Options::loggerState( OpenFlipper::Options::InScene );
else
OpenFlipper::Options::loggerState( OpenFlipper::Options::Normal );
OpenFlipper::Options::logFileEnabled( enableLogFile->isChecked() );
//paths
......
......@@ -22,7 +22,7 @@
<string/>
</property>
<property name="currentIndex" >
<number>2</number>
<number>0</number>
</property>
<property name="usesScrollButtons" >
<bool>true</bool>
......@@ -71,19 +71,6 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="logger" >
<property name="toolTip" >
<string>Show the Logger window at the bottom</string>
</property>
<property name="statusTip" >
<string>Show the Logger window at the bottom</string>
</property>
<property name="text" >
<string>Show Logger (CTRL+L)</string>
</property>
</widget>
</item>
<item>
<widget class="Line" name="line" >
<property name="orientation" >
......@@ -104,6 +91,36 @@
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_4" >
<property name="title" >
<string>Logger (CTRL+L)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_13" >
<item>
<widget class="QRadioButton" name="loggerHidden" >
<property name="text" >
<string>Hidden</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="loggerNormal" >
<property name="text" >
<string>Normal</string>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="loggerInScene" >
<property name="text" >
<string>Embedded into GL scene</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer" >
<property name="orientation" >
......
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