LMMS
Loading...
Searching...
No Matches
SlewDistortionControlDialog.h
Go to the documentation of this file.
1/*
2 * SlewDistortionControlDialog.h
3 *
4 * Copyright (c) 2025 Lost Robot <r94231/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 LMMS_GUI_SLEW_DISTORTION_CONTROL_DIALOG_H
26#define LMMS_GUI_SLEW_DISTORTION_CONTROL_DIALOG_H
27
28#include "EffectControlDialog.h"
29#include <QTextEdit>
30#include <array>
31
32namespace lmms
33{
34
36class FloatModel;
37
38namespace gui
39{
40
41class Knob;
42
44{
45 Q_OBJECT
46public:
48 ~SlewDistortionControlDialog() override = default;
49
50 void paintEvent(QPaintEvent* event) override;
51public slots:
52 void showHelpWindow();
53private:
55
60
61 std::array<float, 4> m_lastInPeaks = {0};
62 std::array<float, 4> m_lastOutPeaks = {0};
63};
64
65class SlewDistortionHelpView : public QTextEdit
66{
67 Q_OBJECT
68public:
70 {
72 return instance;
73 }
74
75private:
77 static QString s_helpText;
78};
79
80} // namespace gui
81
82} // namespace lmms
83
84#endif // LMMS_GUI_SLEW_DISTORTION_CONTROL_DIALOG_H
Definition AutomatableModel.h:463
Definition SlewDistortionControls.h:60
EffectControlDialog(EffectControls *controls)
Definition EffectControlDialog.cpp:33
Definition Knob.h:47
SlewDistortionControlDialog(SlewDistortionControls *controls)
Definition SlewDistortionControlDialog.cpp:43
Knob * m_slewUp1Knob
Definition SlewDistortionControlDialog.h:56
~SlewDistortionControlDialog() override=default
std::array< float, 4 > m_lastOutPeaks
Definition SlewDistortionControlDialog.h:62
std::array< float, 4 > m_lastInPeaks
Definition SlewDistortionControlDialog.h:61
void paintEvent(QPaintEvent *event) override
Definition SlewDistortionControlDialog.cpp:200
Knob * m_slewUp2Knob
Definition SlewDistortionControlDialog.h:57
void showHelpWindow()
Definition SlewDistortionControlDialog.cpp:392
SlewDistortionControls * m_controls
Definition SlewDistortionControlDialog.h:54
Knob * m_slewDown2Knob
Definition SlewDistortionControlDialog.h:59
Knob * m_slewDown1Knob
Definition SlewDistortionControlDialog.h:58
static QString s_helpText
Definition SlewDistortionControlDialog.h:77
static SlewDistortionHelpView * getInstance()
Definition SlewDistortionControlDialog.h:69
SlewDistortionHelpView()
Definition SlewDistortionControlDialog.cpp:475
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35