PreferencesDialog.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Sonic Visualiser
5  An audio file viewer and annotation editor.
6  Centre for Digital Music, Queen Mary, University of London.
7  This file copyright 2006 Chris Cannam.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14 */
15 
16 #ifndef SV_PREFERENCES_DIALOG_H
17 #define SV_PREFERENCES_DIALOG_H
18 
19 #include <QDialog>
20 #include <QMap>
21 #include <QColor>
22 
23 #include "base/Window.h"
24 
25 class WindowTypeSelector;
26 class QPushButton;
27 class QLineEdit;
28 class QTabWidget;
29 class QComboBox;
30 class PluginPathConfigurator;
31 class ColourComboBox;
32 
33 class PreferencesDialog : public QDialog
34 {
35  Q_OBJECT
36 
37 public:
38  PreferencesDialog(QWidget *parent = 0);
39  virtual ~PreferencesDialog();
40 
41  enum Tab {
48  };
49  void switchToTab(Tab tab);
50 
51 signals:
52  void audioDeviceChanged();
53  void coloursChanged();
54 
55 public slots:
56  void applicationClosing(bool quickly);
57 
58 protected slots:
59  void windowTypeChanged(WindowType type);
60  void spectrogramSmoothingChanged(int state);
61  void spectrogramXSmoothingChanged(int state);
62  void spectrogramGColourChanged(int state);
63  void spectrogramMColourChanged(int state);
64  void colour3DColourChanged(int state);
65  void overviewColourChanged(int state);
66  void propertyLayoutChanged(int layout);
67  void tuningFrequencyChanged(double freq);
68  void audioImplementationChanged(int impl);
69  void audioPlaybackDeviceChanged(int device);
70  void audioRecordDeviceChanged(int device);
71  void resampleOnLoadChanged(int state);
72  void gaplessModeChanged(int state);
73  void vampProcessSeparationChanged(int state);
74  void tempDirRootChanged(QString root);
75  void backgroundModeChanged(int mode);
76  void timeToTextModeChanged(int mode);
77  void showHMSChanged(int state);
78  void octaveSystemChanged(int system);
79  void viewFontSizeChanged(int sz);
80  void showSplashChanged(int state);
81  void defaultTemplateChanged(int);
82  void localeChanged(int);
83  void networkPermissionChanged(int state);
84  void retinaChanged(int state);
85  void pluginPathsChanged();
86 
87  void tempDirButtonClicked();
88 
89  void okClicked();
90  void applyClicked();
91  void cancelClicked();
92 
93 protected:
94  WindowTypeSelector *m_windowTypeSelector;
95  QPushButton *m_applyButton;
96 
97  QTabWidget *m_tabs;
98  QMap<Tab, int> m_tabOrdering;
99 
100  QLineEdit *m_tempDirRootEdit;
101 
102  ColourComboBox *m_overviewColourCombo;
105  void rebuildDeviceCombos();
106 
107  PluginPathConfigurator *m_pluginPathConfigurator;
108 
110  QStringList m_templates;
111 
113  QStringList m_locales;
114 
115  WindowType m_windowType;
129  bool m_gapless;
132  bool m_retina;
133  QString m_tempDirRoot;
136  bool m_showHMS;
140 
144 };
145 
146 #endif
void colour3DColourChanged(int state)
void timeToTextModeChanged(int mode)
void overviewColourChanged(int state)
QPushButton * m_applyButton
void octaveSystemChanged(int system)
QComboBox * m_audioRecordDeviceCombo
QComboBox * m_audioPlaybackDeviceCombo
void audioPlaybackDeviceChanged(int device)
void networkPermissionChanged(int state)
void showSplashChanged(int state)
void propertyLayoutChanged(int layout)
ColourComboBox * m_overviewColourCombo
void audioImplementationChanged(int impl)
void defaultTemplateChanged(int)
void windowTypeChanged(WindowType type)
QLineEdit * m_tempDirRootEdit
void spectrogramXSmoothingChanged(int state)
void viewFontSizeChanged(int sz)
void spectrogramMColourChanged(int state)
void spectrogramSmoothingChanged(int state)
void backgroundModeChanged(int mode)
void audioRecordDeviceChanged(int device)
void gaplessModeChanged(int state)
void resampleOnLoadChanged(int state)
QMap< Tab, int > m_tabOrdering
void switchToTab(Tab tab)
WindowTypeSelector * m_windowTypeSelector
PreferencesDialog(QWidget *parent=0)
void showHMSChanged(int state)
void tuningFrequencyChanged(double freq)
void vampProcessSeparationChanged(int state)
void retinaChanged(int state)
void applicationClosing(bool quickly)
PluginPathConfigurator * m_pluginPathConfigurator
void audioDeviceChanged()
void tempDirRootChanged(QString root)
void spectrogramGColourChanged(int state)