hydrogen
1.2.6
AudioEngineInfoForm.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
24
#ifndef AUDIO_ENGINE_INFO_FORM_H
25
#define AUDIO_ENGINE_INFO_FORM_H
26
27
#include <
core/Object.h
>
28
#include <
core/AudioEngine/AudioEngine.h
>
29
30
#include "
EventListener.h
"
31
#include "ui_AudioEngineInfoForm_UI.h"
32
33
#include <QtGui>
34
#include <QtWidgets>
35
40
class
AudioEngineInfoForm
:
public
QWidget,
public
Ui_AudioEngineInfoForm_UI,
public
EventListener
,
public
H2Core::Object
<AudioEngineInfoForm>
41
{
42
H2_OBJECT
(
AudioEngineInfoForm
)
43
Q_OBJECT
44
private
:
45
QTimer*
m_pTimer
;
46
47
// EventListener implementation
48
virtual
void
stateChangedEvent
(
H2Core::AudioEngine::State
state)
override
;
49
virtual
void
playingPatternsChangedEvent
()
override
;
50
virtual
void
updateSongEvent
(
int
)
override
;
51
// ~ EventListener implementation
52
53
public
:
54
explicit
AudioEngineInfoForm
(QWidget* parent);
55
~AudioEngineInfoForm
();
56
57
void
showEvent
( QShowEvent *ev )
override
;
58
void
hideEvent
( QHideEvent *ev )
override
;
59
60
public
slots:
61
void
updateInfo
();
62
63
private
:
64
void
updateAudioEngineState
();
65
};
66
67
#endif
68
AudioEngine.h
EventListener.h
Object.h
H2_OBJECT
#define H2_OBJECT(name)
Definition
Object.h:227
AudioEngineInfoForm::hideEvent
void hideEvent(QHideEvent *ev) override
hide event
Definition
AudioEngineInfoForm.cpp:84
AudioEngineInfoForm::m_pTimer
QTimer * m_pTimer
Definition
AudioEngineInfoForm.h:45
AudioEngineInfoForm::AudioEngineInfoForm
AudioEngineInfoForm(QWidget *parent)
Definition
AudioEngineInfoForm.cpp:42
AudioEngineInfoForm::~AudioEngineInfoForm
~AudioEngineInfoForm()
Destructor.
Definition
AudioEngineInfoForm.cpp:66
AudioEngineInfoForm::showEvent
void showEvent(QShowEvent *ev) override
show event
Definition
AudioEngineInfoForm.cpp:74
AudioEngineInfoForm::playingPatternsChangedEvent
virtual void playingPatternsChangedEvent() override
Definition
AudioEngineInfoForm.cpp:256
AudioEngineInfoForm::stateChangedEvent
virtual void stateChangedEvent(H2Core::AudioEngine::State state) override
Definition
AudioEngineInfoForm.cpp:249
AudioEngineInfoForm::updateSongEvent
virtual void updateSongEvent(int) override
Definition
AudioEngineInfoForm.cpp:261
AudioEngineInfoForm::updateInfo
void updateInfo()
Definition
AudioEngineInfoForm.cpp:90
AudioEngineInfoForm::updateAudioEngineState
void updateAudioEngineState()
Update engineStateLbl with the current audio engine state.
Definition
AudioEngineInfoForm.cpp:217
EventListener
Definition
EventListener.h:29
H2Core::AudioEngine::State
State
Definition
AudioEngine.h:103
H2Core::Object
Definition
Object.h:181
src
gui
src
AudioEngineInfoForm.h
Generated by
1.13.2