Deluge Firmware
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
SampleBrowser Class Referencefinal

#include <samplebrowser.h>

Inheritance diagram for SampleBrowser:
Inheritance graph
Collaboration diagram for SampleBrowser:
Collaboration graph

Public Member Functions

 SampleBrowser ()
 
bool getGreyoutRowsAndCols (uint32_t *cols, uint32_t *rows)
 
bool opened ()
 
void focusRegained ()
 
int buttonAction (int x, int y, bool on, bool inCardRoutine)
 
int verticalEncoderAction (int offset, bool inCardRoutine)
 
int horizontalEncoderAction (int offset)
 
int padAction (int x, int y, int velocity)
 
bool canSeeViewUnderneath ()
 
int claimAudioFileForInstrument (bool makeWaveTableWorkAtAllCosts=false)
 
int claimAudioFileForAudioClip ()
 
void scrollFinished ()
 
bool importFolderAsKit ()
 
bool importFolderAsMultisamples ()
 
int timerCallback ()
 
bool claimCurrentFile (int mayDoPitchDetection=1, int mayDoSingleCycle=1, int mayDoWaveTable=1)
 
bool renderMainPads (uint32_t whichRows, uint8_t image[][displayWidth+sideBarWidth][3], uint8_t occupancyMask[][displayWidth+sideBarWidth], bool drawUndefinedArea=true)
 
void exitAndNeverDeleteDrum ()
 
- 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 ()
 

Public Attributes

String lastFilePathLoaded
 

Protected Member Functions

void enterKeyPress ()
 
void exitAction ()
 
int backButtonAction ()
 
void folderContentsReady (int entryDirection)
 
void currentFileChanged (int movementDirection)
 
- 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)
 

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)
 
- Protected Attributes inherited from Browser
bool shouldWrapFolderContents
 
bool allowBrandNewNames
 
bool qwertyAlwaysVisible
 
char const * filePrefix
 
- 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
 

Constructor & Destructor Documentation

◆ SampleBrowser()

SampleBrowser::SampleBrowser ( )

Member Function Documentation

◆ backButtonAction()

int SampleBrowser::backButtonAction ( )
protectedvirtual

Reimplemented from Browser.

◆ buttonAction()

int SampleBrowser::buttonAction ( int  x,
int  y,
bool  on,
bool  inCardRoutine 
)
virtual

Reimplemented from Browser.

◆ canSeeViewUnderneath()

bool SampleBrowser::canSeeViewUnderneath ( )
virtual

Reimplemented from UI.

◆ claimAudioFileForAudioClip()

int SampleBrowser::claimAudioFileForAudioClip ( )

◆ claimAudioFileForInstrument()

int SampleBrowser::claimAudioFileForInstrument ( bool  makeWaveTableWorkAtAllCosts = false)

◆ claimCurrentFile()

bool SampleBrowser::claimCurrentFile ( int  mayDoPitchDetection = 1,
int  mayDoSingleCycle = 1,
int  mayDoWaveTable = 1 
)

◆ currentFileChanged()

void SampleBrowser::currentFileChanged ( int  movementDirection)
protectedvirtual

Reimplemented from Browser.

◆ enterKeyPress()

void SampleBrowser::enterKeyPress ( )
protectedvirtual

Implements QwertyUI.

◆ exitAction()

void SampleBrowser::exitAction ( )
protectedvirtual

Reimplemented from Browser.

◆ exitAndNeverDeleteDrum()

void SampleBrowser::exitAndNeverDeleteDrum ( )

◆ focusRegained()

void SampleBrowser::focusRegained ( )
virtual

Reimplemented from UI.

◆ folderContentsReady()

void SampleBrowser::folderContentsReady ( int  entryDirection)
protectedvirtual

Reimplemented from Browser.

◆ getGreyoutRowsAndCols()

bool SampleBrowser::getGreyoutRowsAndCols ( uint32_t *  cols,
uint32_t *  rows 
)
virtual

Reimplemented from UI.

◆ horizontalEncoderAction()

int SampleBrowser::horizontalEncoderAction ( int  offset)
virtual

Reimplemented from QwertyUI.

◆ importFolderAsKit()

bool SampleBrowser::importFolderAsKit ( )

◆ importFolderAsMultisamples()

bool SampleBrowser::importFolderAsMultisamples ( )

◆ opened()

bool SampleBrowser::opened ( )
virtual

Reimplemented from Browser.

◆ padAction()

int SampleBrowser::padAction ( int  x,
int  y,
int  velocity 
)
virtual

Reimplemented from QwertyUI.

◆ renderMainPads()

bool SampleBrowser::renderMainPads ( uint32_t  whichRows,
uint8_t  image[][displayWidth+sideBarWidth][3],
uint8_t  occupancyMask[][displayWidth+sideBarWidth],
bool  drawUndefinedArea = true 
)
virtual

Reimplemented from QwertyUI.

◆ scrollFinished()

void SampleBrowser::scrollFinished ( )
virtual

Reimplemented from UI.

◆ timerCallback()

int SampleBrowser::timerCallback ( )
virtual

Reimplemented from QwertyUI.

◆ verticalEncoderAction()

int SampleBrowser::verticalEncoderAction ( int  offset,
bool  inCardRoutine 
)
virtual

Reimplemented from UI.

Member Data Documentation

◆ lastFilePathLoaded

String SampleBrowser::lastFilePathLoaded

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