aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Visual/analyzer/fft.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-04-09 11:36:24 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-04-09 11:36:24 +0000
commit8bfea81fde39d1c54123473e6254f28cc61a940c (patch)
tree632071b4b66f9abd7627625605324f79dd9feeec /src/plugins/Visual/analyzer/fft.h
parentd9ad753e7fd489a4e34760ff61ad1a7d957a29b3 (diff)
downloadqmmp-8bfea81fde39d1c54123473e6254f28cc61a940c.tar.gz
qmmp-8bfea81fde39d1c54123473e6254f28cc61a940c.tar.bz2
qmmp-8bfea81fde39d1c54123473e6254f28cc61a940c.zip
fixed build
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@897 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Visual/analyzer/fft.h')
0 files changed, 0 insertions, 0 deletions
ss="hl com"> * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #include <QSettings> #include <QDir> #include "settingsdialog.h" SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent) { ui.setupUi(this); setAttribute(Qt::WA_DeleteOnClose, TRUE); QSettings settings(QDir::homePath()+"/.qmmp/qmmprc", QSettings::IniFormat); ui.analyzerComboBox->setCurrentIndex(settings.value("Analyzer/analyzer_falloff", 3).toInt()-1); ui.peaksCheckBox->setChecked(settings.value("Analyzer/show_peaks", TRUE).toBool()); ui.peaksComboBox->setCurrentIndex(settings.value("Analyzer/peaks_falloff", 3).toInt()-1); ui.fpsComboBox->setCurrentIndex(settings.value("Analyzer/refresh_rate", 2).toInt()-1); ui.colorWidget1->setColor(settings.value("Analyzer/color1", "Green").toString()); ui.colorWidget2->setColor(settings.value("Analyzer/color2", "Yellow").toString()); ui.colorWidget3->setColor(settings.value("Analyzer/color3", "Red").toString()); ui.bgColorWidget->setColor(settings.value("Analyzer/bg_color", "Black").toString()); ui.peakColorWidget->setColor(settings.value("Analyzer/peak_color", "Cyan").toString()); connect (ui.okButton, SIGNAL(clicked()),SLOT(writeSettings())); } SettingsDialog::~SettingsDialog() { } void SettingsDialog::writeSettings() { QSettings settings(QDir::homePath()+"/.qmmp/qmmprc", QSettings::IniFormat); settings.setValue("Analyzer/analyzer_falloff", ui.analyzerComboBox->currentIndex() + 1); settings.setValue("Analyzer/peaks_falloff", ui.peaksComboBox->currentIndex() + 1); settings.setValue("Analyzer/refresh_rate", ui.fpsComboBox->currentIndex() + 1); settings.setValue("Analyzer/show_peaks", ui.peaksCheckBox->isChecked()); settings.setValue("Analyzer/color1", ui.colorWidget1->colorName());