ServiceMenu: afegit polimorfisme per a les diferents opcions del menu

This commit is contained in:
2025-06-16 19:41:14 +02:00
parent 303c0e9168
commit 7e727cea7b
3 changed files with 198 additions and 292 deletions

View File

@@ -51,6 +51,12 @@ public:
void setResizeAnimationSteps(int steps) { resize_anim_steps_ = steps; }
private:
// Definición de las constantes estáticas
static constexpr const char *MENU_SOUND_ = "clock.wav";
static constexpr size_t OPTIONS_HORIZONTAL_PADDING_ = 20;
static constexpr size_t MIN_WIDTH_ = 220;
static constexpr size_t MIN_GAP_OPTION_VALUE_ = 20;
// --- Tipos internos ---
using OptionPairs = std::vector<std::pair<std::string, std::string>>;