LMMS
Loading...
Searching...
No Matches
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
31namespace lmms
32{
33
34
35class Vectorscope;
36
37namespace gui
38{
40}
41
42// Holds all the configuration values
44{
45 Q_OBJECT
46public:
48 ~VecControls() override = default;
49
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
59 const BoolModel& getLinesModel() const { return m_linesModeModel; }
60
61private:
63
66
68};
69
70
71} // namespace lmms
72
73#endif // VECCONTROLS_H
Definition AutomatableModel.h:497
Effect * effect()
Definition EffectControls.h:70
EffectControls(Effect *_eff)
Definition EffectControls.h:46
int controlCount() override
Definition VecControls.h:56
QString nodeName() const override
Definition VecControls.h:55
~VecControls() override=default
void saveSettings(QDomDocument &document, QDomElement &element) override
Definition VecControls.cpp:60
BoolModel m_linesModeModel
Definition VecControls.h:65
BoolModel m_logarithmicModel
Definition VecControls.h:64
void loadSettings(const QDomElement &element) override
Definition VecControls.cpp:53
Vectorscope * m_effect
Definition VecControls.h:62
VecControls(Vectorscope *effect)
Definition VecControls.cpp:35
const BoolModel & getLogarithmicModel() const
Definition VecControls.h:58
const BoolModel & getLinesModel() const
Definition VecControls.h:59
gui::EffectControlDialog * createView() override
Definition VecControls.cpp:47
Top level class; handles LMMS interface and accumulates data for processing.
Definition Vectorscope.h:37
Definition EffectControlDialog.h:42
Top-level widget holding the configuration GUI and vector display.
Definition VecControlsDialog.h:42
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35