Deluge Firmware
1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
devices.h
1
/*
2
* Copyright © 2021-2023 Synthstrom Audible Limited
3
*
4
* This file is part of The Synthstrom Audible Deluge Firmware.
5
*
6
* The Synthstrom Audible Deluge Firmware is free software: you can redistribute it and/or modify it under the
7
* terms of the GNU General Public License as published by the Free Software Foundation,
8
* either version 3 of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
* See the GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License along with this program.
15
* If not, see <https://www.gnu.org/licenses/>.
16
*/
17
18
#pragma once
19
20
#include "gui/menu_item/value.h"
21
22
namespace
deluge::gui::menu_item::midi {
23
24
class
Devices
final :
public
Value
<int32_t> {
25
public
:
26
using
Value::Value;
27
void
beginSession
(MenuItem* navigatedBackwardFrom =
nullptr
)
override
;
28
void
selectEncoderAction
(int32_t offset)
override
;
29
MIDICable
* getCable(int32_t deviceIndex);
30
virtual
void
drawValue();
31
MenuItem*
selectButtonPress
()
override
;
32
void
drawPixelsForOled
();
33
34
private
:
35
size_t
currentScroll;
36
};
37
38
extern
Devices
devicesMenu;
39
}
// namespace deluge::gui::menu_item::midi
MIDICable
A MIDI cable connection. Stores all state specific to a given cable and its contained ports and chann...
Definition
midi_device.h:94
deluge::gui::menu_item::Value
Definition
value.h:27
deluge::gui::menu_item::midi::Devices
Definition
devices.h:24
deluge::gui::menu_item::midi::Devices::drawPixelsForOled
void drawPixelsForOled()
Paints the pixels below the standard title block.
Definition
devices.cpp:152
deluge::gui::menu_item::midi::Devices::selectEncoderAction
void selectEncoderAction(int32_t offset) override
Handle select encoder movement.
Definition
devices.cpp:62
deluge::gui::menu_item::midi::Devices::selectButtonPress
MenuItem * selectButtonPress() override
Handle a select button press.
Definition
devices.cpp:148
deluge::gui::menu_item::midi::Devices::beginSession
void beginSession(MenuItem *navigatedBackwardFrom=nullptr) override
Begin an editing session with this menu item.
Definition
devices.cpp:37