Chris@0
|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
|
Chris@0
|
2
|
Chris@0
|
3 /*
|
Chris@0
|
4 Sonic Visualiser
|
Chris@0
|
5 An audio file viewer and annotation editor.
|
Chris@0
|
6 Centre for Digital Music, Queen Mary, University of London.
|
Chris@0
|
7 This file copyright 2006 Chris Cannam.
|
Chris@0
|
8
|
Chris@0
|
9 This program is free software; you can redistribute it and/or
|
Chris@0
|
10 modify it under the terms of the GNU General Public License as
|
Chris@0
|
11 published by the Free Software Foundation; either version 2 of the
|
Chris@0
|
12 License, or (at your option) any later version. See the file
|
Chris@0
|
13 COPYING included with this distribution for more information.
|
Chris@0
|
14 */
|
Chris@0
|
15
|
Chris@0
|
16 #ifndef _PREFERENCES_DIALOG_H_
|
Chris@0
|
17 #define _PREFERENCES_DIALOG_H_
|
Chris@0
|
18
|
Chris@0
|
19 #include <QDialog>
|
Chris@0
|
20
|
Chris@0
|
21 #include "base/Window.h"
|
Chris@0
|
22
|
Chris@9
|
23 class WindowTypeSelector;
|
Chris@0
|
24 class QPushButton;
|
Chris@180
|
25 class QLineEdit;
|
Chris@0
|
26
|
Chris@0
|
27 class PreferencesDialog : public QDialog
|
Chris@0
|
28 {
|
Chris@0
|
29 Q_OBJECT
|
Chris@0
|
30
|
Chris@0
|
31 public:
|
Chris@0
|
32 PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0);
|
Chris@9
|
33 virtual ~PreferencesDialog();
|
Chris@0
|
34
|
Chris@163
|
35 public slots:
|
Chris@163
|
36 void applicationClosing(bool quickly);
|
Chris@163
|
37
|
Chris@0
|
38 protected slots:
|
Chris@9
|
39 void windowTypeChanged(WindowType type);
|
Chris@115
|
40 void spectrogramSmoothingChanged(int state);
|
Chris@299
|
41 void spectrogramXSmoothingChanged(int state);
|
Chris@0
|
42 void propertyLayoutChanged(int layout);
|
Chris@0
|
43 void tuningFrequencyChanged(double freq);
|
Chris@263
|
44 void audioDeviceChanged(int device);
|
Chris@32
|
45 void resampleQualityChanged(int quality);
|
Chris@180
|
46 void resampleOnLoadChanged(int state);
|
Chris@180
|
47 void tempDirRootChanged(QString root);
|
Chris@180
|
48 void backgroundModeChanged(int mode);
|
Chris@225
|
49 void viewFontSizeChanged(int sz);
|
Chris@237
|
50 void showSplashChanged(int state);
|
Chris@180
|
51
|
Chris@180
|
52 void tempDirButtonClicked();
|
Chris@0
|
53
|
Chris@0
|
54 void okClicked();
|
Chris@0
|
55 void applyClicked();
|
Chris@0
|
56 void cancelClicked();
|
Chris@0
|
57
|
Chris@0
|
58 protected:
|
Chris@9
|
59 WindowTypeSelector *m_windowTypeSelector;
|
Chris@0
|
60 QPushButton *m_applyButton;
|
Chris@180
|
61
|
Chris@180
|
62 QLineEdit *m_tempDirRootEdit;
|
Chris@0
|
63
|
Chris@9
|
64 WindowType m_windowType;
|
Chris@180
|
65 int m_spectrogramSmoothing;
|
Chris@299
|
66 int m_spectrogramXSmoothing;
|
Chris@180
|
67 int m_propertyLayout;
|
Chris@0
|
68 float m_tuningFrequency;
|
Chris@263
|
69 int m_audioDevice;
|
Chris@180
|
70 int m_resampleQuality;
|
Chris@180
|
71 bool m_resampleOnLoad;
|
Chris@180
|
72 QString m_tempDirRoot;
|
Chris@180
|
73 int m_backgroundMode;
|
Chris@225
|
74 int m_viewFontSize;
|
Chris@237
|
75 bool m_showSplash;
|
Chris@180
|
76
|
Chris@180
|
77 bool m_changesOnRestart;
|
Chris@0
|
78 };
|
Chris@0
|
79
|
Chris@0
|
80 #endif
|