Namespace: DadGUI::cUIMemory Files: cUIMemory.h / cUIMemory.cpp Directory: DAD_FORGE/GUI/Components/ Inheritance:DadGUI::cPanelOfParameterView, DadGUI::iUIComponent Description: Manages the user interface for preset management (Save, Load, Delete).
π Class Description
The cUIMemory class provides an interactive user interface allowing navigation between memory preset slots and selection of an operation (Save, Load, Delete). The class reacts to encoder inputs to trigger read, write, and erase operations of presets in memory via __MemoryManager.
Initializes the component state, allocates graphic layers, and sets the serialization ID.
Parameter(s)
Β
SerializeID
Identifier used for save/restore operations.
Return
void
Activate
Element
Details
Method
void Activate()
Description
Activates the component, brings layers to the foreground (Z-order), and forces initial rendering.
Return
void
Deactivate
Element
Details
Method
void Deactivate()
Description
Deactivates the component and sends layers to the background (Z-order 0).
Return
void
Update
Element
Details
Method
void Update()
Description
Main update loop. Handles encoder inputs, changes states (operation, slot, choice), validates if the action is possible, and executes memory operation if confirmed.
Return
void
Redraw
Element
Details
Method
void Redraw()
Description
Forces a complete redraw of the view if the component is active.
Return
void
setSerializeID
Element
Details
Method
void setSerializeID(uint32_t SerializeID)
Description
Sets the serialization ID used during memory operations.
Parameter(s)
Β
SerializeID
New serialization identifier.
Return
void
π Protected / Private Methods
drawStatLayer
Element
Details
Method
void drawStatLayer()
Description
Draws permanent visual elements (Yes/No button frames, static texts).
Return
void
drawDynLayer
Element
Details
Method
void drawDynLayer()
Description
Draws dynamic elements (operation text, slot number, Yes/No choice highlighting, and help messages).
Return
void
π¦ Data Members (Variables)
Protected / Private Variables
Member
Type
Description
m_isActive
bool
Indicates whether the interface is currently active.
m_MemorySlot
int16_t
Currently selected memory preset slot index.
m_MemChoice
eMemChoice
User selection state (Yes, No, disabled).
m_MemState
eMemState
Selected memory operation (Save, Load, Delete).
m_ActionExec
uint8_t
Flag to prevent multiple executions of the same action on a single press.
m_SerializeID
uint32_t
Serialization ID for operations.
m_pDynMemoryLayer
DadGFX::cLayer*
Pointer to the dynamic rendering layer.
m_pStatMemoryLayer
DadGFX::cLayer*
Pointer to the static rendering layer.
DAD_FORGE/DSP - Dad Design DSP Library Copyright (c) 2024-2026 Dad Design.