ff449ee1240c931552e0a989433133735b954ca0
[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, int length, QWidget *parent=0);
17
18 public slots:
19   void setName(std::string name);
20   void setLength(int length);
21   void setPosition(int pos);
22
23 signals:
24   void nameChanged(std::string name);
25   void lengthChanged(float length);
26   void positionChanged(int pos);
27
28 private:
29   QLabel name_label;
30   QLabel length_label;
31   QLabel position_label;
32
33   int length;
34   int pos;
35
36   void createWidget();
37 };
38 #endif