itom
Loading...
Searching...
No Matches
dialogHeatmapConfiguration.h
1/* ********************************************************************
2 itom measurement system
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2021, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom.
8
9 itom is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 itom is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22
23#pragma once
24
25#include <QtGui>
26#include <qdialog.h>
27#include <qlocale.h>
28
29#include "common/interval.h"
30
31#include "ui_dialogHeatmapConfiguration.h"
32
33namespace ito {
34
35class DialogHeatmapConfiguration : public QDialog
36{
37 Q_OBJECT
38
39public:
40 DialogHeatmapConfiguration(const AutoInterval& interval, QWidget* parent = nullptr);
42
43 ito::AutoInterval getInterval() const;
44
45private:
46 bool checkValue(QLineEdit* lineEdit, const double& min, const double& max, const QString& name);
47
48 double m_min;
49 double m_max;
50 QLocale m_locale;
51 AutoInterval m_interval;
52
53 Ui::DialogHeatmapConfiguration ui;
54
55private slots:
56 void on_buttonBox_accepted();
57 };
58
59 } // end namespace ito
class for a interval type containing a min-max-range and an auto-flag.
Definition interval.h:50
Definition dialogHeatmapConfiguration.h:36
Definition apiFunctionsGraph.cpp:40