kwave  18.07.70
Selection.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  Selection.cpp - Simple class for a selection
3  -------------------
4  begin : Tue May 08 2007
5  copyright : (C) 2007 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 "libkwave/Selection.h"
19 
20 //***************************************************************************
22  :QObject(), m_offset(offset), m_length(length)
23 {
24 }
25 
26 //***************************************************************************
28  :QObject(), m_offset(other.offset()), m_length(other.length())
29 {
30 }
31 
32 //***************************************************************************
34 {
35 }
36 
37 //***************************************************************************
39 {
40  m_offset = offset;
41  m_length = length;
42  emit changed(m_offset, m_length);
43 }
44 
45 //***************************************************************************
46 //***************************************************************************
void select(sample_index_t offset, sample_index_t length)
Definition: Selection.cpp:38
sample_index_t m_offset
Definition: Selection.h:104
quint64 sample_index_t
Definition: Sample.h:28
void changed(sample_index_t offset, sample_index_t length)
sample_index_t length() const
Definition: Selection.h:66
sample_index_t m_length
Definition: Selection.h:107
Selection(sample_index_t offset, sample_index_t length)
Definition: Selection.cpp:21
virtual ~Selection()
Definition: Selection.cpp:33
sample_index_t offset() const
Definition: Selection.h:61