Deluge Firmware
Loading...
Searching...
No Matches
saveinstrumentpresetui.h
Go to the documentation of this file.
1/*
2 * Copyright © 2014-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#ifndef SAVESYNTHPRESETUI_H
19#define SAVESYNTHPRESETUI_H
20#include "SaveUI.h"
21
22class Song;
23class Instrument;
24
25class SaveInstrumentPresetUI final : public SaveUI
26{
27public:
29
30 bool opened();
31 //void selectEncoderAction(int8_t offset);
32 void verticalEncoderAction(int offset, bool encoderButtonPressed, bool shiftButtonPressed) {};
33 void endSession() {};
34 bool performSave(bool mayOverwrite);
35
36 bool renderSidebar(uint32_t whichRows, uint8_t image[][displayWidth + sideBarWidth][3] = NULL, uint8_t occupancyMask[][displayWidth + sideBarWidth] = NULL) { return true; }
37
38protected:
39 //int arrivedInNewFolder(int direction);
40
41};
42
44
45#endif // SAVESYNTHPRESETUI_H
Definition: instrument.h:45
Definition: saveinstrumentpresetui.h:26
void verticalEncoderAction(int offset, bool encoderButtonPressed, bool shiftButtonPressed)
Definition: saveinstrumentpresetui.h:32
bool performSave(bool mayOverwrite)
Definition: saveinstrumentpresetui.cpp:100
bool renderSidebar(uint32_t whichRows, uint8_t image[][displayWidth+sideBarWidth][3]=NULL, uint8_t occupancyMask[][displayWidth+sideBarWidth]=NULL)
Definition: saveinstrumentpresetui.h:36
SaveInstrumentPresetUI()
Definition: saveinstrumentpresetui.cpp:41
bool opened()
Definition: saveinstrumentpresetui.cpp:44
void endSession()
Definition: saveinstrumentpresetui.h:33
Definition: SaveUI.h:24
Definition: song.h:72
#define displayWidth
Definition: definitions.h:176
#define sideBarWidth
Definition: definitions.h:222
SaveInstrumentPresetUI saveInstrumentPresetUI
Definition: saveinstrumentpresetui.cpp:39