annotate main/PreferencesDialog.h @ 1402:9c6f5105bcb0 bqresample

Fixes to (and debug output in!) ResamplerWrapper
author Chris Cannam
date Wed, 07 Dec 2016 14:48:15 +0000
parents 558347e7e1ab
children a89ca5ccb958
rev   line source
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@436 20 #include <QMap>
Chris@0 21
Chris@0 22 #include "base/Window.h"
Chris@0 23
Chris@9 24 class WindowTypeSelector;
Chris@0 25 class QPushButton;
Chris@180 26 class QLineEdit;
Chris@436 27 class QTabWidget;
Chris@1397 28 class QComboBox;
Chris@0 29
Chris@0 30 class PreferencesDialog : public QDialog
Chris@0 31 {
Chris@0 32 Q_OBJECT
Chris@0 33
Chris@0 34 public:
Chris@528 35 PreferencesDialog(QWidget *parent = 0);
Chris@9 36 virtual ~PreferencesDialog();
Chris@0 37
Chris@436 38 enum Tab {
Chris@436 39 GeneralTab,
Chris@436 40 AppearanceTab,
Chris@436 41 AnalysisTab,
Chris@436 42 TemplateTab
Chris@436 43 };
Chris@436 44 void switchToTab(Tab tab);
Chris@436 45
Chris@163 46 public slots:
Chris@163 47 void applicationClosing(bool quickly);
Chris@163 48
Chris@0 49 protected slots:
Chris@9 50 void windowTypeChanged(WindowType type);
Chris@115 51 void spectrogramSmoothingChanged(int state);
Chris@299 52 void spectrogramXSmoothingChanged(int state);
Chris@1096 53 void spectrogramGColourChanged(int state);
Chris@1096 54 void spectrogramMColourChanged(int state);
Chris@1097 55 void colour3DColourChanged(int state);
Chris@0 56 void propertyLayoutChanged(int layout);
Chris@0 57 void tuningFrequencyChanged(double freq);
Chris@1397 58 void audioImplementationChanged(int impl);
Chris@1397 59 void audioPlaybackDeviceChanged(int device);
Chris@1397 60 void audioRecordDeviceChanged(int device);
Chris@180 61 void resampleOnLoadChanged(int state);
Chris@1379 62 void gaplessModeChanged(int state);
Chris@1275 63 void vampProcessSeparationChanged(int state);
Chris@180 64 void tempDirRootChanged(QString root);
Chris@180 65 void backgroundModeChanged(int mode);
Chris@337 66 void timeToTextModeChanged(int mode);
Chris@906 67 void showHMSChanged(int state);
Chris@702 68 void octaveSystemChanged(int system);
Chris@225 69 void viewFontSizeChanged(int sz);
Chris@237 70 void showSplashChanged(int state);
Chris@436 71 void defaultTemplateChanged(int);
Chris@658 72 void localeChanged(int);
Chris@686 73 void networkPermissionChanged(int state);
Chris@950 74 void retinaChanged(int state);
Chris@180 75
Chris@180 76 void tempDirButtonClicked();
Chris@0 77
Chris@0 78 void okClicked();
Chris@0 79 void applyClicked();
Chris@0 80 void cancelClicked();
Chris@0 81
Chris@0 82 protected:
Chris@9 83 WindowTypeSelector *m_windowTypeSelector;
Chris@0 84 QPushButton *m_applyButton;
Chris@180 85
Chris@436 86 QTabWidget *m_tabs;
Chris@436 87 QMap<Tab, int> m_tabOrdering;
Chris@436 88
Chris@180 89 QLineEdit *m_tempDirRootEdit;
Chris@436 90
Chris@1397 91 QComboBox *m_audioPlaybackDeviceCombo;
Chris@1397 92 QComboBox *m_audioRecordDeviceCombo;
Chris@1397 93 void rebuildDeviceCombos();
Chris@1397 94
Chris@436 95 QString m_currentTemplate;
Chris@436 96 QStringList m_templates;
Chris@658 97
Chris@658 98 QString m_currentLocale;
Chris@658 99 QStringList m_locales;
Chris@0 100
Chris@9 101 WindowType m_windowType;
Chris@180 102 int m_spectrogramSmoothing;
Chris@299 103 int m_spectrogramXSmoothing;
Chris@1096 104 int m_spectrogramGColour;
Chris@1096 105 int m_spectrogramMColour;
Chris@1097 106 int m_colour3DColour;
Chris@180 107 int m_propertyLayout;
Chris@922 108 double m_tuningFrequency;
Chris@1397 109 int m_audioImplementation;
Chris@1397 110 int m_audioPlaybackDevice;
Chris@1397 111 int m_audioRecordDevice;
Chris@180 112 bool m_resampleOnLoad;
Chris@1379 113 bool m_gapless;
Chris@1275 114 bool m_runPluginsInProcess;
Chris@686 115 bool m_networkPermission;
Chris@950 116 bool m_retina;
Chris@180 117 QString m_tempDirRoot;
Chris@180 118 int m_backgroundMode;
Chris@337 119 int m_timeToTextMode;
Chris@906 120 bool m_showHMS;
Chris@702 121 int m_octaveSystem;
Chris@225 122 int m_viewFontSize;
Chris@237 123 bool m_showSplash;
Chris@180 124
Chris@180 125 bool m_changesOnRestart;
Chris@0 126 };
Chris@0 127
Chris@0 128 #endif