lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
plugins
Vectorscope
VecControls.h
Go to the documentation of this file.
1
/*
2
* VecControls.h - declaration of VecControls class.
3
*
4
* Copyright (c) 2019 Martin Pavelek <he29/dot/HS/at/gmail/dot/com>
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 VECCONTROLS_H
26
#define VECCONTROLS_H
27
28
29
#include "
EffectControls.h
"
30
31
namespace
lmms
32
{
33
34
35
class
Vectorscope
;
36
37
namespace
gui
38
{
39
class
VecControlsDialog
;
40
}
41
42
// Holds all the configuration values
43
class
VecControls
:
public
EffectControls
44
{
45
Q_OBJECT
46
public
:
47
explicit
VecControls
(
Vectorscope
*
effect
);
48
~VecControls
()
override
=
default
;
49
50
gui::EffectControlDialog
*
createView
()
override
;
51
52
void
saveSettings
(QDomDocument &document, QDomElement &element)
override
;
53
void
loadSettings
(
const
QDomElement &element)
override
;
54
55
QString
nodeName
()
const override
{
return
"Vectorscope"
;}
56
int
controlCount
()
override
{
return
3;}
57
58
const
BoolModel
&
getLogarithmicModel
()
const
{
return
m_logarithmicModel
; }
59
const
BoolModel
&
getLinesModel
()
const
{
return
m_linesModeModel
; }
60
61
private
:
62
Vectorscope
*
m_effect
;
63
64
BoolModel
m_logarithmicModel
;
65
BoolModel
m_linesModeModel
;
66
67
friend
class
gui::VecControlsDialog
;
68
};
69
70
71
}
// namespace lmms
72
73
#endif
// VECCONTROLS_H
EffectControls.h
lmms::BoolModel
Definition
AutomatableModel.h:502
lmms::EffectControls::effect
Effect * effect()
Definition
EffectControls.h:70
lmms::EffectControls::EffectControls
EffectControls(Effect *_eff)
Definition
EffectControls.h:46
lmms::VecControls::controlCount
int controlCount() override
Definition
VecControls.h:56
lmms::VecControls::nodeName
QString nodeName() const override
Definition
VecControls.h:55
lmms::VecControls::~VecControls
~VecControls() override=default
lmms::VecControls::saveSettings
void saveSettings(QDomDocument &document, QDomElement &element) override
Definition
VecControls.cpp:60
lmms::VecControls::m_linesModeModel
BoolModel m_linesModeModel
Definition
VecControls.h:65
lmms::VecControls::m_logarithmicModel
BoolModel m_logarithmicModel
Definition
VecControls.h:64
lmms::VecControls::loadSettings
void loadSettings(const QDomElement &element) override
Definition
VecControls.cpp:53
lmms::VecControls::m_effect
Vectorscope * m_effect
Definition
VecControls.h:62
lmms::VecControls::VecControls
VecControls(Vectorscope *effect)
Definition
VecControls.cpp:35
lmms::VecControls::getLogarithmicModel
const BoolModel & getLogarithmicModel() const
Definition
VecControls.h:58
lmms::VecControls::getLinesModel
const BoolModel & getLinesModel() const
Definition
VecControls.h:59
lmms::VecControls::createView
gui::EffectControlDialog * createView() override
Definition
VecControls.cpp:47
lmms::Vectorscope
Top level class; handles LMMS interface and accumulates data for processing.
Definition
Vectorscope.h:37
lmms::gui::EffectControlDialog
Definition
EffectControlDialog.h:42
lmms::gui::VecControlsDialog
Top-level widget holding the configuration GUI and vector display.
Definition
VecControlsDialog.h:42
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms
Definition
RemotePluginBase.cpp:34
Generated on
for lmms by
1.18.0