kwave
18.07.70
|
#include <LabelList.h>
Public Member Functions | |
LabelList () | |
LabelList (const Kwave::MetaDataList &meta_data_list) | |
virtual | ~LabelList () |
virtual void | sort () |
Kwave::MetaDataList | toMetaDataList () const |
sample_index_t | nextLabelLeft (sample_index_t from) |
sample_index_t | nextLabelRight (sample_index_t from) |
not more than a typedef since Qt4
Definition at line 33 of file LabelList.h.
Kwave::LabelList::LabelList | ( | ) |
Default constructor
Definition at line 28 of file LabelList.cpp.
|
explicit |
Constructor, creates a label list from a list of meta data objects, by filtering out all objects of label type (already sorted by position)
meta_data_list | list of meta data |
Definition at line 34 of file LabelList.cpp.
References Kwave::Label::metaDataType(), Kwave::MetaDataList::selectByType(), sort(), and Kwave::MetaDataList::toSortedList().
|
virtual |
sample_index_t Kwave::LabelList::nextLabelLeft | ( | sample_index_t | from | ) |
returns the position of the next label left from a given position or zero (begin of signal) if there is none
Definition at line 80 of file LabelList.cpp.
References Kwave::Label::pos().
Referenced by Kwave::PlayerToolBar::toolbarRewindPrev(), and Kwave::PlayerToolBar::updateState().
sample_index_t Kwave::LabelList::nextLabelRight | ( | sample_index_t | from | ) |
returns the position of the next label right from a given position or SAMPLE_INDEX_MAX if there is none
Definition at line 96 of file LabelList.cpp.
References Kwave::Label::pos(), and SAMPLE_INDEX_MAX.
Referenced by Kwave::PlayerToolBar::toolbarForwardNext(), and Kwave::PlayerToolBar::updateState().
|
virtual |
sorts the list by ascending position
Definition at line 64 of file LabelList.cpp.
References compare_labels().
Referenced by LabelList(), and Kwave::WavDecoder::open().
Kwave::MetaDataList Kwave::LabelList::toMetaDataList | ( | ) | const |
returns the content of this list as a list of Kwave::MetaData objects
Definition at line 71 of file LabelList.cpp.
References Kwave::MetaDataList::add().
Referenced by Kwave::AsciiDecoder::open(), and Kwave::WavDecoder::open().