22class RenameUI :
public QwertyUI {
24 RenameUI(
const char* title_);
26 void displayText(
bool blinkImmediately =
false)
override;
28 bool getGreyoutColsAndRows(uint32_t* cols, uint32_t* rows)
override;
30 ActionResult buttonAction(deluge::hid::Button b,
bool on,
bool inCardRoutine)
override;
31 ActionResult padAction(int32_t x, int32_t y, int32_t velocity)
override;
32 ActionResult verticalEncoderAction(int32_t offset,
bool inCardRoutine)
override;
33 UIType getUIType()
override {
return UIType::RENAME; }
36 void enterKeyPress()
override;
37 virtual bool trySetName(
String*) = 0;
38 virtual String getName()
const = 0;
39 virtual bool canRename()
const {
return true; }
40 virtual bool allowEmpty()
const {
return true; }