Commit 5fcdb8e0 authored by Mike Kremer's avatar Mike Kremer

Hide custom anaglyph settings for anaglyph and philips stereo modes.

Adjust size of widget for philips stereo mode such that everything's displayed well.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10258 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c09617c7
......@@ -197,12 +197,16 @@ void OptionsWidget::switchStackedWidget() {
// Show right stacked widget of stereo settings
if (stereoCustomAnaglyph->isChecked()) {
stackedWidget->setCurrentIndex(0);
customAnaGlyphSettings->setVisible(true);
} else if (stereoAnaglyph->isChecked()) {
stackedWidget->setCurrentIndex(0);
customAnaGlyphSettings->setVisible(false);
} else if (stereoPhilips->isChecked()) {
stackedWidget->setCurrentIndex(1);
customAnaGlyphSettings->setVisible(false);
} else {
stackedWidget->setCurrentIndex(0);
customAnaGlyphSettings->setVisible(false);
}
// Preview new settings
......@@ -296,10 +300,14 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
headerSelect->blockSignals(false);
// Show right stacked widget
customAnaGlyphSettings->setVisible(false);
if (stereoPhilips->isChecked()) {
stackedWidget->setCurrentIndex(1);
} else {
stackedWidget->setCurrentIndex(0);
if (stereoCustomAnaglyph->isChecked())
customAnaGlyphSettings->setVisible(true);
}
std::vector<float> mat = OpenFlipper::Options::anaglyphLeftEyeColorMatrix ();
......
......@@ -23,7 +23,7 @@
<string/>
</property>
<property name="currentIndex">
<number>7</number>
<number>3</number>
</property>
<property name="usesScrollButtons">
<bool>true</bool>
......@@ -1021,7 +1021,7 @@ You can select multiple modes at the same time.</string>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<widget class="QGroupBox" name="customAnaGlyphSettings">
<property name="title">
<string>Custom Anaglyph</string>
</property>
......
......@@ -7,15 +7,27 @@
<x>0</x>
<y>0</y>
<width>427</width>
<height>362</height>
<height>370</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Stereo Settings</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Stereo Mode</string>
</property>
......@@ -50,8 +62,14 @@
</item>
<item>
<widget class="QStackedWidget" name="stackedWidget">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex">
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="page">
<widget class="QGroupBox" name="groupBox_7">
......@@ -178,9 +196,15 @@
<x>0</x>
<y>20</y>
<width>391</width>
<height>161</height>
<height>171</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Philips Stereo properties</string>
</property>
......@@ -189,7 +213,7 @@
<rect>
<x>10</x>
<y>30</y>
<width>369</width>
<width>375</width>
<height>121</height>
</rect>
</property>
......
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