RangeInputDialog.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Sonic Visualiser
5  An audio file viewer and annotation editor.
6  Centre for Digital Music, Queen Mary, University of London.
7  This file copyright 2007 QMUL.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14 */
15 
16 #ifndef SV_RANGE_INPUT_DIALOG_H
17 #define SV_RANGE_INPUT_DIALOG_H
18 
19 #include <QDialog>
20 #include <QString>
21 
22 class QDoubleSpinBox;
23 
24 class RangeInputDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29  RangeInputDialog(QString title, QString message, QString unit,
30  float min, float max, QWidget *parent = 0);
31  virtual ~RangeInputDialog();
32 
33  void getRange(float &start, float &end);
34 
35 signals:
36  void rangeChanged(float start, float end);
37 
38 public slots:
39  void setRange(float start, float end);
40 
41 protected slots:
42  void rangeStartChanged(double);
43  void rangeEndChanged(double);
44 
45 protected:
46  QDoubleSpinBox *m_rangeStart;
47  QDoubleSpinBox *m_rangeEnd;
48 };
49 
50 #endif
void getRange(float &start, float &end)
void rangeStartChanged(double)
void rangeChanged(float start, float end)
void rangeEndChanged(double)
QDoubleSpinBox * m_rangeEnd
RangeInputDialog(QString title, QString message, QString unit, float min, float max, QWidget *parent=0)
void setRange(float start, float end)
virtual ~RangeInputDialog()
QDoubleSpinBox * m_rangeStart