PreferencesDialog.h

Go to the documentation of this file.
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
00002 
00003 /*
00004     Sonic Visualiser
00005     An audio file viewer and annotation editor.
00006     Centre for Digital Music, Queen Mary, University of London.
00007     This file copyright 2006 Chris Cannam.
00008     
00009     This program is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU General Public License as
00011     published by the Free Software Foundation; either version 2 of the
00012     License, or (at your option) any later version.  See the file
00013     COPYING included with this distribution for more information.
00014 */
00015 
00016 #ifndef _PREFERENCES_DIALOG_H_
00017 #define _PREFERENCES_DIALOG_H_
00018 
00019 #include <QDialog>
00020 
00021 #include "base/Window.h"
00022 
00023 class WindowTypeSelector;
00024 class QPushButton;
00025 class QLineEdit;
00026 
00027 class PreferencesDialog : public QDialog
00028 {
00029     Q_OBJECT
00030 
00031 public:
00032     PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0);
00033     virtual ~PreferencesDialog();
00034 
00035 public slots:
00036     void applicationClosing(bool quickly);
00037 
00038 protected slots:
00039     void windowTypeChanged(WindowType type);
00040     void spectrogramSmoothingChanged(int state);
00041     void propertyLayoutChanged(int layout);
00042     void tuningFrequencyChanged(double freq);
00043     void resampleQualityChanged(int quality);
00044     void resampleOnLoadChanged(int state);
00045     void tempDirRootChanged(QString root);
00046     void backgroundModeChanged(int mode);
00047     void viewFontSizeChanged(int sz);
00048     void showSplashChanged(int state);
00049 
00050     void tempDirButtonClicked();
00051 
00052     void okClicked();
00053     void applyClicked();
00054     void cancelClicked();
00055 
00056 protected:
00057     WindowTypeSelector *m_windowTypeSelector;
00058     QPushButton *m_applyButton;
00059 
00060     QLineEdit *m_tempDirRootEdit;
00061     
00062     WindowType m_windowType;
00063     int m_spectrogramSmoothing;
00064     int m_propertyLayout;
00065     float m_tuningFrequency;
00066     int m_resampleQuality;
00067     bool m_resampleOnLoad;
00068     QString m_tempDirRoot;
00069     int m_backgroundMode;
00070     int m_viewFontSize;
00071     bool m_showSplash;
00072 
00073     bool m_changesOnRestart;
00074 };
00075 
00076 #endif

Generated on Wed Feb 20 15:45:27 2008 for SonicVisualiser by  doxygen 1.5.1