Make MussaWindow UI objects pointers
[mussa.git] / qui / SubanalysisWindow.hpp
1 #ifndef _SUBANALYSIS_H_
2 #define _SUBANALYSIS_H_
3
4 #include <QTableView>
5 #include <QPushButton>
6 #include <QSpinBox>
7 #include <QStringList>
8 #include <QWidget>
9
10 #include "qui/SequenceLocationModel.hpp"
11
12 class SubanalysisWindow : public QWidget
13 {
14   Q_OBJECT 
15
16 public: 
17   SubanalysisWindow(QWidget *parent = 0);
18
19   //! return a modifiable reference to our SequenceLocationModel
20   SequenceLocationModel& getModel();
21
22 public slots:
23   //! clear our model and close the window
24   void abort();
25   //! create a subanalysis and run it
26   void run();
27   //! provide a way for the model to tell us to update our gui
28   void modelUpdated(const QModelIndex&, int, int);
29
30 private:  
31   QSpinBox *window;
32   QSpinBox *threshold;
33   QTableView *table;
34   QPushButton *ok;
35   QPushButton *cancel;
36
37   SequenceLocationModel model;
38 };
39 #endif