lmms
Cross-platform music production software
Toggle main menu visibility
Loading...
Searching...
No Matches
include
MidiCCRackView.h
Go to the documentation of this file.
1
/*
2
* MidiCCRackView.h - declaration of the MIDI CC rack widget
3
*
4
* Copyright (c) 2020 Ian Caio <iancaio_dev/at/hotmail.com>
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
#ifndef LMMS_GUI_MIDI_CC_RACK_VIEW_H
26
#define LMMS_GUI_MIDI_CC_RACK_VIEW_H
27
28
#include <QWidget>
29
30
#include "
Midi.h
"
31
#include "
SerializingObject.h
"
32
33
namespace
lmms
34
{
35
36
class
InstrumentTrack
;
37
38
namespace
gui
39
{
40
41
class
Knob
;
42
class
GroupBox
;
43
44
class
MidiCCRackView
:
public
QWidget,
public
SerializingObject
45
{
46
Q_OBJECT
47
public
:
48
MidiCCRackView
(
InstrumentTrack
* track);
49
~MidiCCRackView
()
override
;
50
51
void
saveSettings
(QDomDocument & doc, QDomElement & parent)
override
;
52
void
loadSettings
(
const
QDomElement &)
override
;
53
54
inline
QString
nodeName
()
const override
55
{
56
return
"MidiCCRackView"
;
57
}
58
59
private
slots:
60
void
renameWindow
();
61
62
private
:
63
InstrumentTrack
*
m_track
;
64
65
GroupBox
*
m_midiCCGroupBox
;
// MIDI CC GroupBox (used to enable disable MIDI CC)
66
67
Knob
*
m_controllerKnob
[
MidiControllerCount
];
// Holds the knob widgets for each controller
68
69
};
70
71
72
}
// namespace gui
73
74
}
// namespace lmms
75
76
#endif
// LMMS_GUI_MIDI_CC_RACK_VIEW_H
Midi.h
SerializingObject.h
lmms::InstrumentTrack
Definition
InstrumentTrack.h:62
lmms::SerializingObject::SerializingObject
SerializingObject()
Definition
SerializingObject.cpp:32
lmms::gui::GroupBox
Definition
GroupBox.h:40
lmms::gui::Knob
Definition
Knob.h:47
lmms::gui::MidiCCRackView::MidiCCRackView
MidiCCRackView(InstrumentTrack *track)
Definition
MidiCCRackView.cpp:45
lmms::gui::MidiCCRackView::renameWindow
void renameWindow()
Definition
MidiCCRackView.cpp:121
lmms::gui::MidiCCRackView::loadSettings
void loadSettings(const QDomElement &) override
Definition
MidiCCRackView.cpp:130
lmms::gui::MidiCCRackView::m_controllerKnob
Knob * m_controllerKnob[MidiControllerCount]
Definition
MidiCCRackView.h:67
lmms::gui::MidiCCRackView::m_track
InstrumentTrack * m_track
Definition
MidiCCRackView.h:63
lmms::gui::MidiCCRackView::m_midiCCGroupBox
GroupBox * m_midiCCGroupBox
Definition
MidiCCRackView.h:65
lmms::gui::MidiCCRackView::nodeName
QString nodeName() const override
Definition
MidiCCRackView.h:54
lmms::gui::MidiCCRackView::saveSettings
void saveSettings(QDomDocument &doc, QDomElement &parent) override
Definition
MidiCCRackView.cpp:126
lmms::gui
Definition
AudioPortAudio.cpp:209
lmms
Definition
RemotePluginBase.cpp:34
lmms::MidiControllerCount
const int MidiControllerCount
Definition
Midi.h:128
Generated on
for lmms by
1.18.0