|
kwave
18.07.70
|
#include <Label.h>


Public Member Functions | |
| Label () | |
| Label (const Kwave::MetaData &meta_data) | |
| Label (sample_index_t position, const QString &name) | |
| virtual | ~Label () |
| virtual void | moveTo (sample_index_t position) |
| virtual sample_index_t | pos () const |
| virtual void | rename (const QString &name) |
| virtual QString | name () const |
| bool | operator< (const Kwave::Label &other) const |
| bool | operator== (const Kwave::Label &other) const |
Public Member Functions inherited from Kwave::MetaData | |
| MetaData () | |
| MetaData (const MetaData &other) | |
| MetaData (Scope scope) | |
| virtual | ~MetaData () |
| virtual void | clear () |
| virtual bool | isNull () const |
| QString | id () const |
| Scope | scope () const |
| void | setScope (Scope scope) |
| void | setProperty (const QString &p, const QVariant &value) |
| bool | hasProperty (const QString &p) const |
| QVariant | property (const QString &p) const |
| QVariant | operator[] (const QString p) const |
| QVariant & | property (const QString &p) |
| QVariant & | operator[] (const QString p) |
| bool | operator== (const MetaData &other) const |
| bool | operator!= (const MetaData &other) const |
| QStringList | keys () const |
| sample_index_t | firstSample () const |
| sample_index_t | lastSample () const |
| QList< unsigned int > | boundTracks () const |
| virtual void | dump () const |
Static Public Member Functions | |
| static QString | metaDataType () |
Static Public Member Functions inherited from Kwave::MetaData | |
| static QStringList | positionBoundPropertyNames () |
Additional Inherited Members | |
Public Types inherited from Kwave::MetaData | |
| enum | Scope { None = 0, Signal = (1 << 0), Track = (1 << 1), Range = (1 << 2), Position = (1 << 3), All = ~0 } |
| typedef QMap< QString, QVariant > | PropertyList |
Static Public Attributes inherited from Kwave::MetaData | |
| static const QString | STDPROP_TYPE |
| static const QString | STDPROP_TRACKS |
| static const QString | STDPROP_START |
| static const QString | STDPROP_END |
| static const QString | STDPROP_POS |
| static const QString | STDPROP_DESCRIPTION |
| Kwave::Label::Label | ( | ) |
Default constructor, creates an empty label
Definition at line 22 of file Label.cpp.
|
explicit |
Constructor, takes over the identity of a MetaData object
| meta_data | reference to a meta data object |
| Kwave::Label::Label | ( | sample_index_t | position, |
| const QString & | name | ||
| ) |
Constructor
| position | the label position [samples] |
| name | the name of the label, user defined |
Definition at line 34 of file Label.cpp.
References metaDataType(), Kwave::MetaData::setProperty(), Kwave::MetaData::STDPROP_DESCRIPTION, Kwave::MetaData::STDPROP_POS, and Kwave::MetaData::STDPROP_TYPE.

|
inlinestatic |
|
virtual |
Set a new position of the label
| position | the new position [samples] |
Definition at line 49 of file Label.cpp.
References Kwave::MetaData::isNull(), metaDataType(), Kwave::MetaData::setProperty(), Kwave::MetaData::STDPROP_POS, and Kwave::MetaData::STDPROP_TYPE.
Referenced by Kwave::MainWidget::labelProperties(), and Kwave::SignalManager::modifyLabel().


|
virtual |
returns the name of the string
Definition at line 74 of file Label.cpp.
References Kwave::MetaData::property(), and Kwave::MetaData::STDPROP_DESCRIPTION.
Referenced by Kwave::AsciiEncoder::encode(), Kwave::MainWidget::labelProperties(), operator==(), Kwave::MainWidget::saveLabels(), Kwave::SaveBlocksPlugin::scanBlocksToSave(), Kwave::K3BExportPlugin::scanBlocksToSave(), Kwave::TopWidget::updateMenu(), and Kwave::WavEncoder::writeLabels().


|
inline |
|
inline |
|
virtual |
Returns the label's position [samples]
Definition at line 56 of file Label.cpp.
References Kwave::MetaData::property(), and Kwave::MetaData::STDPROP_POS.
Referenced by Kwave::OverViewWidget::calculateBitmap(), Kwave::AsciiEncoder::encode(), Kwave::SignalManager::executeCommand(), Kwave::TrackView::findItem(), Kwave::SignalManager::findLabel(), Kwave::MainWidget::labelProperties(), Kwave::SignalManager::modifyLabel(), Kwave::LabelItem::moveTo(), Kwave::LabelList::nextLabelLeft(), Kwave::LabelList::nextLabelRight(), operator<(), operator==(), Kwave::TrackView::paintEvent(), Kwave::MainWidget::saveLabels(), Kwave::SaveBlocksPlugin::scanBlocksToSave(), Kwave::K3BExportPlugin::scanBlocksToSave(), Kwave::SaveBlocksPlugin::start(), and Kwave::WavEncoder::writeLabels().


|
virtual |
change the name of the label
| name | the new name, user defined |
Definition at line 64 of file Label.cpp.
References Kwave::MetaData::isNull(), metaDataType(), Kwave::MetaData::setProperty(), Kwave::MetaData::STDPROP_DESCRIPTION, and Kwave::MetaData::STDPROP_TYPE.
Referenced by Kwave::MainWidget::labelProperties(), and Kwave::SignalManager::modifyLabel().

