Q_OBJECT
public:
- MussaWindow(Mussa* analysis=0, QWidget *parent=0);
+ MussaWindow(MussaRef analysis=0, QWidget *parent=0);
//! reset any attached window
void clear();
//! switch to a new analysis
- void setAnalysis(Mussa *new_analysis);
+ void setAnalysis(MussaRef new_analysis);
//! ask the user what to do if we're going to lose data
//! returns true if getting rid of this analysis is safe
void changedAnnotations();
protected:
- //! reference to our analysis
- Mussa *analysis;
+ //! shared_ptr to our analysis
+ MussaRef analysis;
//! the default directory we should loand and save from
boost::filesystem::path default_dir;
std::list<boost::shared_ptr<MussaAlignedWindow> > aligned_windows;