Mercurial > hg > sonic-visualiser
comparison 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 |
comparison
equal
deleted
inserted
replaced
8:92cb01225e7a | 9:8b34a6460545 |
---|---|
18 | 18 |
19 #include <QDialog> | 19 #include <QDialog> |
20 | 20 |
21 #include "base/Window.h" | 21 #include "base/Window.h" |
22 | 22 |
23 class QLabel; | 23 class WindowTypeSelector; |
24 class QPushButton; | 24 class QPushButton; |
25 | 25 |
26 class PreferencesDialog : public QDialog | 26 class PreferencesDialog : public QDialog |
27 { | 27 { |
28 Q_OBJECT | 28 Q_OBJECT |
29 | 29 |
30 public: | 30 public: |
31 PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0); | 31 PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0); |
32 ~PreferencesDialog(); | 32 virtual ~PreferencesDialog(); |
33 | 33 |
34 protected slots: | 34 protected slots: |
35 void windowTypeChanged(int type); | 35 void windowTypeChanged(WindowType type); |
36 void smoothSpectrogramChanged(int state); | 36 void smoothSpectrogramChanged(int state); |
37 void propertyLayoutChanged(int layout); | 37 void propertyLayoutChanged(int layout); |
38 void tuningFrequencyChanged(double freq); | 38 void tuningFrequencyChanged(double freq); |
39 | 39 |
40 void okClicked(); | 40 void okClicked(); |
41 void applyClicked(); | 41 void applyClicked(); |
42 void cancelClicked(); | 42 void cancelClicked(); |
43 | 43 |
44 protected: | 44 protected: |
45 QLabel *m_windowTimeExampleLabel; | 45 WindowTypeSelector *m_windowTypeSelector; |
46 QLabel *m_windowFreqExampleLabel; | |
47 | |
48 WindowType *m_windows; | |
49 | |
50 QPushButton *m_applyButton; | 46 QPushButton *m_applyButton; |
51 | 47 |
52 int m_windowType; | 48 WindowType m_windowType; |
53 bool m_smoothSpectrogram; | 49 bool m_smoothSpectrogram; |
54 int m_propertyLayout; | 50 int m_propertyLayout; |
55 float m_tuningFrequency; | 51 float m_tuningFrequency; |
56 }; | 52 }; |
57 | 53 |