LMMS
Loading...
Searching...
No Matches
SaControls.h
Go to the documentation of this file.
1/*
2 * SaControls.h - declaration of SaControls 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 SACONTROLS_H
26#define SACONTROLS_H
27
28#include "ComboBoxModel.h"
29#include "EffectControls.h"
30
31//#define SA_DEBUG 1 // define SA_DEBUG to enable performance measurements
32
33namespace lmms
34{
35
36
37class Analyzer;
38
39namespace gui
40{
42class SaSpectrumView;
43class SaWaterfallView;
44}
45
46// Holds all the configuration values
48{
49 Q_OBJECT
50public:
51 explicit SaControls(Analyzer* effect);
52 ~SaControls() override = default;
53
55
56 void saveSettings (QDomDocument& doc, QDomElement& parent) override;
57 void loadSettings (const QDomElement &_this) override;
58
59 QString nodeName() const override {return "Analyzer";}
60 int controlCount() override {return 20;}
61
62private:
64
65 // basic settings
68
73
76
81
82 // advanced settings
91
92 // colors (hard-coded, values must add up to specific numbers)
93 QColor m_colorL;
94 QColor m_colorR;
95 QColor m_colorMono;
96 QColor m_colorMonoW;
97 QColor m_colorBG;
98 QColor m_colorGrid;
100
104 friend class SaProcessor;
105};
106
107
108} // namespace lmms
109
110#endif // SACONTROLS_H
Top level class; handles LMMS interface and feeds data to the data processor.
Definition Analyzer.h:43
Definition AutomatableModel.h:497
Definition ComboBoxModel.h:39
Effect * effect()
Definition EffectControls.h:70
EffectControls(Effect *_eff)
Definition EffectControls.h:46
Definition AutomatableModel.h:463
BoolModel m_refFreezeModel
Definition SaControls.h:67
QColor m_colorGrid
color of grid lines
Definition SaControls.h:98
friend class SaProcessor
Definition SaControls.h:104
QColor m_colorBG
spectrum display background color
Definition SaControls.h:97
gui::EffectControlDialog * createView() override
Definition SaControls.cpp:127
BoolModel m_logXModel
Definition SaControls.h:74
FloatModel m_spectrumResolutionModel
Definition SaControls.h:84
ComboBoxModel m_windowModel
Definition SaControls.h:80
void loadSettings(const QDomElement &_this) override
Definition SaControls.cpp:133
~SaControls() override=default
QColor m_colorMono
mono color for spectrum display
Definition SaControls.h:95
BoolModel m_pauseModel
Definition SaControls.h:66
void saveSettings(QDomDocument &doc, QDomElement &parent) override
Definition SaControls.cpp:157
BoolModel m_smoothModel
Definition SaControls.h:70
QColor m_colorL
color of the left channel
Definition SaControls.h:93
ComboBoxModel m_freqRangeModel
Definition SaControls.h:77
QColor m_colorMonoW
mono color for waterfall display
Definition SaControls.h:96
BoolModel m_logYModel
Definition SaControls.h:75
QColor m_colorLabels
color of axis labels
Definition SaControls.h:99
FloatModel m_averagingWeightModel
Definition SaControls.h:86
FloatModel m_windowOverlapModel
Definition SaControls.h:89
FloatModel m_waterfallGammaModel
Definition SaControls.h:88
FloatModel m_peakDecayFactorModel
Definition SaControls.h:85
BoolModel m_peakHoldModel
Definition SaControls.h:72
FloatModel m_zeroPaddingModel
Definition SaControls.h:90
BoolModel m_stereoModel
Definition SaControls.h:71
FloatModel m_waterfallHeightModel
Definition SaControls.h:87
ComboBoxModel m_ampRangeModel
Definition SaControls.h:78
int controlCount() override
Definition SaControls.h:60
QColor m_colorR
color of the right channel
Definition SaControls.h:94
BoolModel m_waterfallModel
Definition SaControls.h:69
SaControls(Analyzer *effect)
Definition SaControls.cpp:36
QString nodeName() const override
Definition SaControls.h:59
Analyzer * m_effect
Definition SaControls.h:63
FloatModel m_envelopeResolutionModel
Definition SaControls.h:83
ComboBoxModel m_blockSizeModel
Definition SaControls.h:79
Definition EffectControlDialog.h:42
Top-level widget holding the configuration GUI and spectrum displays.
Definition SaControlsDialog.h:45
Widget that displays a spectrum curve and frequency / amplitude grid.
Definition SaSpectrumView.h:51
Definition SaWaterfallView.h:47
static uintptr_t parent
Definition pugl.h:1644
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35