Deluge Firmware 1.4.0
Build date: 2026.11.30
Loading...
Searching...
No Matches
deluge::gui::SampleBrowser Class Referencefinal
Inheritance diagram for deluge::gui::SampleBrowser:
Collaboration diagram for deluge::gui::SampleBrowser:

Public Member Functions

bool getGreyoutColsAndRows (uint32_t *cols, uint32_t *rows) override
bool opened () override
void focusRegained () override
ActionResult buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) override
ActionResult verticalEncoderAction (int32_t offset, bool inCardRoutine) override
ActionResult horizontalEncoderAction (int32_t offset) override
ActionResult padAction (int32_t x, int32_t y, int32_t velocity) override
bool canSeeViewUnderneath () override
Error claimAudioFileForInstrument (bool makeWaveTableWorkAtAllCosts=false)
Error claimAudioFileForAudioClip ()
void scrollFinished () override
bool importFolderAsKit ()
bool importFolderAsMultisamples ()
ActionResult timerCallback () override
bool claimCurrentFile (int32_t mayDoPitchDetection=1, int32_t mayDoSingleCycle=1, int32_t mayDoWaveTable=1, bool loadWithoutExiting=false)
bool renderMainPads (uint32_t whichRows, RGB image[][kDisplayWidth+kSideBarWidth], uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth], bool drawUndefinedArea=true) override
void exitAndNeverDeleteDrum ()
void clearMenuHeadingTo ()
UIType getUIType () override
 What type of UI is this? e.g. UIType::ARRANGER.
bool canDisplayFavourites () override
Public Member Functions inherited from deluge::gui::Browser
void close ()
void currentFileDeleted ()
Error goIntoFolder (char const *folderName)
Error createFolder ()
Error createFoldersRecursiveIfNotExists (const char *path)
void selectEncoderAction (int8_t offset) override
Error readFileItemsForFolder (char const *filePrefixHere, bool allowFolders, char const **allowedFileExtensionsHere, char const *filenameToStartAt, int32_t newMaxNumFileItems, int32_t newCatalogSearchDirection=CATALOG_SEARCH_BOTH)
Error setFileByFullPath (OutputType outputType, char const *fullPath)
void sortFileItems ()
FileItem * getNewFileItem ()
Error getUnusedSlot (OutputType outputType, String *newName, char const *thingName)
void cullSomeFileItems ()
bool checkFP ()
void renderOLED (deluge::hid::display::oled_canvas::Canvas &canvas) override
ActionResult exitUI () override
 returns whether a UI exited
bool isFavouritesVisible () override
bool isBanksVisible () override
Public Member Functions inherited from deluge::gui::UI
virtual void modEncoderAction (int32_t whichModEncoder, int32_t offset)
virtual void modButtonAction (uint8_t whichButton, bool on)
virtual void modEncoderButtonAction (uint8_t whichModEncoder, bool on)
virtual void graphicsRoutine ()
virtual void displayOrLanguageChanged ()
virtual ClipMinder * toClipMinder ()
virtual TimelineView * toTimelineView ()
 Convert this view to a TimelineView.
virtual bool pcReceivedForMidiLearn (MIDICable &fromCable, int32_t channel, int32_t program)
virtual bool noteOnReceivedForMidiLearn (MIDICable &fromCable, int32_t channel, int32_t note, int32_t velocity)
virtual bool renderSidebar (uint32_t whichRows=0, RGB image[][kDisplayWidth+kSideBarWidth]=nullptr, uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth]=nullptr)
void close ()
virtual UI * getUI ()
 When entering a UI (e.g. automationView), you may wish to open a different UI based on the current context (e.g. automationViewArranger, automationViewAudioClip, etc.).
virtual UIType getUIContextType ()
 What context does UI relate to? e.g. UIType could be AUTOMATION but UIContextType could be ARRANGER, AUDIO CLIP, INSTRUMENT CLIP.
virtual UIModControllableContext getUIModControllableContext ()
 What mod controllable context is this UI using? E.g. Automation View can use the Song ModControllable when in Arranger but the Clip ModControllable when in a Clip.

Public Attributes

String lastFilePathLoaded
deluge::gui::menu_item::HorizontalMenu * parentMenuHeadingTo {nullptr}
MenuItem * menuItemHeadingTo {nullptr}
Public Attributes inherited from deluge::gui::UI
bool oledShowsUIUnderneath

