Vespucci  1.0.0
plotviewer.h
Go to the documentation of this file.
1 #ifndef PLOTVIEWER_H
2 #define PLOTVIEWER_H
3 
4 #include <QDialog>
5 #include "qcustomplot.h"
6 #include <mlpack/core.hpp>
8 #include <GUI/mainwindow.h>
9 
10 namespace Ui {
11 class PlotViewer;
12 }
13 using namespace std;
14 using namespace arma;
15 class MainWindow;
16 class PlotViewer : public QDockWidget
17 {
18  Q_OBJECT
19 
20 public:
21  explicit PlotViewer(MainWindow *parent, QSharedPointer<VespucciWorkspace> workspace);
22  ~PlotViewer();
23  void AddPlot(const mat& paired_data, const QString &tab_title);
24  void AddPlot(const vec& abscissa, const vec& data, const QString &tab_title);
25  void AddTransientPlot(const vec &abscissa, const vec &data, const QString &tab_title);
26  void AddTransientPlot(const mat & paired_data, const QString &tab_title);
27  void AddScatterPlot(const mat &paired_data, const QString &tab_title);
28  void AddScatterPlot(const vec &abscissa, const vec &data, const QString &tab_title);
29  void AddTab(const QString &tab_title);
30  void SetHoldCheckBoxChecked(bool checked);
31  void CloseTransientTab();
32 signals:
33  void SetActionChecked(bool checked);
34 protected:
35  void closeEvent(QCloseEvent *ev);
36 public slots:
37 private slots:
38 
39  void on_tabWidget_tabCloseRequested(int index);
40 
41 
42  void on_exportPushButton_clicked();
43 
44 private:
45  Ui::PlotViewer *ui;
46  QSharedPointer<VespucciWorkspace> workspace_;
47 };
48 
49 #endif // PLOTVIEWER_H
Definition: ahcadialog.h:26
The MainWindow class The main window of the program, this is where the user performs most operations...
Definition: mainwindow.h:58