public:
SequenceDescription(QWidget *parent=0);
- SequenceDescription(std::string& name, float length, QWidget *parent=0);
+ SequenceDescription(std::string name, int length, QWidget *parent=0);
- void setName(const std::string& name) { name_label.setText(name.c_str()); }
- void setLength(float length);
- void setPosition(int pos) { QString s; position_label.setText(s.setNum(pos));}
+public slots:
+ void setName(std::string name);
+ void setLength(int length);
+ void setPosition(int pos);
+
+signals:
+ void nameChanged(std::string name);
+ void lengthChanged(float length);
+ void positionChanged(int pos);
private:
QLabel name_label;
QLabel length_label;
QLabel position_label;
+ int length;
+ int pos;
+
void createWidget();
};
#endif