Chris@188: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
Chris@188: 
Chris@188: /*
Chris@188:     Sonic Visualiser
Chris@188:     An audio file viewer and annotation editor.
Chris@188:     Centre for Digital Music, Queen Mary, University of London.
Chris@188:     This file copyright 2007 QMUL.
Chris@188:     
Chris@188:     This program is free software; you can redistribute it and/or
Chris@188:     modify it under the terms of the GNU General Public License as
Chris@188:     published by the Free Software Foundation; either version 2 of the
Chris@188:     License, or (at your option) any later version.  See the file
Chris@188:     COPYING included with this distribution for more information.
Chris@188: */
Chris@188: 
Chris@188: #ifndef _RANGE_INPUT_DIALOG_H_
Chris@188: #define _RANGE_INPUT_DIALOG_H_
Chris@188: 
Chris@188: #include <QDialog>
Chris@188: #include <QString>
Chris@188: 
Chris@188: class QDoubleSpinBox;
Chris@188: 
Chris@188: class RangeInputDialog : public QDialog
Chris@188: {
Chris@188:     Q_OBJECT
Chris@188: 
Chris@188: public:
Chris@188:     RangeInputDialog(QString title, QString message, QString unit,
Chris@188:                      float min, float max, QWidget *parent = 0);
Chris@188:     virtual ~RangeInputDialog();
Chris@188: 
Chris@188:     void getRange(float &start, float &end);
Chris@188:     
Chris@188: signals:
Chris@188:     void rangeChanged(float start, float end);
Chris@188: 
Chris@188: public slots:
Chris@188:     void setRange(float start, float end);
Chris@188: 
Chris@188: protected slots:
Chris@188:     void rangeStartChanged(double);
Chris@188:     void rangeEndChanged(double);
Chris@188: 
Chris@188: protected:
Chris@188:     QDoubleSpinBox *m_rangeStart;
Chris@188:     QDoubleSpinBox *m_rangeEnd;
Chris@188: };
Chris@188: 
Chris@188: #endif