hydrogen 1.2.3
MidiSenseWidget.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-2024 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, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 *
22 */
23#ifndef MIDISENSE_WIDGET_H
24#define MIDISENSE_WIDGET_H
25
26#include <QtGui>
27#include <QtWidgets>
28
29#include <memory>
30#include <core/Object.h>
31#include <core/MidiAction.h>
32#include <core/IO/MidiCommon.h>
33
35class MidiSenseWidget : public QDialog , public H2Core::Object<MidiSenseWidget>
36 {
38 Q_OBJECT
39
40 public:
41 explicit MidiSenseWidget(QWidget*,bool bDirectWrite = false , std::shared_ptr<Action> pAction = nullptr);
43
45 int getLastMidiEventParameter() const;
46
47 private slots:
48 void updateMidi();
49
50 private:
54 QLabel* m_pURLLabel;
55 std::shared_ptr<Action> m_pAction;
57};
58
65#endif
#define H2_OBJECT(name)
Definition Object.h:224
Event
Subset of incoming MIDI events that will be handled by Hydrogen.
Definition MidiCommon.h:66
MidiSenseWidget(QWidget *, bool bDirectWrite=false, std::shared_ptr< Action > pAction=nullptr)
QTimer * m_pUpdateTimer
std::shared_ptr< Action > m_pAction
int getLastMidiEventParameter() const
H2Core::MidiMessage::Event m_lastMidiEvent
H2Core::MidiMessage::Event getLastMidiEvent() const