12 #include "alg/mussa.hpp"
13 #include "qui/motif_editor/MotifModel.hpp"
15 class MotifEditor : public QWidget
20 MotifEditor(MussaRef m, QWidget *parent=0);
22 //! update our window title
27 //! return the analysis, intended for testing
28 MussaRef get_analysis() { return analysis; }
29 //! return the internal model used by the editor
30 //! this is mostly intended for testing
31 MotifModel *get_model() { return model; }
34 //! create model and attach it to the table view
36 //! called to apply motif changes to the analysis
37 void updateAnalysisMotifs();
40 //! emitted when the use has applied the motif changes
44 //! initialize all our gui widgets
48 QPushButton *applyButton;
49 QVBoxLayout *editor_layout;
50 QHBoxLayout *button_layout;
52 MotifEditorDelegate *delegate;