do a better job of erasing the browser sidebars
[mussa.git] / qui / seqbrowser / SequenceBrowserSidebar.hpp
index 4c599dedd6e4ce886d77cdbd3da064b62ecbd327..09cbe3a950076d461df4d9aca4806636592ef3f8 100644 (file)
@@ -17,15 +17,24 @@ class SequenceBrowserSidebar : public QWidget
   Q_OBJECT
 
 public:
+  //! pointer to our sequence description widget
+  typedef SequenceDescription *seq_description_type;
+  //! an STL collection of our sequence description widget
+  typedef std::vector<seq_description_type> collection;
+  typedef collection::size_type size_type;
+  typedef collection::iterator iterator;
   enum SidebarSide { Left, Right };
 
   SequenceBrowserSidebar(QWidget *parent = 0);
 
   //! clear our list of descriptions
   void clear();
+  //! how many items are we storing
+  size_t size() const;
+  //! set the glsequences we're going to be displaying
   void setSequences(std::vector<boost::shared_ptr<GlSequence> > );
 
-  std::vector<SequenceDescription *> descriptions;
+  collection descriptions;
 public slots:
   //! update the reported sequence position for each of our sequences
   /*! for example when the right side is at position 3000 call