Vespucci  1.0.0
spectrumeditor.h
Go to the documentation of this file.
1 #ifndef SPECTRUMEDITOR_H
2 #define SPECTRUMEDITOR_H
3 
4 #include <QDialog>
7 
8 class PlotViewer;
9 class MainWindow;
10 class SpectraTableModel;
11 class VespucciWorkspace;
12 
13 namespace Ui {
14 class SpectrumEditor;
15 }
16 
17 class SpectrumEditor : public QDockWidget
18 {
19  Q_OBJECT
20 
21 public:
22  explicit SpectrumEditor(MainWindow *main_window, QSharedPointer<VespucciWorkspace> workspace);
23  ~SpectrumEditor();
24 signals:
25  void SetActionChecked(bool checked);
26 protected:
27  void closeEvent(QCloseEvent *ev);
28  void keyPressEvent(QKeyEvent *event);
29 public slots:
30  void DatasetSelectionChanged(QString dataset_key);
31  void DatasetToBeRemoved(QString key);
32 private slots:
33  void on_tableView_clicked(const QModelIndex &index);
34  void SpectrumRemoved(int row);
35  void on_deletePushButton_clicked();
36  void on_exportPushButton_clicked();
37 
38  void on_zeroPushButton_clicked();
39 
40 private:
41  void RequestSpectrumPlot(const QModelIndex &index);
42  Ui::SpectrumEditor *ui;
43  SpectraTableModel *table_model_;
44  QSharedPointer<VespucciDataset> dataset_;
45  PlotViewer *plot_viewer_;
46  MainWindow *main_window_;
47  QSharedPointer<VespucciWorkspace> workspace_;
48 };
49 
50 #endif // SPECTRUMEDITOR_H
Definition: ahcadialog.h:26
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