LMMS
Loading...
Searching...
No Matches
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
32namespace lmms
33{
34
35
36namespace gui
37{
38
40
41} // namespace gui
42
44{
45public:
48 Model( _eff ),
49 m_effect( _eff ),
51 {
52 }
53
54 ~EffectControls() override = default;
55
56 virtual int controlCount() = 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
71 {
72 return m_effect;
73 }
74
75
76private:
79
80} ;
81
82
83} // namespace lmms
84
85#endif // LMMS_EFFECT_CONTROLS_H
virtual gui::EffectControlDialog * createView()=0
Effect * m_effect
Definition EffectControls.h:77
~EffectControls() override=default
bool isViewVisible() const
Definition EffectControls.h:65
Effect * effect()
Definition EffectControls.h:70
virtual int controlCount()=0
bool m_viewVisible
Definition EffectControls.h:78
void setViewVisible(bool _visible)
Definition EffectControls.h:60
EffectControls(Effect *_eff)
Definition EffectControls.h:46
Definition Effect.h:53
JournallingObject()
Definition JournallingObject.cpp:36
Model(Model *parent, QString displayName=QString(), bool defaultConstructed=false)
Definition Model.cpp:30
Definition EffectControlDialog.h:42
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35
#define false
Definition ordinals.h:83