Vespucci  1.0.0
rangedialog.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Copyright (C) 2014-2016 Wright State University - All Rights Reserved
3  Daniel P. Foose - Maintainer/Lead Developer
4 
5  This file is part of Vespucci.
6 
7  Vespucci is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Vespucci is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Vespucci. If not, see <http://www.gnu.org/licenses/>.
19 *******************************************************************************/
20 #ifndef RANGEDIALOG_H
21 #define RANGEDIALOG_H
22 
23 #include <QDialog>
25 
26 namespace Ui {
27 class RangeDialog;
28 }
32 class RangeDialog : public QDialog
33 {
34  Q_OBJECT
35 
36 public:
37  explicit RangeDialog(QWidget *parent, double min, double max);
38  ~RangeDialog();
39  bool is_accepted();
40  void GetRange(double &min, double &max);
41 
42 signals:
43  void DialogAccepted(double min, double max);
44 
45 
46 private slots:
47  void on_buttonBox_accepted();
48 
49 private:
50  Ui::RangeDialog *ui;
51  double min_;
52  double max_;
53 
54  bool is_accepted_;
55 };
56 
57 #endif // RANGEDIALOG_H
Definition: ahcadialog.h:26
The RangeDialog class.
Definition: rangedialog.h:32
VESPUCCI_EXPORT arma::uword max(arma::uword a, arma::uword b)
Vespucci::Math::max.
Definition: accessory.cpp:237
VESPUCCI_EXPORT arma::uword min(arma::uword a, arma::uword b)
Vespucci::Math::min.
Definition: accessory.cpp:249