add dirty flag
[mussa.git] / alg / mussa.hpp
index 5713a6dd9f0523bc8a71968c6ba09c0596f6f14f..d673b7b8a681c09f4ce94e71533aa0919a9ed271 100644 (file)
@@ -90,6 +90,8 @@ public:
     enum analysis_modes get_analysis_mode() const;
     //! return a string name for an analysis mode
     std::string get_analysis_mode_name() const;
+    //! return if we have unsaved changes
+    bool is_dirty() const { return dirty; }
 
     //! return the refined paths found by the nway analysis.
     const NwayPaths& paths() const;
@@ -203,6 +205,8 @@ public:
     std::set<Sequence> motif_sequences;
     //! color manager
     boost::shared_ptr<AnnotationColors> color_mapper;
+    //! flag indicating if we have unsaved changes
+    bool dirty;
 
     // Private methods
     //! runs all the seqcomps needed to support the nway comparison