Protected Member Functions

void enterKeyPress () override
void exitAction () override
ActionResult backButtonAction () override
void folderContentsReady (int32_t entryDirection) override
void currentFileChanged (int32_t movementDirection) override
Protected Member Functions inherited from deluge::gui::Browser
Error setEnteredTextFromCurrentFilename ()
Error goUpOneDirectoryLevel ()
virtual Error arrivedInNewFolder (int32_t direction, char const *filenameToStartAt=nullptr, char const *defaultDir=nullptr)
bool predictExtendedText () override
void goIntoDeleteFileContextMenu ()
ActionResult mainButtonAction (bool on)
void displayText (bool blinkImmediately=false) override
void clampFileSelectionAndScroll (bool allowNoFileSelection=true)
char const * nameAfterPrefix (char const *name) const
Error readFileItemsFromFolderAndMemory (Song *song, OutputType outputType, char const *filePrefixHere, char const *filenameToStartAt, char const *defaultDirToAlsoTry, bool allowFoldersint, Availability availabilityRequirement=Availability::ANY, int32_t newCatalogSearchDirection=CATALOG_SEARCH_RIGHT)
void favouritesChanged ()
Protected Member Functions inherited from deluge::gui::QwertyUI
void drawKeys ()
virtual void processBackspace ()
void drawTextForOLEDEditing (int32_t textStartX, int32_t xPixelMax, int32_t yPixel, int32_t maxChars, deluge::hid::display::oled_canvas::Canvas &canvas)
void renderFavourites ()

Private Member Functions

void displayCurrentFilename ()
void previewIfPossible (int32_t movementDirection=1)
void audioFileIsNowSet ()
bool canImportWholeKit ()
bool loadAllSamplesInFolder (bool detectPitch, int32_t *getNumSamples, Sample ***getSortArea, bool *getDoingSingleCycle=nullptr, int32_t *getNumCharsInPrefix=nullptr)
Error getCurrentFilePath (String *path) override
void drawKeysOverWaveform ()
void autoDetectSideChainSending (SoundDrum *drum, Source *source, char const *fileName)
void possiblySetUpBlinking ()

Private Attributes

bool autoLoadEnabled
bool currentlyShowingSamplePreview
bool qwertyCurrentlyDrawnOnscreen

Additional Inherited Members

Static Public Member Functions inherited from deluge::gui::Browser
static FileItem * getCurrentFileItem ()
static void forgetOutput (Output const *output)
 Clears FileItems' pointers to an Output that is about to be freed.
static void emptyFileItems ()
static void deleteSomeFileItems (int32_t startAt, int32_t stopAt)
static void deleteFolderAndDuplicateItems (Availability instrumentAvailabilityRequirement=Availability::ANY)
static Error surveyNameVariations (char const *stem, String *highestNumbered, uint32_t *takenLetters)
 Surveys currentDir in one pass for the existing variations of a name.
static bool fileItemsAreComplete ()
 Whether fileItems holds every file the folder listed, rather than a culled window of them.
Static Public Attributes inherited from deluge::gui::Browser
static String currentDir {}
static CStringArray fileItems {sizeof(FileItem)}
static int32_t numFileItemsDeletedAtStart
static int32_t numFileItemsDeletedAtEnd
static String firstFileItemRemaining {}
static String lastFileItemRemaining {}
static OutputType outputTypeToLoad
static char const * filenameToStartSearchAt
Static Public Attributes inherited from deluge::gui::QwertyUI
static bool predictionInterrupted
static String enteredText {}
Static Protected Member Functions inherited from deluge::gui::Browser
static Slot getSlot (char const *displayName)
Protected Attributes inherited from deluge::gui::Browser
const uint8_t * fileIcon
const uint8_t * fileIconPt2
int32_t fileIconPt2Width
bool shouldWrapFolderContents
bool mayDefaultToBrandNewNameOnEntry
bool qwertyAlwaysVisible
char const * filePrefix
bool shouldInterpretNoteNamesForThisBrowser
Protected Attributes inherited from deluge::gui::QwertyUI
char const * title
Protected Attributes inherited from deluge::gui::UI
UIType uiType
Static Protected Attributes inherited from deluge::gui::Browser
static int32_t fileIndexSelected
static int32_t scrollPosVertical
static int32_t numCharsInPrefix
static bool qwertyVisible
static bool arrivedAtFileByTyping
static bool allowFoldersSharingNameWithFile
static char const ** allowedFileExtensions
static int8_t numberEditPos
static NumericLayerScrollingText * scrollingText
Static Protected Attributes inherited from deluge::gui::QwertyUI
static uint8_t favouriteRow = 6
static constexpr uint8_t favouriteBankRow = 7
static int16_t enteredTextEditPos
static int32_t scrollPosHorizontal

