keep motifs after closing window
[mussa.git] / qui / motif_editor / MotifModel.hpp
index b077cdcb5d8de92dee7c1d25493b3afe5e6c5f60..5cf288a99c6a1b21b0614b7bdc4911799f08ad66 100644 (file)
@@ -23,6 +23,10 @@ class MotifModel : public QAbstractTableModel
     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
     //! \@{
@@ -75,6 +79,7 @@ class MotifModel : public QAbstractTableModel
     //                const QModelIndex& parent=QModelIndex());
     //! \@}
   private:     
+    MussaRef analysis;
     model_type motifs;
 };