annotate main/PreferencesDialog.h @ 25:e74f508db18c

* Add setRatio method to the time stretcher, and make it possible to change the ratio without having to construct and replace the time stretcher. This means we can do it seamlessly. Add a lot more ratios to the time stretch control in the main window
author Chris Cannam
date Fri, 15 Sep 2006 15:35:06 +0000
parents 8b34a6460545
children e3b32dc5180b
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@0 20
Chris@0 21 #include "base/Window.h"
Chris@0 22
Chris@9 23 class WindowTypeSelector;
Chris@0 24 class QPushButton;
Chris@0 25
Chris@0 26 class PreferencesDialog : public QDialog
Chris@0 27 {
Chris@0 28 Q_OBJECT
Chris@0 29
Chris@0 30 public:
Chris@0 31 PreferencesDialog(QWidget *parent = 0, Qt::WFlags flags = 0);
Chris@9 32 virtual ~PreferencesDialog();
Chris@0 33
Chris@0 34 protected slots:
Chris@9 35 void windowTypeChanged(WindowType type);
Chris@0 36 void smoothSpectrogramChanged(int state);
Chris@0 37 void propertyLayoutChanged(int layout);
Chris@0 38 void tuningFrequencyChanged(double freq);
Chris@0 39
Chris@0 40 void okClicked();
Chris@0 41 void applyClicked();
Chris@0 42 void cancelClicked();
Chris@0 43
Chris@0 44 protected:
Chris@9 45 WindowTypeSelector *m_windowTypeSelector;
Chris@0 46 QPushButton *m_applyButton;
Chris@0 47
Chris@9 48 WindowType m_windowType;
Chris@0 49 bool m_smoothSpectrogram;
Chris@0 50 int m_propertyLayout;
Chris@0 51 float m_tuningFrequency;
Chris@0 52 };
Chris@0 53
Chris@0 54 #endif