lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
PeakIndicator.h
Go to the documentation of this file.
1
/*
2
* PeakIndicator.h - Peak indicator widget
3
*
4
* Copyright (c) 2024- Michael Gregorius
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
26
#ifndef LMMS_GUI_PEAKINDICATOR_H
27
#define LMMS_GUI_PEAKINDICATOR_H
28
29
#include "lmms_export.h"
30
31
#include <QLabel>
32
33
34
namespace
lmms::gui
35
{
36
37
class
LMMS_EXPORT
PeakIndicator
:
public
QLabel
38
{
39
Q_OBJECT
40
public
:
41
PeakIndicator
(QWidget* parent);
42
43
void
resetPeakToMinusInf
();
44
45
public
slots:
46
void
updatePeak
(
float
peak);
47
48
protected
:
49
void
mousePressEvent
(QMouseEvent* e)
override
;
50
51
private
:
52
void
updatePeakDisplay
();
53
54
private
:
55
float
m_peak
;
56
} ;
57
58
}
// namespace lmms::gui
59
60
#endif
// LMMS_GUI_PEAKINDICATOR_H
lmms::gui::PeakIndicator::m_peak
float m_peak
Definition
PeakIndicator.h:55
lmms::gui::PeakIndicator::updatePeak
void updatePeak(float peak)
Definition
PeakIndicator.cpp:50
lmms::gui::PeakIndicator::updatePeakDisplay
void updatePeakDisplay()
Definition
PeakIndicator.cpp:67
lmms::gui::PeakIndicator::resetPeakToMinusInf
void resetPeakToMinusInf()
Definition
PeakIndicator.cpp:44
lmms::gui::PeakIndicator::mousePressEvent
void mousePressEvent(QMouseEvent *e) override
Definition
PeakIndicator.cpp:59
lmms::gui::PeakIndicator::PeakIndicator
PeakIndicator(QWidget *parent)
Definition
PeakIndicator.cpp:35
lmms::gui
Definition
AudioPortAudio.cpp:209
Generated on
for lmms by
1.18.0