comparison main/PreferencesDialog.h @ 1429:3e2dee09c10c levelpanwidget

Merge from branch 3.0-integration
author Chris Cannam
date Wed, 14 Dec 2016 14:28:41 +0000
parents a89ca5ccb958
children a9c30afdbbfe
comparison
equal deleted inserted replaced
1394:db151fd29091 1429:3e2dee09c10c
23 23
24 class WindowTypeSelector; 24 class WindowTypeSelector;
25 class QPushButton; 25 class QPushButton;
26 class QLineEdit; 26 class QLineEdit;
27 class QTabWidget; 27 class QTabWidget;
28 class QComboBox;
28 29
29 class PreferencesDialog : public QDialog 30 class PreferencesDialog : public QDialog
30 { 31 {
31 Q_OBJECT 32 Q_OBJECT
32 33
40 AnalysisTab, 41 AnalysisTab,
41 TemplateTab 42 TemplateTab
42 }; 43 };
43 void switchToTab(Tab tab); 44 void switchToTab(Tab tab);
44 45
46 signals:
47 void audioDeviceChanged();
48
45 public slots: 49 public slots:
46 void applicationClosing(bool quickly); 50 void applicationClosing(bool quickly);
47 51
48 protected slots: 52 protected slots:
49 void windowTypeChanged(WindowType type); 53 void windowTypeChanged(WindowType type);
52 void spectrogramGColourChanged(int state); 56 void spectrogramGColourChanged(int state);
53 void spectrogramMColourChanged(int state); 57 void spectrogramMColourChanged(int state);
54 void colour3DColourChanged(int state); 58 void colour3DColourChanged(int state);
55 void propertyLayoutChanged(int layout); 59 void propertyLayoutChanged(int layout);
56 void tuningFrequencyChanged(double freq); 60 void tuningFrequencyChanged(double freq);
57 void audioDeviceChanged(int device); 61 void audioImplementationChanged(int impl);
62 void audioPlaybackDeviceChanged(int device);
63 void audioRecordDeviceChanged(int device);
58 void resampleOnLoadChanged(int state); 64 void resampleOnLoadChanged(int state);
59 void gaplessModeChanged(int state); 65 void gaplessModeChanged(int state);
60 void vampProcessSeparationChanged(int state); 66 void vampProcessSeparationChanged(int state);
61 void tempDirRootChanged(QString root); 67 void tempDirRootChanged(QString root);
62 void backgroundModeChanged(int mode); 68 void backgroundModeChanged(int mode);
83 QTabWidget *m_tabs; 89 QTabWidget *m_tabs;
84 QMap<Tab, int> m_tabOrdering; 90 QMap<Tab, int> m_tabOrdering;
85 91
86 QLineEdit *m_tempDirRootEdit; 92 QLineEdit *m_tempDirRootEdit;
87 93
94 QComboBox *m_audioPlaybackDeviceCombo;
95 QComboBox *m_audioRecordDeviceCombo;
96 void rebuildDeviceCombos();
97
88 QString m_currentTemplate; 98 QString m_currentTemplate;
89 QStringList m_templates; 99 QStringList m_templates;
90 100
91 QString m_currentLocale; 101 QString m_currentLocale;
92 QStringList m_locales; 102 QStringList m_locales;
97 int m_spectrogramGColour; 107 int m_spectrogramGColour;
98 int m_spectrogramMColour; 108 int m_spectrogramMColour;
99 int m_colour3DColour; 109 int m_colour3DColour;
100 int m_propertyLayout; 110 int m_propertyLayout;
101 double m_tuningFrequency; 111 double m_tuningFrequency;
102 int m_audioDevice; 112 int m_audioImplementation;
113 int m_audioPlaybackDevice;
114 int m_audioRecordDevice;
103 bool m_resampleOnLoad; 115 bool m_resampleOnLoad;
104 bool m_gapless; 116 bool m_gapless;
105 bool m_runPluginsInProcess; 117 bool m_runPluginsInProcess;
106 bool m_networkPermission; 118 bool m_networkPermission;
107 bool m_retina; 119 bool m_retina;
111 bool m_showHMS; 123 bool m_showHMS;
112 int m_octaveSystem; 124 int m_octaveSystem;
113 int m_viewFontSize; 125 int m_viewFontSize;
114 bool m_showSplash; 126 bool m_showSplash;
115 127
128 bool m_audioDeviceChanged;
116 bool m_changesOnRestart; 129 bool m_changesOnRestart;
117 }; 130 };
118 131
119 #endif 132 #endif