![]() |
Deluge Firmware 1.3.0
Build date: 2025.08.10
|
Public Member Functions | |
Setting (RuntimeFeatureSettingType ty) | |
void | readCurrentValue () override |
Like readValueAgain, but does not redraw. | |
void | writeCurrentValue () override |
deluge::vector< std::string_view > | getOptions (OptType optType) override |
std::string_view | getName () const override |
Get the actual name for use on OLED for deluge::gui::menu_item::Submenu s. | |
std::string_view | getTitle () const override |
Get the title to be used when rendering on OLED, both as a deluge::gui::menu_item::Submenu and when displaying ourselves (using the default renderOLED implementation). | |
Public Member Functions inherited from deluge::gui::menu_item::Selection | |
void | drawValue () override |
void | drawPixelsForOled () override |
Paints the pixels below the standard title block. | |
size_t | size () override |
virtual bool | isToggle () |
void | displayToggleValue () |
void | renderSubmenuItemTypeForOled (int32_t yPixel) override |
void | toggleValue () |
MenuItem * | selectButtonPress () override |
Handle a select button press. | |
bool | getToggleValue () |
uint8_t | shouldDrawDotOnName () override |
Get the "draw dot state". | |
Public Member Functions inherited from deluge::gui::menu_item::Enumeration | |
void | beginSession (MenuItem *navigatedBackwardFrom) override |
Begin an editing session with this menu item. | |
void | selectEncoderAction (int32_t offset) override |
Handle select encoder movement. | |
virtual bool | wrapAround () |
Should this menu wrap around? | |
void | renderInHorizontalMenu (int32_t startX, int32_t width, int32_t startY, int32_t height) override |
Public Member Functions inherited from deluge::gui::menu_item::Value< int32_t > | |
MenuItem () | |
MenuItem (deluge::l10n::String newName, deluge::l10n::String newTitle=deluge::l10n::String::EMPTY_STRING) | |
MenuItem (const MenuItem &other)=delete | |
MenuItem (const MenuItem &&other)=delete | |
void | beginSession (MenuItem *navigatedBackwardFrom) override |
Begin an editing session with this menu item. | |
void | selectEncoderAction (int32_t offset) override |
Handle select encoder movement. | |
void | readValueAgain () override |
Re-read the value from the system and redraw the display to match. | |
bool | selectEncoderActionEditsInstrument () final |
Used by the sound editor to mark the current instrument as edited when the select encoder is scrolled. | |
void | setValue (int32_t value) |
int32_t | getValue () |
Public Member Functions inherited from MenuItem | |
MenuItem (deluge::l10n::String newName, deluge::l10n::String newTitle=deluge::l10n::String::EMPTY_STRING) | |
MenuItem (const MenuItem &other)=delete | |
MenuItem (const MenuItem &&other)=delete | |
MenuItem & | operator= (const MenuItem &other)=delete |
MenuItem & | operator= (const MenuItem &&other)=delete |
virtual ActionResult | buttonAction (deluge::hid::Button b, bool on, bool inCardRoutine) |
Handle an arbitrary button. | |
virtual void | horizontalEncoderAction (int32_t offset) |
Handle horizontal encoder movement. | |
virtual void | verticalEncoderAction (int32_t offset) |
Handle vertical encoder movement. | |
virtual ActionResult | timerCallback () |
Handle a TimerName::UI_SPECIFIC event. | |
virtual bool | usesAffectEntire () |
Claim support for Kit AFFECT_ENTIRE editing. | |
virtual MenuPermission | checkPermissionToBeginSession (ModControllableAudio *modControllable, int32_t whichThing, MultiRange **currentRange) |
Double-check that this MenuItem will work with the currently selected sound range. | |
virtual void | endSession () |
End an editing session with this menu item. | |
virtual uint8_t | getIndexOfPatchedParamToBlink () |
virtual deluge::modulation::params::Kind | getParamKind () |
virtual uint32_t | getParamIndex () |
virtual uint8_t | shouldBlinkPatchingSourceShortcut (PatchSource s, uint8_t *colour) |
virtual MenuItem * | patchingSourceShortcutPress (PatchSource s, bool previousPressStillActive=false) |
Action to take when a source shortcut is pressed. | |
virtual void | learnKnob (MIDICable *cable, int32_t whichKnob, int32_t modKnobMode, int32_t midiChannel) |
virtual bool | allowsLearnMode () |
Used by SoundEditor to determine if the current menu item can accept MIDI learning. | |
virtual bool | learnNoteOn (MIDICable &cable, int32_t channel, int32_t noteCode) |
Attempt to bind this menu item to a note code. | |
virtual void | learnProgramChange (MIDICable &cable, int32_t channel, int32_t programNumber) |
virtual void | learnCC (MIDICable &cable, int32_t channel, int32_t ccNumber, int32_t value) |
virtual bool | shouldBlinkLearnLed () |
virtual void | unlearnAction () |
Unlearn the parameter controlled by this menu. | |
virtual bool | isRangeDependent () |
Returns true if this parameter is only relevant to some note ranges. | |
virtual void | renderOLED () |
Root rendering routine for OLED. | |
virtual void | drawName () |
Draw the name we want to use when selecting this in a deluge::gui::menu_item::Submenu to the 7SEG. | |
virtual bool | isRelevant (ModControllableAudio *modControllable, int32_t whichThing) |
Check if this MenuItem should show up in a containing deluge::gui::menu_item::Submenu. | |
virtual bool | shouldEnterSubmenu () |
Check if selecting this menu item (with select encoder) should enter a submenu. | |
virtual int32_t | getSubmenuItemTypeRenderLength () |
Handle rendering of submenu item types. | |
virtual int32_t | getSubmenuItemTypeRenderIconStart () |
virtual bool | isSubmenu () |
virtual void | setupNumberEditor () |
virtual void | updatePadLights () |
virtual void | updateAutomationViewParameter () |
virtual void | getColumnLabel (StringBuf &label) |
virtual bool | showColumnLabel () const |
Show a label for the parameter in Horizontal menu. | |
virtual int32_t | getColumnSpan () const |
Get the number of occupied virtual columns in Horizontal menu. | |
virtual bool | showNotification () const |
Show a popup with the full name and value of the editing parameter at the top of Horizontal menu. | |
virtual bool | allowToBeginSessionFromHorizontalMenu () |
Allow entering menu session by selecting the menu item twice in Horizontal menu. |
Private Attributes | |
uint32_t | currentSettingIndex |
Friends | |
class | Settings |
Additional Inherited Members | |
Public Types inherited from deluge::gui::menu_item::Selection | |
enum class | OptType { FULL , SHORT } |
static void | drawItemsForOled (std::span< std::string_view > options, int32_t selectedOption, int32_t offset=0) |
Internal helper which can draw the standard deluge::gui::menu_item::Submenu layout. | |
deluge::l10n::String | title |
Can get overridden by getTitle(). Actual max num chars for OLED display is 14. | |
const deluge::l10n::String | name |
Default name for use on OLED for deluge::gui::menu_item::Submenu s. | |
deluge::gui::menu_item::Submenu * | parent {nullptr} |
Protected Member Functions inherited from deluge::gui::menu_item::Selection | |
void | getShortOption (StringBuf &) override |
void | getNotificationValue (StringBuf &) override |
Get the parameter value string to show in the popup. |
|
nodiscardoverridevirtual |
Get the actual name for use on OLED for deluge::gui::menu_item::Submenu s.
By default this is just the l10n string for name, but can be overriden.
Reimplemented from MenuItem.
|
overridevirtual |
Implements deluge::gui::menu_item::Selection.
|
nodiscardoverridevirtual |
Get the title to be used when rendering on OLED, both as a deluge::gui::menu_item::Submenu and when displaying ourselves (using the default renderOLED implementation).
If not overridden, defaults to returning title.
The returned pointer must live long enough for us to draw the title, which for practical purposes means "the lifetime of this menu item"
Reimplemented from MenuItem.
|
overridevirtual |
Like readValueAgain, but does not redraw.
Reimplemented from MenuItem.
|
overridevirtual |
Reimplemented from deluge::gui::menu_item::Value< int32_t >.