projects
/
mussa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
keep motifs after closing window
[mussa.git]
/
qui
/
motif_editor
/
MotifModel.cpp
diff --git
a/qui/motif_editor/MotifModel.cpp
b/qui/motif_editor/MotifModel.cpp
index 5bf0ad1db4b43445f714642c54baf8f28f325efc..0785721f1f74ea74b89aca3abe4a3e38061ac43d 100644
(file)
--- a/
qui/motif_editor/MotifModel.cpp
+++ b/
qui/motif_editor/MotifModel.cpp
@@
-3,7
+3,8
@@
#include <QColor>
MotifModel::MotifModel(MussaRef m, QObject *parent)
#include <QColor>
MotifModel::MotifModel(MussaRef m, QObject *parent)
- : QAbstractTableModel(parent)
+ : analysis(m),
+ QAbstractTableModel(parent)
{
const std::set<Sequence>& motif_set = m->motifs();
boost::shared_ptr<AnnotationColors> cm = m->colorMapper();
{
const std::set<Sequence>& motif_set = m->motifs();
boost::shared_ptr<AnnotationColors> cm = m->colorMapper();
@@
-20,6
+21,10
@@
MotifModel::MotifModel(MussaRef m, QObject *parent)
push_empty();
}
push_empty();
}
+const MussaRef MotifModel::getAnalysis() const {
+ return analysis;
+}
+
void MotifModel::assign(
MotifModel::size_type num,
const MotifElement& val
void MotifModel::assign(
MotifModel::size_type num,
const MotifElement& val