56 #include "PostProcessorPhilipsStereo.hh"
57 #include "widgets/philipsStereoSettingsWidget.hh"
61 #if QT_VERSION >= 0x050000
65 void PostProcessorPhilipsStereoPlugin::slotShowOptionsMenu() {
68 if ( settingsWidget_ == 0) {
70 connect(settingsWidget_,SIGNAL(updateView()),
this,SIGNAL(updateView()));
77 settingsWidget_->headerContentType->blockSignals(
true);
78 settingsWidget_->headerSelect->blockSignals(
true);
79 settingsWidget_->offsetCounter->blockSignals(
true);
80 settingsWidget_->headerFactor->blockSignals(
true);
81 settingsWidget_->factorCounter->blockSignals(
true);
82 settingsWidget_->headerOffsetCC->blockSignals(
true);
84 settingsWidget_->headerContentType->setCurrentIndex(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Content",3).toInt());
85 settingsWidget_->headerFactor->setValue(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Factor",64).toInt());
86 settingsWidget_->headerOffsetCC->setValue(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Offset",128).toInt());
87 settingsWidget_->factorCounter->setNum(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Factor",64).toInt());
88 settingsWidget_->offsetCounter->setNum(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Offset",128).toInt());
89 settingsWidget_->headerSelect->setCurrentIndex(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Select",0).toInt());
92 settingsWidget_->headerContentType->blockSignals(
false);
93 settingsWidget_->headerSelect->blockSignals(
false);
94 settingsWidget_->offsetCounter->blockSignals(
false);
95 settingsWidget_->headerFactor->blockSignals(
false);
96 settingsWidget_->factorCounter->blockSignals(
false);
97 settingsWidget_->headerOffsetCC->blockSignals(
false);
102 settingsWidget_->move( QCursor::pos() - QPoint((
int)(settingsWidget_->width()/2), 0));
104 settingsWidget_->show();
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.