49 #include "PostProcessorPhilipsStereo.hh" 50 #include "widgets/philipsStereoSettingsWidget.hh" 54 void PostProcessorPhilipsStereoPlugin::slotShowOptionsMenu() {
57 if ( settingsWidget_ == 0) {
59 connect(settingsWidget_,SIGNAL(updateView()),
this,SIGNAL(updateView()));
66 settingsWidget_->headerContentType->blockSignals(
true);
67 settingsWidget_->headerSelect->blockSignals(
true);
68 settingsWidget_->offsetCounter->blockSignals(
true);
69 settingsWidget_->headerFactor->blockSignals(
true);
70 settingsWidget_->factorCounter->blockSignals(
true);
71 settingsWidget_->headerOffsetCC->blockSignals(
true);
73 settingsWidget_->headerContentType->setCurrentIndex(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Content",3).toInt());
74 settingsWidget_->headerFactor->setValue(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Factor",64).toInt());
75 settingsWidget_->headerOffsetCC->setValue(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Offset",128).toInt());
76 settingsWidget_->factorCounter->setNum(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Factor",64).toInt());
77 settingsWidget_->offsetCounter->setNum(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Offset",128).toInt());
78 settingsWidget_->headerSelect->setCurrentIndex(
OpenFlipperSettings().value(
"Core/Stereo/Philips/Select",0).toInt());
81 settingsWidget_->headerContentType->blockSignals(
false);
82 settingsWidget_->headerSelect->blockSignals(
false);
83 settingsWidget_->offsetCounter->blockSignals(
false);
84 settingsWidget_->headerFactor->blockSignals(
false);
85 settingsWidget_->factorCounter->blockSignals(
false);
86 settingsWidget_->headerOffsetCC->blockSignals(
false);
91 settingsWidget_->move( QCursor::pos() - QPoint((
int)(settingsWidget_->width()/2), 0));
93 settingsWidget_->show();
DLLEXPORT OpenFlipperQSettings & OpenFlipperSettings()
QSettings object containing all program settings of OpenFlipper.