lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
PatternClip.h
Go to the documentation of this file.
1
/*
2
* PatternClip.h
3
*
4
* Copyright (c) 2004-2014 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5
*
6
* This file is part of LMMS - https://lmms.io
7
*
8
* This program is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU General Public
10
* License as published by the Free Software Foundation; either
11
* version 2 of the License, or (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public
19
* License along with this program (see COPYING); if not, write to the
20
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
* Boston, MA 02110-1301 USA.
22
*
23
*/
24
25
#ifndef LMMS_PATTERN_CLIP_H
26
#define LMMS_PATTERN_CLIP_H
27
28
#include "
Clip.h
"
29
30
namespace
lmms
31
{
32
37
class
PatternClip
:
public
Clip
38
{
39
public
:
40
PatternClip
(
Track
* track);
41
~PatternClip
()
override
=
default
;
42
43
void
saveSettings
( QDomDocument & _doc, QDomElement & _parent )
override
;
44
void
loadSettings
(
const
QDomElement & _this )
override
;
45
inline
QString
nodeName
()
const override
46
{
47
return
"patternclip"
;
48
}
49
50
int
patternIndex
();
51
52
gui::ClipView
*
createView
(
gui::TrackView
* _tv )
override
;
53
54
PatternClip
*
clone
()
override
55
{
56
return
new
PatternClip
(*
this
);
57
}
58
59
private
:
60
friend
class
PatternClipView
;
61
} ;
62
63
64
}
// namespace lmms
65
66
#endif
// LMMS_PATTERN_CLIP_H
Clip.h
lmms::Clip::Clip
Clip(Track *track)
Creates a new clip for the given track track.
Definition
Clip.cpp:41
lmms::PatternClip::~PatternClip
~PatternClip() override=default
lmms::PatternClip::createView
gui::ClipView * createView(gui::TrackView *_tv) override
Definition
PatternClip.cpp:113
lmms::PatternClip::patternIndex
int patternIndex()
Definition
PatternClip.cpp:106
lmms::PatternClip::nodeName
QString nodeName() const override
Definition
PatternClip.h:45
lmms::PatternClip::saveSettings
void saveSettings(QDomDocument &_doc, QDomElement &_parent) override
Definition
PatternClip.cpp:50
lmms::PatternClip::clone
PatternClip * clone() override
Creates a copy of this clip.
Definition
PatternClip.h:54
lmms::PatternClip::loadSettings
void loadSettings(const QDomElement &_this) override
Definition
PatternClip.cpp:74
lmms::PatternClip::PatternClipView
friend class PatternClipView
Definition
PatternClip.h:60
lmms::PatternClip::PatternClip
PatternClip(Track *track)
Definition
PatternClip.cpp:38
lmms::Track
Base-class for all tracks.
Definition
Track.h:67
lmms::gui::ClipView
Definition
ClipView.h:52
lmms::gui::TrackView
Definition
TrackView.h:60
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0