Mercurial > hg > sonic-visualiser
diff main/PreferencesDialog.h @ 436:6d827453657f templating
Add default session template to Preferences; tidy up menu functions and states
author | Chris Cannam |
---|---|
date | Mon, 23 May 2011 16:13:30 +0100 |
parents | a3b2cba73143 |
children | 33d0632255b5 e5e6625deb85 |
line wrap: on
line diff
--- a/main/PreferencesDialog.h Tue May 17 17:22:30 2011 +0100 +++ b/main/PreferencesDialog.h Mon May 23 16:13:30 2011 +0100 @@ -17,12 +17,14 @@ #define _PREFERENCES_DIALOG_H_ #include <QDialog> +#include <QMap> #include "base/Window.h" class WindowTypeSelector; class QPushButton; class QLineEdit; +class QTabWidget; class PreferencesDialog : public QDialog { @@ -32,6 +34,14 @@ PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0); virtual ~PreferencesDialog(); + enum Tab { + GeneralTab, + AppearanceTab, + AnalysisTab, + TemplateTab + }; + void switchToTab(Tab tab); + public slots: void applicationClosing(bool quickly); @@ -49,6 +59,7 @@ void timeToTextModeChanged(int mode); void viewFontSizeChanged(int sz); void showSplashChanged(int state); + void defaultTemplateChanged(int); void tempDirButtonClicked(); @@ -60,7 +71,13 @@ WindowTypeSelector *m_windowTypeSelector; QPushButton *m_applyButton; + QTabWidget *m_tabs; + QMap<Tab, int> m_tabOrdering; + QLineEdit *m_tempDirRootEdit; + + QString m_currentTemplate; + QStringList m_templates; WindowType m_windowType; int m_spectrogramSmoothing;