LMMS
Loading...
Searching...
No Matches
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
33namespace lmms
34{
35
36class InstrumentTrack;
37
38namespace gui
39{
40
41class Knob;
42class GroupBox;
43
44class MidiCCRackView : public QWidget, public SerializingObject
45{
46 Q_OBJECT
47public:
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
59private slots:
60 void renameWindow();
61
62private:
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
Definition InstrumentTrack.h:62
SerializingObject()
Definition SerializingObject.cpp:32
Definition GroupBox.h:40
Definition Knob.h:47
~MidiCCRackView() override
Definition MidiCCRackView.cpp:112
MidiCCRackView(InstrumentTrack *track)
Definition MidiCCRackView.cpp:45
void renameWindow()
Definition MidiCCRackView.cpp:121
void loadSettings(const QDomElement &) override
Definition MidiCCRackView.cpp:130
Knob * m_controllerKnob[MidiControllerCount]
Definition MidiCCRackView.h:67
InstrumentTrack * m_track
Definition MidiCCRackView.h:63
GroupBox * m_midiCCGroupBox
Definition MidiCCRackView.h:65
QString nodeName() const override
Definition MidiCCRackView.h:54
void saveSettings(QDomDocument &doc, QDomElement &parent) override
Definition MidiCCRackView.cpp:126
static uintptr_t parent
Definition pugl.h:1644
Definition AudioPortAudio.cpp:223
Definition AudioAlsa.cpp:35
const int MidiControllerCount
Definition Midi.h:128