svgui
1.9
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 _RANGE_INPUT_DIALOG_H_
17
#define _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
RangeInputDialog::getRange
void getRange(float &start, float &end)
Definition:
RangeInputDialog.cpp:71
RangeInputDialog::rangeStartChanged
void rangeStartChanged(double)
Definition:
RangeInputDialog.cpp:99
RangeInputDialog::rangeChanged
void rangeChanged(float start, float end)
RangeInputDialog::rangeEndChanged
void rangeEndChanged(double)
Definition:
RangeInputDialog.cpp:112
RangeInputDialog::m_rangeEnd
QDoubleSpinBox * m_rangeEnd
Definition:
RangeInputDialog.h:47
RangeInputDialog::RangeInputDialog
RangeInputDialog(QString title, QString message, QString unit, float min, float max, QWidget *parent=0)
Definition:
RangeInputDialog.cpp:25
RangeInputDialog::setRange
void setRange(float start, float end)
Definition:
RangeInputDialog.cpp:84
RangeInputDialog::~RangeInputDialog
virtual ~RangeInputDialog()
Definition:
RangeInputDialog.cpp:66
RangeInputDialog
Definition:
RangeInputDialog.h:24
RangeInputDialog::m_rangeStart
QDoubleSpinBox * m_rangeStart
Definition:
RangeInputDialog.h:46
widgets
RangeInputDialog.h
Generated by
1.8.15