Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SlotBrowser Class Reference

#include <SlotBrowser.h>

Inheritance diagram for SlotBrowser:
Inheritance graph
Collaboration diagram for SlotBrowser:
Collaboration graph

Public Member Functions

 SlotBrowser ()
 
void focusRegained ()
 
int horizontalEncoderAction (int offset)
 
int getCurrentFilePath (String *path)
 
- Public Member Functions inherited from Browser
 Browser ()
 
void close ()
 
virtual int getCurrentFilePath (String *path)=0
 
int buttonAction (int x, int y, bool on, bool inCardRoutine)
 
void currentFileDeleted ()
 
int goIntoFolder (char const *folderName)
 
int createFolder ()
 
void selectEncoderAction (int8_t offset)
 
bool opened ()
 
- Public Member Functions inherited from QwertyUI
 QwertyUI ()
 
int padAction (int x, int y, int velocity)
 
int horizontalEncoderAction (int offset)
 
int timerCallback ()
 
bool renderMainPads (uint32_t whichRows, uint8_t image[][displayWidth+sideBarWidth][3]=NULL, uint8_t occupancyMask[][displayWidth+sideBarWidth]=NULL, bool drawUndefinedArea=true)
 
- Public Member Functions inherited from UI
 UI ()
 
virtual int padAction (int x, int y, int velocity)
 
virtual int buttonAction (int x, int y, bool on, bool inCardRoutine)
 
virtual int horizontalEncoderAction (int offset)
 
virtual int verticalEncoderAction (int offset, bool inCardRoutine)
 
virtual void selectEncoderAction (int8_t offset)
 
virtual void modEncoderAction (int whichModEncoder, int offset)
 
virtual void modButtonAction (uint8_t whichButton, bool on)
 
virtual void modEncoderButtonAction (uint8_t whichModEncoder, bool on)
 
virtual void graphicsRoutine ()
 
virtual int timerCallback ()
 
virtual bool opened ()
 
virtual void focusRegained ()
 
virtual bool canSeeViewUnderneath ()
 
virtual ClipMindertoClipMinder ()
 
virtual void scrollFinished ()
 
virtual bool noteOnReceivedForMidiLearn (MIDIDevice *fromDevice, int channel, int note, int velocity)
 
virtual bool getGreyoutRowsAndCols (uint32_t *cols, uint32_t *rows)
 
virtual bool renderMainPads (uint32_t whichRows=0, uint8_t image[][displayWidth+sideBarWidth][3]=NULL, uint8_t occupancyMask[][displayWidth+sideBarWidth]=NULL, bool drawUndefinedArea=true)
 
virtual bool renderSidebar (uint32_t whichRows=0, uint8_t image[][displayWidth+sideBarWidth][3]=NULL, uint8_t occupancyMask[][displayWidth+sideBarWidth]=NULL)
 
void close ()
 

Protected Member Functions

int beginSlotSession (bool shouldDrawKeys=true, bool allowIfNoFolder=false)
 
void processBackspace ()
 
virtual void predictExtendedTextFromMemory ()
 
void convertToPrefixFormatIfPossible ()
 
void enterKeyPress ()
 
int getCurrentFilenameWithoutExtension (String *filename)
 
- Protected Member Functions inherited from Browser
int setEnteredTextFromCurrentFilename ()
 
int goUpOneDirectoryLevel ()
 
virtual int arrivedInNewFolder (int direction, char const *filenameToStartAt=NULL, char const *defaultDir=NULL)
 
bool predictExtendedText ()
 
void goIntoDeleteFileContextMenu ()
 
int mainButtonAction (bool on)
 
virtual void exitAction ()
 
virtual int backButtonAction ()
 
virtual void folderContentsReady (int entryDirection)
 
virtual void currentFileChanged (int movementDirection)
 
void displayText (bool blinkImmediately=false)
 
- Protected Member Functions inherited from QwertyUI
bool opened ()
 
virtual bool predictExtendedText ()
 
void drawKeys ()
 
virtual void processBackspace ()
 
virtual void enterKeyPress ()=0
 
virtual void displayText (bool blinkImmediately=false)
 

Protected Attributes

InstrumentcurrentInstrument
 
- Protected Attributes inherited from Browser
bool shouldWrapFolderContents
 
bool allowBrandNewNames
 
bool qwertyAlwaysVisible
 
char const * filePrefix
 

Static Protected Attributes

static bool currentFileHasSuffixFormatNameImplied
 