Member Function Documentation

◆ backButtonAction()

ActionResult deluge::gui::SampleBrowser::backButtonAction ( )
overrideprotectedvirtual

Reimplemented from deluge::gui::Browser.

◆ buttonAction()

ActionResult deluge::gui::SampleBrowser::buttonAction ( deluge::hid::Button b,
bool on,
bool inCardRoutine )
overridevirtual

Reimplemented from deluge::gui::Browser.

◆ canDisplayFavourites()

bool deluge::gui::SampleBrowser::canDisplayFavourites ( )
inlineoverridevirtual

Reimplemented from deluge::gui::UI.

◆ canSeeViewUnderneath()

bool deluge::gui::SampleBrowser::canSeeViewUnderneath ( )
overridevirtual

Reimplemented from deluge::gui::UI.

◆ currentFileChanged()

void deluge::gui::SampleBrowser::currentFileChanged ( int32_t movementDirection)
overrideprotectedvirtual

Reimplemented from deluge::gui::Browser.

◆ enterKeyPress()

void deluge::gui::SampleBrowser::enterKeyPress ( )
overrideprotectedvirtual

Implements deluge::gui::QwertyUI.

◆ exitAction()

void deluge::gui::SampleBrowser::exitAction ( )
overrideprotectedvirtual

Reimplemented from deluge::gui::Browser.

◆ focusRegained()

void deluge::gui::SampleBrowser::focusRegained ( )
overridevirtual

Reimplemented from deluge::gui::UI.

◆ folderContentsReady()

void deluge::gui::SampleBrowser::folderContentsReady ( int32_t entryDirection)
overrideprotectedvirtual

Reimplemented from deluge::gui::Browser.

◆ getCurrentFilePath()

Error deluge::gui::SampleBrowser::getCurrentFilePath ( String * path)
overrideprivatevirtual

Implements deluge::gui::Browser.

◆ getGreyoutColsAndRows()

bool deluge::gui::SampleBrowser::getGreyoutColsAndRows ( uint32_t * cols,
uint32_t * rows )
overridevirtual

Reimplemented from deluge::gui::UI.

◆ getUIType()

UIType deluge::gui::SampleBrowser::getUIType ( )
inlineoverridevirtual

What type of UI is this? e.g. UIType::ARRANGER.

Implements deluge::gui::UI.

◆ horizontalEncoderAction()

ActionResult deluge::gui::SampleBrowser::horizontalEncoderAction ( int32_t offset)
overridevirtual

Reimplemented from deluge::gui::QwertyUI.

◆ opened()

bool deluge::gui::SampleBrowser::opened ( )
overridevirtual

Reimplemented from deluge::gui::Browser.

◆ padAction()

ActionResult deluge::gui::SampleBrowser::padAction ( int32_t x,
int32_t y,
int32_t velocity )
overridevirtual

Reimplemented from deluge::gui::Browser.

◆ renderMainPads()

bool deluge::gui::SampleBrowser::renderMainPads ( uint32_t whichRows,
RGB image[][kDisplayWidth+kSideBarWidth],
uint8_t occupancyMask[][kDisplayWidth+kSideBarWidth],
bool drawUndefinedArea = true )
overridevirtual

Reimplemented from deluge::gui::QwertyUI.

◆ scrollFinished()

void deluge::gui::SampleBrowser::scrollFinished ( )
overridevirtual

Reimplemented from deluge::gui::UI.

◆ timerCallback()

ActionResult deluge::gui::SampleBrowser::timerCallback ( )
overridevirtual

Reimplemented from deluge::gui::QwertyUI.

◆ verticalEncoderAction()

ActionResult deluge::gui::SampleBrowser::verticalEncoderAction ( int32_t offset,
bool inCardRoutine )
overridevirtual

Reimplemented from deluge::gui::Browser.


The documentation for this class was generated from the following files:
  • src/deluge/gui/ui/browser/sample_browser.h
  • src/deluge/gui/ui/browser/sample_browser.cpp