Vespucci  1.0.0
macrodialog.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 MACRODIALOG_H
21 #define MACRODIALOG_H
22 
23 #include <QDialog>
25 class VespucciWorkspace;
26 class VespucciDataset;
27 class MainWindow;
28 namespace Ui {
29 class MacroDialog;
30 }
31 
32 class MacroDialog : public QDialog
33 {
34  Q_OBJECT
35 
36 public:
37  explicit MacroDialog(MainWindow *parent, QSharedPointer<VespucciWorkspace> ws);
38  ~MacroDialog();
39  void SetActiveDataset(QSharedPointer<VespucciDataset> dataset);
40 public slots:
41  void MacroRequested(const QStringList &macro);
42  void DatasetSelectionChanged(QString dataset_key);
43  void DatasetToBeRemoved(const QString &dataset_key);
44 signals:
45  void SetActionChecked(bool checked);
46 protected:
47  void closeEvent(QCloseEvent *ev);
48 private slots:
49  void on_openToolButton_clicked();
50 
51  void on_saveToolButton_clicked();
52 
53  void on_runToolButton_clicked();
54 
55  void on_helpToolButton_clicked();
56 
57  void on_runAllToolButton_clicked();
58 
59 private:
60  bool dataset_valid_;
61  Ui::MacroDialog *ui;
62  QSharedPointer<VespucciWorkspace> workspace_;
63  QSharedPointer<VespucciDataset> dataset_;
64 };
65 
66 #endif // MACRODIALOG_H
Definition: ahcadialog.h:26
The VespucciDataset class This is the main class for dealing with hyperspectral data. This handles the import and export of spectra, and the creation of maps. Images are handled by the MapData class. This class is intended to be allocated on the heap inside of a smart pointer, there is no copy constructor.
The VespucciWorkspace class A class which contains all "global variables" (that aren&#39;t held in MainWi...
The MainWindow class The main window of the program, this is where the user performs most operations...
Definition: mainwindow.h:58