1 #ifndef _SEQUENCE_DESCRIPTION_H
2 #define _SEQUENCE_DESCRIPTION_H
4 #include <boost/shared_ptr.hpp>
12 #include <QVBoxLayout>
14 #include "alg/glsequence.hpp"
16 class SequenceDescription : public QFrame
21 SequenceDescription(QWidget *parent=0);
22 SequenceDescription(boost::shared_ptr<GlSequence>, QWidget *);
24 void setName(std::string name);
25 boost::shared_ptr<GlSequence> glsequence();
26 std::string name() const;
31 //! Display the passed GlSequence information
32 void setGlSequence(boost::shared_ptr<GlSequence>);
33 //! set the name for our sequence
34 void setName(const QString& name);
35 void setPosition(int pos);
38 void glsequenceChanged(boost::shared_ptr<GlSequence>);
39 void nameChanged(const QString& name);
40 void positionChanged(int pos);
44 QLineEdit *name_label;
46 QLabel *position_label;
48 boost::shared_ptr<GlSequence> glsequence_;
52 //! format the length and set the QLabel
53 void setLength(int length);