LMMS
Loading...
Searching...
No Matches
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
30namespace lmms
31{
32
37class PatternClip : public Clip
38{
39public:
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
59private:
60 friend class PatternClipView;
61} ;
62
63
64} // namespace lmms
65
66#endif // LMMS_PATTERN_CLIP_H
Clip(Track *track)
Create a new Clip.
Definition Clip.cpp:47
~PatternClip() override=default
gui::ClipView * createView(gui::TrackView *_tv) override
Definition PatternClip.cpp:113
int patternIndex()
Definition PatternClip.cpp:106
QString nodeName() const override
Definition PatternClip.h:45
void saveSettings(QDomDocument &_doc, QDomElement &_parent) override
Definition PatternClip.cpp:50
PatternClip * clone() override
Definition PatternClip.h:54
void loadSettings(const QDomElement &_this) override
Definition PatternClip.cpp:74
friend class PatternClipView
Definition PatternClip.h:60
PatternClip(Track *track)
Definition PatternClip.cpp:38
Base-class for all tracks.
Definition Track.h:68
Definition ClipView.h:52
Definition TrackView.h:60
Definition AudioAlsa.cpp:35