LMMS
Loading...
Searching...
No Matches
OscilloscopeControls.h
Go to the documentation of this file.
1/*
2 * OscilloscopeControls.h - Oscilloscope effect controls/models
3 *
4 * Copyright (c) 2025-2026 Keratin
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#ifndef LMMS_OSCILLOSCOPE_CONTROLS_H
25#define LMMS_OSCILLOSCOPE_CONTROLS_H
26
27#include "EffectControls.h"
28
29namespace lmms
30{
31
32class Oscilloscope;
33
34namespace gui
35{
38}
39
41{
42 Q_OBJECT
43public:
45 ~OscilloscopeControls() override = default;
46
47 void saveSettings(QDomDocument& doc, QDomElement& parent) override;
48 void loadSettings(const QDomElement& parent) override;
49 QString nodeName() const override { return "OscilloscopeControls"; }
51 int controlCount() override { return 5; }
52
53private:
59
61
64 friend class Oscilloscope;
65};
66
67} // namespace lmms
68
69#endif // LMMS_OSCILLOSCOPE_CONTROLS_H
Definition AutomatableModel.h:497
Effect * effect()
Definition EffectControls.h:70
EffectControls(Effect *_eff)
Definition EffectControls.h:46
Definition AutomatableModel.h:463
~OscilloscopeControls() override=default
void loadSettings(const QDomElement &parent) override
Definition OscilloscopeControls.cpp:47
BoolModel m_pauseModel
Definition OscilloscopeControls.h:57
FloatModel m_ampModel
Definition OscilloscopeControls.h:54
gui::EffectControlDialog * createView() override
Definition OscilloscopeControls.cpp:65
QString nodeName() const override
Definition OscilloscopeControls.h:49
FloatModel m_lengthModel
Definition OscilloscopeControls.h:55
friend class Oscilloscope
Definition OscilloscopeControls.h:64
OscilloscopeControls(Oscilloscope *effect)
Definition OscilloscopeControls.cpp:34
Oscilloscope * m_effect
Definition OscilloscopeControls.h:60
FloatModel m_phaseModel
Definition OscilloscopeControls.h:56
BoolModel m_stereoModel
Definition OscilloscopeControls.h:58
int controlCount() override
Definition OscilloscopeControls.h:51
void saveSettings(QDomDocument &doc, QDomElement &parent) override
Definition OscilloscopeControls.cpp:56
Definition Oscilloscope.h:36
Definition EffectControlDialog.h:42
Definition OscilloscopeControlDialog.h:41
Definition OscilloscopeGraph.h:43
static uintptr_t parent
Definition pugl.h:1644
Definition AudioPortAudio.cpp:209
Definition AudioAlsa.cpp:35