do a better job of grouping seqbrowser sidebar information.
[mussa.git] / qui / seqbrowser / SequenceDescription.hpp
1 #ifndef _SEQUENCE_DESCRIPTION_H
2 #define _SEQUENCE_DESCRIPTION_H
3
4 #include <string>
5
6 #include <QString>
7 #include <QLabel>
8 #include <QFrame>
9
10 class SequenceDescription : public QFrame
11 {
12   Q_OBJECT 
13
14 public:
15   SequenceDescription(QWidget *parent=0);
16   SequenceDescription(std::string& name, float length, QWidget *parent=0);
17
18   void setName(const std::string& name) { name_label.setText(name.c_str()); }
19   void setLength(float length);
20   void setPosition(int pos) { QString s; position_label.setText(s.setNum(pos));}
21
22 private:
23   QLabel name_label;
24   QLabel length_label;
25   QLabel position_label;
26
27   void createWidget();
28 };
29 #endif