add prototype wrapping of the qt sequence browser
[mussa.git] / qui / seqbrowser / SequenceBrowserWidget.hpp
index 030f1da7651ed54addf81a5cbb0b53e21c04bc9d..8f957c76a1d975198205103a71f67a60266ec5f8 100644 (file)
@@ -20,14 +20,21 @@ class SequenceBrowserWidget : public QScrollArea
   Q_OBJECT 
 
 public:
+  SequenceBrowserWidget(QWidget *parent=0);
+  SequenceBrowserWidget(const SequenceBrowserWidget &);
   SequenceBrowserWidget(boost::shared_ptr<QDir>, QWidget *parent=0);
 
+  //! return our wrapped browser, so we can test it.
+  SequenceBrowser& browser() { return scrollable_browser->browser(); }
+  
   //! return the popup menu for the glcanvas (reference stored internally)
   QMenu *getPopupMenu();
   //! return our fasta copy action (reference stored internally)
   QAction *getCopySelectedSequenceAsFastaAction();
   //! return our string copy action (reference stored internally)
   QAction *getCopySelectedSequenceAsStringAction();
+  //! return sequence properties edit action
+  QAction *getEditSequencePropertiesAction();
 
   QSize sizeHint() const;
     
@@ -79,6 +86,8 @@ public slots:
 signals:
   //! emit when someone copies basepairs
   void basepairsCopied(size_t);
+  //! emit when sequence browser alerts this widget of mouse wheel zoom event
+  void mouseWheelZoom(double);
   
 private:
   boost::shared_ptr<QDir> default_dir;
@@ -91,6 +100,9 @@ private:
   //! sequences created by a setSequences(vector<Sequences>) call
   /*! I need to save them so i can free them to avoid a memory leak 
    */
-  std::vector<boost::shared_ptr<GlSequence> > converted_sequences;
+  std::vector<GlSequenceRef > converted_sequences;
+
+  //! shared code for constructors
+  void init();
 };
 #endif