Chris@0: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@0: Chris@0: /* Chris@0: Sonic Visualiser Chris@0: An audio file viewer and annotation editor. Chris@0: Centre for Digital Music, Queen Mary, University of London. Chris@0: This file copyright 2006 Chris Cannam. Chris@0: Chris@0: This program is free software; you can redistribute it and/or Chris@0: modify it under the terms of the GNU General Public License as Chris@0: published by the Free Software Foundation; either version 2 of the Chris@0: License, or (at your option) any later version. See the file Chris@0: COPYING included with this distribution for more information. Chris@0: */ Chris@0: Chris@0: #ifndef _PREFERENCES_DIALOG_H_ Chris@0: #define _PREFERENCES_DIALOG_H_ Chris@0: Chris@0: #include Chris@0: Chris@0: #include "base/Window.h" Chris@0: Chris@9: class WindowTypeSelector; Chris@0: class QPushButton; Chris@0: Chris@0: class PreferencesDialog : public QDialog Chris@0: { Chris@0: Q_OBJECT Chris@0: Chris@0: public: Chris@0: PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0); Chris@9: virtual ~PreferencesDialog(); Chris@0: Chris@0: protected slots: Chris@9: void windowTypeChanged(WindowType type); Chris@0: void smoothSpectrogramChanged(int state); Chris@0: void propertyLayoutChanged(int layout); Chris@0: void tuningFrequencyChanged(double freq); Chris@32: void resampleQualityChanged(int quality); Chris@0: Chris@0: void okClicked(); Chris@0: void applyClicked(); Chris@0: void cancelClicked(); Chris@0: Chris@0: protected: Chris@9: WindowTypeSelector *m_windowTypeSelector; Chris@0: QPushButton *m_applyButton; Chris@0: Chris@9: WindowType m_windowType; Chris@0: bool m_smoothSpectrogram; Chris@0: int m_propertyLayout; Chris@0: float m_tuningFrequency; Chris@32: int m_resampleQuality; Chris@0: }; Chris@0: Chris@0: #endif