provide a user interface to edit motifs
[mussa.git] / qui / motif_editor / MotifEditor.hpp
1 #ifndef MOTIF_EDITOR_H
2 #define MOTIF_EDITOR_H
3
4 #include <vector>
5
6 #include <QPushButton>
7 #include <QVBoxLayout>
8 #include <QWidget>
9
10 #include "alg/mussa.hpp"
11 #include "qui/motif_editor/MotifDetail.hpp"
12
13 class MotifEditor : public QWidget
14 {
15   Q_OBJECT
16
17 public:
18   MotifEditor(Mussa* m, QWidget *parent=0);
19   MotifEditor(const MotifEditor&);
20
21 public slots:
22   // called to apply motif changes
23   void updateMotifs();
24
25 signals:
26   // emitted when the use has applied the motif changes
27   void changedMotifs();
28   
29 private:
30   Mussa* analysis;
31
32   QPushButton applyButton;
33   QVBoxLayout layout;
34
35   std::vector<MotifDetail *> motif_details;
36 };
37 #endif