From 195640ac7fd158d537093b9ee7414f3faa44120b Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 9 Feb 2012 16:06:56 +0000 Subject: fixed settings synchronzation, added some option to configuration dialog (not implemented yet) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2586 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/qmmpsettings.h | 5 +- src/qmmpui/configdialog.cpp | 1 + src/qmmpui/forms/configdialog.ui | 131 +++++++++++++++++++++++++-------------- src/qmmpui/playlistmanager.h | 1 + 4 files changed, 91 insertions(+), 47 deletions(-) (limited to 'src') diff --git a/src/qmmp/qmmpsettings.h b/src/qmmp/qmmpsettings.h index 3decebc07..f3dd158cb 100644 --- a/src/qmmp/qmmpsettings.h +++ b/src/qmmp/qmmpsettings.h @@ -191,7 +191,10 @@ signals: */ void eqSettingsChanged(); -private slots: +public slots: + /*! + * Writes all unsaved settings to configuration file + */ void sync(); private: diff --git a/src/qmmpui/configdialog.cpp b/src/qmmpui/configdialog.cpp index 3a17a0f9d..2d6909b60 100644 --- a/src/qmmpui/configdialog.cpp +++ b/src/qmmpui/configdialog.cpp @@ -344,6 +344,7 @@ void ConfigDialog::saveSettings() gs->setAudioSettings(m_ui->softVolumeCheckBox->isChecked(), m_ui->use16BitCheckBox->isChecked()); gs->setBufferSize(m_ui->bufferSizeSpinBox->value()); gs->setDetermineFileTypeByContent(m_ui->byContentCheckBox->isChecked()); + gs->sync(); QList *outputs = Output::factories(); if(m_ui->outputComboBox->currentIndex() >= 0 && outputs->count()) Output::setCurrentFactory(outputs->at(m_ui->outputComboBox->currentIndex())); diff --git a/src/qmmpui/forms/configdialog.ui b/src/qmmpui/forms/configdialog.ui index a862d79d6..5a1712d57 100644 --- a/src/qmmpui/forms/configdialog.ui +++ b/src/qmmpui/forms/configdialog.ui @@ -170,6 +170,35 @@ + + + + Directory Scanning Options + + + + + + Restrict files to: + + + + + + + + + + Exclude files: + + + + + + + + + @@ -343,8 +372,40 @@ - - + + + + + User Interface + + + + + + + + + Information + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + File Dialog @@ -376,74 +437,52 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - - + Playback - - + + Continue playback on startup - + Determine file type by content - - - - - - - User Interface - - - - - - - + + - Information + Add files from command line to this playlist: - - - - Qt::Horizontal - - - - 40 - 20 - - - + + + + + + Qt::Vertical + + + + 20 + 40 + + + + diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h index 85db4b96b..150964428 100644 --- a/src/qmmpui/playlistmanager.h +++ b/src/qmmpui/playlistmanager.h @@ -125,6 +125,7 @@ public: */ bool isShuffle() const; + signals: /*! * Emitted when current playlist changes. -- cgit v1.2.3-13-gbd6f