kwave  18.07.70
Label.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  Label.cpp - representation of a label within a signal
3  -------------------
4  begin : Mon Jul 31 2006
5  copyright : (C) 2006 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "config.h"
19 #include "libkwave/Label.h"
20 
21 //***************************************************************************
23  :Kwave::MetaData() // must be empty, isNull() should return true
24 {
25 }
26 
27 //***************************************************************************
29  :Kwave::MetaData(meta_data)
30 {
31 }
32 
33 //***************************************************************************
34 Kwave::Label::Label(sample_index_t position, const QString &name)
36 {
39  if (name.length())
41 }
42 
43 //***************************************************************************
45 {
46 }
47 
48 //***************************************************************************
50 {
53 }
54 
55 //***************************************************************************
57 {
58  return static_cast<sample_index_t>(
60  );
61 }
62 
63 //***************************************************************************
64 void Kwave::Label::rename(const QString &name)
65 {
67  if (name.length())
69  else
71 }
72 
73 //***************************************************************************
74 QString Kwave::Label::name() const
75 {
77 }
78 
79 //***************************************************************************
80 //***************************************************************************
static const QString STDPROP_POS
Definition: MetaData.h:53
Definition: App.h:33
virtual void moveTo(sample_index_t position)
Definition: Label.cpp:49
virtual sample_index_t pos() const
Definition: Label.cpp:56
quint64 sample_index_t
Definition: Sample.h:28
static QString metaDataType()
Definition: Label.h:59
static const QString STDPROP_TYPE
Definition: MetaData.h:41
virtual bool isNull() const
Definition: MetaData.cpp:69
virtual QString name() const
Definition: Label.cpp:74
virtual void rename(const QString &name)
Definition: Label.cpp:64
void setProperty(const QString &p, const QVariant &value)
Definition: MetaData.cpp:93
QVariant property(const QString &p) const
Definition: MetaData.cpp:110
virtual ~Label()
Definition: Label.cpp:44
static const QString STDPROP_DESCRIPTION
Definition: MetaData.h:56