2021-02-10 23:12:04 +00:00
|
|
|
#ifndef SEQUENCETOOL_H
|
|
|
|
#define SEQUENCETOOL_H
|
|
|
|
|
|
|
|
#include "sequenceevent.h"
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class SequenceTool : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit SequenceTool(SequenceEvent *event = nullptr, QWidget *parent = nullptr);
|
|
|
|
virtual ~SequenceTool();
|
|
|
|
|
|
|
|
virtual void setSequenceEvent(SequenceEvent *event);
|
|
|
|
|
|
|
|
virtual void setCategory(QString category) { m_category = category; }
|
|
|
|
virtual QString category() const { return m_category; }
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void mousePressEvent(QMouseEvent *event);
|
|
|
|
|
2021-02-11 16:14:19 +00:00
|
|
|
|
2021-02-10 23:12:04 +00:00
|
|
|
protected:
|
|
|
|
SequenceEvent *m_seqevent;
|
|
|
|
QString m_category;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SEQUENCETOOL_H
|