- Static Protected Attributes inherited from Browser
static int fileIndexSelected
 
static int scrollPosVertical
 
static int numCharsInPrefix
 
static bool qwertyVisible
 
static bool arrivedAtFileByTyping
 
static bool allowFoldersSharingNameWithFile
 
static char const ** allowedFileExtensions
 
static int8_t numberEditPos
 
static NumericLayerScrollingTextscrollingText
 
- Static Protected Attributes inherited from QwertyUI
static int16_t enteredTextEditPos
 
static int scrollPosHorizontal
 

Additional Inherited Members

- Static Public Member Functions inherited from Browser
static FileItemgetCurrentFileItem ()
 
static int readFileItemsForFolder (char const *filePrefixHere, bool allowFolders, char const **allowedFileExtensionsHere, char const *filenameToStartAt, int newMaxNumFileItems, int newCatalogSearchDirection=CATALOG_SEARCH_BOTH)
 
static void sortFileItems ()
 
static FileItemgetNewFileItem ()
 
static void emptyFileItems ()
 
static void deleteSomeFileItems (int startAt, int stopAt)
 
static void deleteFolderAndDuplicateItems (int instrumentAvailabilityRequirement=AVAILABILITY_ANY)
 
static PresetNavigationResult doPresetNavigation (int offset, Instrument *oldInstrument, int availabilityRequirement, bool doBlink)
 
static int getUnusedSlot (int instrumentType, String *newName, char const *thingName)
 
static ReturnOfConfirmPresetOrNextUnlaunchedOne confirmPresetOrNextUnlaunchedOne (int instrumentType, String *searchName, int availabilityRequirement)
 
static ReturnOfConfirmPresetOrNextUnlaunchedOne findAnUnlaunchedPresetIncludingWithinSubfolders (Song *song, int instrumentType, int availabilityRequirement)
 
static void cullSomeFileItems ()
 
- Static Public Attributes inherited from Browser
static String currentDir
 
static CStringArray fileItems
 
static int numFileItemsDeletedAtStart
 
static int numFileItemsDeletedAtEnd
 
static char const * firstFileItemRemaining
 
static char const * lastFileItemRemaining
 
static int instrumentTypeToLoad
 
static char const * filenameToStartSearchAt
 
- Static Public Attributes inherited from QwertyUI
static bool predictionInterrupted
 
static String enteredText
 
- Static Protected Member Functions inherited from Browser
static Slot getSlot (char const *displayName)
 
static int readFileItemsFromFolderAndMemory (Song *song, int instrumentType, char const *filePrefixHere, char const *filenameToStartAt, char const *defaultDirToAlsoTry, bool allowFoldersint, int availabilityRequirement=AVAILABILITY_ANY, int newCatalogSearchDirection=CATALOG_SEARCH_RIGHT)
 

Constructor & Destructor Documentation

◆ SlotBrowser()

SlotBrowser::SlotBrowser ( )

Member Function Documentation

◆ beginSlotSession()

int SlotBrowser::beginSlotSession ( bool  shouldDrawKeys = true,
bool  allowIfNoFolder = false 
)
protected

◆ convertToPrefixFormatIfPossible()

void SlotBrowser::convertToPrefixFormatIfPossible ( )
protected

◆ enterKeyPress()

void SlotBrowser::enterKeyPress ( )
protectedvirtual

Implements QwertyUI.

◆ focusRegained()

void SlotBrowser::focusRegained ( )
virtual

Reimplemented from UI.

◆ getCurrentFilenameWithoutExtension()

int SlotBrowser::getCurrentFilenameWithoutExtension ( String filename)
protected

◆ getCurrentFilePath()

int SlotBrowser::getCurrentFilePath ( String path)
virtual

Implements Browser.

◆ horizontalEncoderAction()

int SlotBrowser::horizontalEncoderAction ( int  offset)
virtual

Reimplemented from QwertyUI.

◆ predictExtendedTextFromMemory()

virtual void SlotBrowser::predictExtendedTextFromMemory ( )
inlineprotectedvirtual

◆ processBackspace()

void SlotBrowser::processBackspace ( )
protectedvirtual

Reimplemented from QwertyUI.

Member Data Documentation

◆ currentFileHasSuffixFormatNameImplied

bool SlotBrowser::currentFileHasSuffixFormatNameImplied
staticprotected

◆ currentInstrument

Instrument* SlotBrowser::currentInstrument
protected

The documentation for this class was generated from the following files: