fix bad #ifdef names
[mussa.git] / qui / subanalysis / SubanalysisWindow.hpp
1 #ifndef _SUBANALYSIS_WINDOW_H_
2 #define _SUBANALYSIS_WINDOW_H_
3
4 #include <boost/shared_ptr.hpp>
5
6 #include <QTableView>
7 #include <QPushButton>
8 #include <QSpinBox>
9 #include <QStringList>
10 #include <QWidget>
11
12 #include "qui/subanalysis/SequenceLocationModel.hpp"
13 #include "alg/mussa.hpp"
14
15 class SubanalysisWindow : public QWidget
16 {
17   Q_OBJECT 
18
19 public: 
20   SubanalysisWindow(MussaRef m, QWidget *parent = 0);
21
22   //! return a modifiable reference to our SequenceLocationModel
23   SequenceLocationModel& getModel();
24
25 public slots:
26   //! clear our model and close the window
27   void abort();
28   //! create a subanalysis and run it
29   void run();
30   //! provide a way for the model to tell us to update our gui
31   void modelUpdated(const QModelIndex&, int, int);
32   //! update our title
33   void updateTitle();
34
35 private:
36   //! keep track of what analysis we're attached to
37   MussaRef analysis;
38   QSpinBox *window;
39   QSpinBox *threshold;
40   QTableView *table;
41   QPushButton *ok;
42   QPushButton *cancel;
43
44   SequenceLocationModel model;
45 };
46
47 //! reference to a subanalysis window
48 typedef boost::shared_ptr<SubanalysisWindow> SubanalysisWindowRef;
49 #endif