66class Browser :
public QwertyUI {
71 virtual Error getCurrentFilePath(
String* path) = 0;
72 ActionResult buttonAction(deluge::hid::Button b,
bool on,
bool inCardRoutine)
override;
73 ActionResult padAction(int32_t x, int32_t y, int32_t velocity)
override;
74 ActionResult verticalEncoderAction(int32_t offset,
bool inCardRoutine)
override;
75 void currentFileDeleted();
76 Error goIntoFolder(
char const* folderName);
78 Error createFoldersRecursiveIfNotExists(
const char* path);
79 void selectEncoderAction(int8_t offset)
override;
80 static FileItem* getCurrentFileItem();
83 Error readFileItemsForFolder(
char const* filePrefixHere,
bool allowFolders,
char const** allowedFileExtensionsHere,
84 char const* filenameToStartAt, int32_t newMaxNumFileItems,
85 int32_t newCatalogSearchDirection = CATALOG_SEARCH_BOTH);
86 Error setFileByFullPath(OutputType outputType,
char const* fullPath);
89 static void emptyFileItems();
90 static void deleteSomeFileItems(int32_t startAt, int32_t stopAt);
91 static void deleteFolderAndDuplicateItems(Availability instrumentAvailabilityRequirement = Availability::ANY);
92 Error getUnusedSlot(OutputType outputType,
String* newName,
char const* thingName);
114 bool opened()
override;
115 void cullSomeFileItems();
122 static int32_t numFileItemsDeletedAtStart;
123 static int32_t numFileItemsDeletedAtEnd;
128 static String firstFileItemRemaining;
129 static String lastFileItemRemaining;
131 static OutputType outputTypeToLoad;
132 static char const* filenameToStartSearchAt;
137 return ActionResult::ACTIONED_AND_CAUSED_CHANGE;
139 bool isFavouritesVisible()
override;
140 bool isBanksVisible()
override;
143 Error setEnteredTextFromCurrentFilename();
144 Error goUpOneDirectoryLevel();
145 virtual Error arrivedInNewFolder(int32_t direction,
char const* filenameToStartAt =
nullptr,
146 char const* defaultDir =
nullptr);
147 bool predictExtendedText()
override;
148 void goIntoDeleteFileContextMenu();
149 ActionResult mainButtonAction(
bool on);
150 virtual void exitAction();
151 virtual ActionResult backButtonAction();
152 virtual void folderContentsReady(int32_t entryDirection) {}
153 virtual void currentFileChanged(int32_t movementDirection) {}
154 void displayText(
bool blinkImmediately =
false)
override;
156 void clampFileSelectionAndScroll(
bool allowNoFileSelection =
true);
157 static Slot getSlot(
char const* displayName);
161 Error readFileItemsFromFolderAndMemory(Song* song, OutputType outputType,
char const* filePrefixHere,
162 char const* filenameToStartAt,
char const* defaultDirToAlsoTry,
163 bool allowFoldersint,
164 Availability availabilityRequirement = Availability::ANY,
165 int32_t newCatalogSearchDirection = CATALOG_SEARCH_RIGHT);
166 void favouritesChanged();
168 static int32_t fileIndexSelected;
170 static int32_t scrollPosVertical;
173 static bool qwertyVisible;
174 static bool arrivedAtFileByTyping;
175 static bool allowFoldersSharingNameWithFile;
176 static char const** allowedFileExtensions;
178 const uint8_t* fileIcon;
179 const uint8_t* fileIconPt2;
180 int32_t fileIconPt2Width;
183 static int8_t numberEditPos;
184 static NumericLayerScrollingText* scrollingText;
185 bool shouldWrapFolderContents;
187 bool mayDefaultToBrandNewNameOnEntry;
188 bool qwertyAlwaysVisible;
190 char const* filePrefix;
191 bool shouldInterpretNoteNamesForThisBrowser;
static Error surveyNameVariations(char const *stem, String *highestNumbered, uint32_t *takenLetters)
Surveys currentDir in one pass for the existing variations of a name.
Definition browser.cpp:864