1 #ifndef _SEQUENCE_BROWSER_SIDEBAR_H
2 #define _SEQUENCE_BROWSER_SIDEBAR_H
6 #include <boost/shared_ptr.hpp>
10 #include "qui/seqbrowser/SequenceBrowser.hpp"
11 #include "qui/seqbrowser/SequenceDescription.hpp"
12 #include "alg/glsequence.hpp"
14 //! store a collection of sequence descriptions for the SequenceBrowserWidget
15 class SequenceBrowserSidebar : public QWidget
20 //! pointer to our sequence description widget
21 typedef SequenceDescription *seq_description_type;
22 //! an STL collection of our sequence description widget
23 typedef std::vector<seq_description_type> collection;
24 typedef collection::size_type size_type;
25 typedef collection::iterator iterator;
26 enum SidebarSide { Left, Right };
28 SequenceBrowserSidebar(QWidget *parent = 0);
30 //! clear our list of descriptions
32 //! how many items are we storing
34 //! set the glsequences we're going to be displaying
35 void setSequences(std::vector<boost::shared_ptr<GlSequence> > );
37 collection descriptions;
39 //! update the reported sequence position for each of our sequences
40 /*! for example when the right side is at position 3000 call
41 * iterate over each sequence and get its rightbase pair value
43 //void updatePositionValues(float left, float right);
47 //! for updating positions we need to know which side we're on
48 //SidebarSide sidebar_side;