Vespucci  1.0.0
univariatedialog.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 UNIVARIATEDIALOG_H
21 #define UNIVARIATEDIALOG_H
22 
23 #include <QDialog>
25 
26 namespace Ui {
27 class UnivariateDialog;
28 }
29 
33 class UnivariateDialog : public QDialog
34 {
35  Q_OBJECT
36 
37 public:
38  explicit UnivariateDialog(QWidget *parent, QSharedPointer<VespucciWorkspace> ws, QSharedPointer<AbstractDataAnalyzer> analyzer);
40 
41 private slots:
42  void on_buttonBox_accepted();
43 
44  void on_buttonBox_rejected();
45 
46  void on_minLineEdit_textChanged(const QString &arg1);
47 
48  void on_maxLineEdit_textChanged(const QString &arg1);
49 
50  void on_indexSpinBox_editingFinished();
51 
52 private:
53  Ui::UnivariateDialog *ui;
54 
58  QSharedPointer<VespucciWorkspace> workspace_;
59 
63  QCustomPlot *spectrum_plot_;
64 
65 
69  int data_index_;
70 
74  QCPItemStraightLine *min_line_;
75 
79  QCPItemStraightLine *max_line_;
80 
84  QSharedPointer<AbstractDataAnalyzer> analyzer_;
85 
86  QStringList dataset_keys_;
87 
88 };
89 
90 #endif // UNIVARIATEDIALOG_H
Definition: ahcadialog.h:26
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:1685
A straight line that spans infinitely in both directions.
Definition: qcustomplot.h:3287
The UnivariateDialog class Class allowing user to create univariate images.