lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
EffectControls.h
Go to the documentation of this file.
1
/*
2
* EffectControls.h - model for effect-controls
3
*
4
* Copyright (c) 2008-2010 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_EFFECT_CONTROLS_H
26
#define LMMS_EFFECT_CONTROLS_H
27
28
#include "
Model.h
"
29
#include "
JournallingObject.h
"
30
#include "
Effect.h
"
31
32
namespace
lmms
33
{
34
35
36
namespace
gui
37
{
38
39
class
EffectControlDialog
;
40
41
}
// namespace gui
42
43
class
EffectControls
:
public
JournallingObject
,
public
Model
44
{
45
public
:
46
EffectControls
(
Effect
* _eff ) :
47
JournallingObject
(),
48
Model
( _eff ),
49
m_effect
( _eff ),
50
m_viewVisible
( false )
51
{
52
}
53
54
~EffectControls
()
override
=
default
;
55
56
virtual
int
controlCount
() = 0;
57
virtual
gui::EffectControlDialog
*
createView
() = 0;
58
59
60
void
setViewVisible
(
bool
_visible )
61
{
62
m_viewVisible
= _visible;
63
}
64
65
bool
isViewVisible
()
const
66
{
67
return
m_viewVisible
;
68
}
69
70
Effect
*
effect
()
71
{
72
return
m_effect
;
73
}
74
75
76
private
:
77
Effect
*
m_effect
;
78
bool
m_viewVisible
;
79
80
} ;
81
82
83
}
// namespace lmms
84
85
#endif
// LMMS_EFFECT_CONTROLS_H
Effect.h
JournallingObject.h
Model.h
lmms::EffectControls::createView
virtual gui::EffectControlDialog * createView()=0
lmms::EffectControls::m_effect
Effect * m_effect
Definition
EffectControls.h:77
lmms::EffectControls::~EffectControls
~EffectControls() override=default
lmms::EffectControls::isViewVisible
bool isViewVisible() const
Definition
EffectControls.h:65
lmms::EffectControls::effect
Effect * effect()
Definition
EffectControls.h:70
lmms::EffectControls::controlCount
virtual int controlCount()=0
lmms::EffectControls::m_viewVisible
bool m_viewVisible
Definition
EffectControls.h:78
lmms::EffectControls::setViewVisible
void setViewVisible(bool _visible)
Definition
EffectControls.h:60
lmms::EffectControls::EffectControls
EffectControls(Effect *_eff)
Definition
EffectControls.h:46
lmms::Effect
Definition
Effect.h:53
lmms::JournallingObject::JournallingObject
JournallingObject()
Definition
JournallingObject.cpp:36
lmms::Model::Model
Model(Model *parent, QString displayName=QString(), bool defaultConstructed=false)
Definition
Model.cpp:30
lmms::gui::EffectControlDialog
Definition
EffectControlDialog.h:42
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0