Store Sequence sequence location in a shared_ptr class
[mussa.git] / qui / MussaWindow.hpp
index 8afa91b31b60d3efa72e08a4b543e8db6203996f..f02f0917c299392c1600b9ba68db8a02b79f2884 100644 (file)
@@ -26,6 +26,9 @@ class QLabel;
 class QStringList;
 class Mussa;
 class QAssistantClient;
+class MussaWindow;
+
+typedef boost::shared_ptr<MussaWindow> MussaWindowRef;
 
 class MussaWindow : public QMainWindow
 {
@@ -34,6 +37,7 @@ class MussaWindow : public QMainWindow
 public: 
   MussaWindow(MussaRef analysis, QWidget *parent=0);
 
+public:
   //! reset any attached window
   void clear();
 
@@ -80,7 +84,7 @@ public slots:
   //! set the soft threshold used by the Nway_Path algorithm
   void setSoftThreshold(int thres);
   //! update progress bar
-  void updateProgress(const std::string& description, int cur, int max);
+  void updateProgress(const QString& description, int cur, int max);
 
   //! open a new mussa window so one can compare analyses
   void newMussaWindow();
@@ -107,7 +111,7 @@ protected:
   MussaRef analysis;
   //! the default directory we should loand and save from
   boost::shared_ptr<QDir> default_dir;
-  std::list<boost::shared_ptr<MussaAlignedWindow> > aligned_windows;
+  std::list<MussaAlignedWindowRef> aligned_windows;
   MotifEditor *motif_editor;
   MussaSetupDialog *setup_analysis_dialog;
   SubanalysisWindowRef subanalysis_window;
@@ -146,6 +150,8 @@ protected:
   void closeEvent(QCloseEvent *event);
   //! initialize this windows menu object
   void setupMainMenu();
+  //! initialize all of our widgets
+  void setupWidgets();
   //! initialize assistant client
   void setupAssistant();
   //! stub function to fill in QActions