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>
29
30#include "EventListener.h"
31#include "ui_AudioEngineInfoForm_UI.h"
32
33#include <QtGui>
34#include <QtWidgets>
35
40class AudioEngineInfoForm : public QWidget, public Ui_AudioEngineInfoForm_UI, public EventListener, public H2Core::Object<AudioEngineInfoForm>
41{
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);
56
57 void showEvent ( QShowEvent *ev ) override;
58 void hideEvent ( QHideEvent *ev ) override;
59
60 public slots:
61 void updateInfo();
62
63 private:
65};
66
67#endif
68
#define H2_OBJECT(name)
Definition Object.h:227
void hideEvent(QHideEvent *ev) override
hide event
AudioEngineInfoForm(QWidget *parent)
void showEvent(QShowEvent *ev) override
show event
virtual void playingPatternsChangedEvent() override
virtual void stateChangedEvent(H2Core::AudioEngine::State state) override
virtual void updateSongEvent(int) override
void updateAudioEngineState()
Update engineStateLbl with the current audio engine state.