#define _MOTIF_MODEL_HPP_
#include "alg/sequence.hpp"
+#include "alg/mussa.hpp"
#include "qui/motif_editor/MotifElement.hpp"
#include "qui/motif_editor/MotifEditorDelegate.hpp"
Q_OBJECT
public:
- MotifModel(QObject *parent = 0);
+ MotifModel(MussaRef m, QObject *parent = 0);
typedef std::vector<MotifElement> model_type;
typedef model_type::size_type size_type;
typedef model_type::const_iterator const_iterator;
enum cell_names { EnabledCell, ColorCell, NameCell, SequenceCell };
+
+ //! return what analysis we were attached to
+ const MussaRef getAnalysis() const;
+
//! \defgroup VectorInterface
//! \addtogroup VectorInterface
//! \@{
//bool removeRows(int row, int count,
// const QModelIndex& parent=QModelIndex());
//! \@}
+ static const size_t model_column_size;
private:
+ MussaRef analysis;
model_type motifs;
};