Move menu bits to MenuHandler

This commit is contained in:
Jonathan Bennett
2025-06-23 10:00:51 -05:00
parent 30e0972de5
commit 99176a8388
4 changed files with 269 additions and 240 deletions

View File

@@ -201,9 +201,6 @@ class Screen : public concurrency::OSThread
size_t frameCount = 0; // Total number of active frames
~Screen();
enum screenMenus { menu_none, lora_picker, TZ_picker, twelve_hour_picker, clock_menu };
screenMenus menuQueue = menu_none;
// Which frame we want to be displayed, after we regen the frameset by calling setFrames
enum FrameFocus : uint8_t {
FOCUS_DEFAULT, // No specific frame
@@ -604,12 +601,6 @@ class Screen : public concurrency::OSThread
void handleShowNextFrame();
void handleShowPrevFrame();
void handleStartFirmwareUpdateScreen();
void handleMenuSwitch();
void clockMenu();
void TZPicker();
void TwelveHourPicker();
void LoraRegionPicker(uint32_t duration = 30000);
void messageResponseMenu();
// Info collected by setFrames method.
// Index location of specific frames.
@@ -685,5 +676,6 @@ class Screen : public concurrency::OSThread
// Extern declarations for function symbols used in UIRenderer
extern std::vector<std::string> functionSymbol;
extern std::string functionSymbolString;
extern graphics::Screen *screen;
#endif