LMMS
Loading...
Searching...
No Matches
SaControlsDialog.h
Go to the documentation of this file.
1/*
2 * SaControlsDialog.h - declatation of SaControlsDialog 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 SACONTROLSDIALOG_H
26#define SACONTROLSDIALOG_H
27
28#include "EffectControlDialog.h"
29
30namespace lmms
31{
32class SaControls;
33class SaProcessor;
34}
35
36
37namespace lmms::gui
38{
39
40class SaSpectrumView;
41class SaWaterfallView;
42
45{
46 Q_OBJECT
47public:
48 explicit SaControlsDialog(SaControls *controls, SaProcessor *processor);
49 ~SaControlsDialog() override = default;
50
51 QSize sizeHint() const override;
52
53private:
56
57 // Pointers to created widgets are needed to keep track of their sizeHint() changes.
58 // Config widget is a plain QWidget so it has just a fixed height instead.
59 const int m_configHeight = 75;
62};
63
64
65} // namespace lmms::gui
66
67#endif // SACONTROLSDIALOG_H
Definition SaControls.h:48
Receives audio data, runs FFT analysis and stores the result.
Definition SaProcessor.h:50
EffectControlDialog(EffectControls *controls)
Definition EffectControlDialog.cpp:33
SaControlsDialog(SaControls *controls, SaProcessor *processor)
Definition SaControlsDialog.cpp:51
const int m_configHeight
Definition SaControlsDialog.h:59
SaSpectrumView * m_spectrum
Definition SaControlsDialog.h:60
SaProcessor * m_processor
Definition SaControlsDialog.h:55
QSize sizeHint() const override
Definition SaControlsDialog.cpp:342
SaControls * m_controls
Definition SaControlsDialog.h:54
SaWaterfallView * m_waterfall
Definition SaControlsDialog.h:61
~SaControlsDialog() override=default
Widget that displays a spectrum curve and frequency / amplitude grid.
Definition SaSpectrumView.h:51
Definition SaWaterfallView.h:47
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35