LMMS
Loading...
Searching...
No Matches
ReverbSCControls.h
Go to the documentation of this file.
1/*
2 * ReverbSCControls.h
3 *
4 * Copyright (c) 2017 Paul Batchelor
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 REVERBSC_CONTROLS_H
26#define REVERBSC_CONTROLS_H
27
28#include "EffectControls.h"
30
31
32namespace lmms
33{
34
35
36class ReverbSCEffect;
37
39{
40 Q_OBJECT
41public:
43 ~ReverbSCControls() override = default;
44
45 void saveSettings( QDomDocument & _doc, QDomElement & _parent ) override;
46 void loadSettings( const QDomElement & _this ) override;
47 inline QString nodeName() const override
48 {
49 return "ReverbSCControls";
50 }
51
52 int controlCount() override
53 {
54 return 4;
55 }
56
58 {
59 return new gui::ReverbSCControlDialog( this );
60 }
61
62
63private slots:
64 void changeControl();
65 void changeSampleRate();
66
67private:
73
75 friend class ReverbSCEffect;
76
77} ;
78
79
80} // namespace lmms
81
82#endif
Effect * effect()
Definition EffectControls.h:70
EffectControls(Effect *_eff)
Definition EffectControls.h:46
Definition AutomatableModel.h:463
QString nodeName() const override
Definition ReverbSCControls.h:47
FloatModel m_inputGainModel
Definition ReverbSCControls.h:69
gui::EffectControlDialog * createView() override
Definition ReverbSCControls.h:57
void changeSampleRate()
Definition ReverbSCControls.cpp:66
friend class ReverbSCEffect
Definition ReverbSCControls.h:75
FloatModel m_colorModel
Definition ReverbSCControls.h:71
ReverbSCEffect * m_effect
Definition ReverbSCControls.h:68
int controlCount() override
Definition ReverbSCControls.h:52
FloatModel m_outputGainModel
Definition ReverbSCControls.h:72
~ReverbSCControls() override=default
void saveSettings(QDomDocument &_doc, QDomElement &_parent) override
Definition ReverbSCControls.cpp:58
ReverbSCControls(ReverbSCEffect *effect)
Definition ReverbSCControls.cpp:35
FloatModel m_sizeModel
Definition ReverbSCControls.h:70
void loadSettings(const QDomElement &_this) override
Definition ReverbSCControls.cpp:50
void changeControl()
Definition ReverbSCControls.cpp:46
Definition ReverbSC.h:44
Definition EffectControlDialog.h:42
Definition ReverbSCControlDialog.h:41
Definition AudioAlsa.cpp:35