Deluge Firmware
Loading...
Searching...
No Matches
loadsongui.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 LOADSONGUI_H
19#define LOADSONGUI_H
20
21#include "LoadUI.h"
22
23
24class LoadSongUI final : public LoadUI
25{
26public:
27 LoadSongUI();
28 int buttonAction(int x, int y, bool on, bool inCardRoutine);
29 int timerCallback();
30 int verticalEncoderAction(int offset, bool inCardRoutine);
32 void scrollFinished();
33 int padAction(int x, int y, int velocity);
34 bool opened();
35 void selectEncoderAction(int8_t offset);
36 void performLoad();
38
40
41protected:
42 void displayText(bool blinkImmediately = false);
43 void enterKeyPress();
44 void folderContentsReady(int entryDirection);
45 void currentFileChanged(int movementDirection);
46 void exitAction();
47
48private:
49 void drawSongPreview(bool toStore = true);
50#if HAVE_OLED
51 void displayArmedPopup();
52#endif
53
54 uint8_t squaresScrolled;
55 int8_t scrollDirection;
56 bool scrollingToNothing;
57 bool scrollingIntoSlot;
58 //int findNextFile(int offset);
59 void exitThisUI();
60 void exitActionWithError();
61
62
63};
65
66#endif // LOADSONGUI_H
Definition: loadsongui.h:25
void graphicsRoutine()
Definition: loadsongui.h:31
void scrollFinished()
Definition: loadsongui.cpp:508
void selectEncoderAction(int8_t offset)
Definition: loadsongui.cpp:614
int padAction(int x, int y, int velocity)
Definition: loadsongui.cpp:812
void enterKeyPress()
Definition: loadsongui.cpp:150
int verticalEncoderAction(int offset, bool inCardRoutine)
Definition: loadsongui.cpp:675
void currentFileChanged(int movementDirection)
Definition: loadsongui.cpp:589
bool deletedPartsOfOldSong
Definition: loadsongui.h:39
bool opened()
Definition: loadsongui.cpp:71
void performLoad()
Definition: loadsongui.cpp:231
void displayText(bool blinkImmediately=false)
Definition: loadsongui.cpp:792
int buttonAction(int x, int y, bool on, bool inCardRoutine)
Definition: loadsongui.cpp:190
int timerCallback()
Definition: loadsongui.cpp:442
LoadSongUI()
Definition: loadsongui.cpp:62
void folderContentsReady(int entryDirection)
Definition: loadsongui.cpp:140
void displayLoopsRemainingPopup()
void exitAction()
Definition: loadsongui.cpp:686
Definition: LoadUI.h:24
LoadSongUI loadSongUI
Definition: loadsongui.cpp:47