hydrogen
1.2.6
SampleWaveDisplay.h
Go to the documentation of this file.
1
/*
2
* Hydrogen
3
* Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4
* Copyright(c) 2008-2025 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5
*
6
* http://www.hydrogen-music.org
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (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
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see https://www.gnu.org/licenses
20
*
21
*/
22
23
#ifndef SAMPLE_WAVE_DISPLAY
24
#define SAMPLE_WAVE_DISPLAY
25
26
#include <QtWidgets>
27
28
#include <
core/Object.h
>
29
30
31
33
class
SampleWaveDisplay
:
public
QWidget,
public
H2Core::Object
<SampleWaveDisplay>
34
{
35
H2_OBJECT
(
SampleWaveDisplay
)
36
Q_OBJECT
37
38
public
:
39
explicit
SampleWaveDisplay
( QWidget* pParent );
40
~SampleWaveDisplay
();
41
42
void
updateDisplay
( QString filename );
43
44
virtual
void
paintEvent
(QPaintEvent *ev)
override
;
45
46
private
:
47
QPixmap
m_Background
;
48
QString
m_sSampleName
;
49
int
*
m_pPeakData
;
50
};
51
52
53
#endif
54
Object.h
H2_OBJECT
#define H2_OBJECT(name)
Definition
Object.h:227
H2Core::Object
Definition
Object.h:181
SampleWaveDisplay::SampleWaveDisplay
SampleWaveDisplay(QWidget *pParent)
Definition
SampleWaveDisplay.cpp:31
SampleWaveDisplay::updateDisplay
void updateDisplay(QString filename)
Definition
SampleWaveDisplay.cpp:85
SampleWaveDisplay::m_sSampleName
QString m_sSampleName
Definition
SampleWaveDisplay.h:48
SampleWaveDisplay::m_pPeakData
int * m_pPeakData
Definition
SampleWaveDisplay.h:49
SampleWaveDisplay::~SampleWaveDisplay
~SampleWaveDisplay()
Definition
SampleWaveDisplay.cpp:54
SampleWaveDisplay::m_Background
QPixmap m_Background
Definition
SampleWaveDisplay.h:47
SampleWaveDisplay::paintEvent
virtual void paintEvent(QPaintEvent *ev) override
Definition
SampleWaveDisplay.cpp:63
src
gui
src
AudioFileBrowser
SampleWaveDisplay.h
Generated by
1.13.2