Mercurial > hg > sonic-visualiser
diff main/PreferencesDialog.h @ 9:8b34a6460545
* Pull window type selector and shape preview out into their own widgets
(from the preferences dialog)
author | Chris Cannam |
---|---|
date | Mon, 11 Sep 2006 15:32:49 +0000 |
parents | cd5d7ff8ef38 |
children | e3b32dc5180b |
line wrap: on
line diff
--- a/main/PreferencesDialog.h Wed Aug 16 14:56:53 2006 +0000 +++ b/main/PreferencesDialog.h Mon Sep 11 15:32:49 2006 +0000 @@ -20,7 +20,7 @@ #include "base/Window.h" -class QLabel; +class WindowTypeSelector; class QPushButton; class PreferencesDialog : public QDialog @@ -29,10 +29,10 @@ public: PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0); - ~PreferencesDialog(); + virtual ~PreferencesDialog(); protected slots: - void windowTypeChanged(int type); + void windowTypeChanged(WindowType type); void smoothSpectrogramChanged(int state); void propertyLayoutChanged(int layout); void tuningFrequencyChanged(double freq); @@ -42,14 +42,10 @@ void cancelClicked(); protected: - QLabel *m_windowTimeExampleLabel; - QLabel *m_windowFreqExampleLabel; - - WindowType *m_windows; - + WindowTypeSelector *m_windowTypeSelector; QPushButton *m_applyButton; - int m_windowType; + WindowType m_windowType; bool m_smoothSpectrogram; int m_propertyLayout; float m_tuningFrequency;