29 #include <QStringList>
49 enum MarkerType {Single = 2, Selection = 4};
67 inline QString&
label() {
return m_label; }
69 inline int type() {
return m_type; }
71 inline qint16
value() {
return m_code; }
74 inline QString& notes() {
return m_notes; }
75 inline bool isEditable() {
return m_editable; }
76 inline bool isVisible() {
return m_visible; }
80 inline float start() {
return m_start; }
84 inline float end() {
return m_start + m_duration; }
89 inline void setLabel(
const QString&
label) { m_label =
label; }
90 inline void setValue(qint16
value) { m_code =
value; }
91 inline void setNotes(
const QString& notes) { m_notes = notes; }
92 inline void setEditable(
bool flag) { m_editable = flag; }
93 inline void setVisible(
bool flag) { m_visible = flag; }
94 inline void setStart(
float start) { m_start =
start; }
95 inline void setDuration(
float duration) { m_duration =
duration;
if (duration > 0) m_type = Selection; }
97 inline void addTargetChannel(
const QString& channel) { m_targetChannels.append(channel); }
108 QStringList m_targetChannels;
111 typedef QList<AwMarker *> AwMarkerList;
113 Q_DECLARE_METATYPE(AwMarkerList)
float start()
Definition: AwMarker.h:80
int type()
Definition: AwMarker.h:69
float duration()
Definition: AwMarker.h:82
float end()
Definition: AwMarker.h:84
AwMarker()
Definition: AwMarker.cpp:31
static QString typeToString(qint32 t)
Definition: AwMarker.cpp:73
QString & label()
Definition: AwMarker.h:67
qint16 value()
Definition: AwMarker.h:71
static int stringToType(const QString &s)
Definition: AwMarker.cpp:58
QStringList & targetChannels()
Definition: AwMarker.h:87
static QStringList markersTypeList()
Definition: AwMarker.cpp:92
This class defines the AwMarker object.
Definition: AwMarker.h:45