mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-26 12:40:35 +00:00
* feat(display): enable screen wake on received messages * feat(menu): add Screen Wakeup option in system menu * feat(ui): update wake on message configuration and refactor save logic * feat(TextMessageModule): conditionally trigger screen wake on received message * Refactoring system menu options for notification and screen. * Fix MUI options in the system menu. * Build out Reboot/Shutdown Menu and consolidate options within it * Trunk fixes * Protobuf ref * Revert generated files * Update plumbing for screen_wakeup_menu * Begin work on crafting a method to stop screen wake for received messages * SharedUIDisplay.cpp doesn't need ExternalNotificationModule.h * Stop screen wake if External Notification is enabled * Removing extra log lines * Add role and battery state checks for not waking screen. Menu updates to resolve some Back options not being linked * Resolve some additional merge conflict related issues * Shouldn't throttle the power menu * Finalize renames of some menus * Flip Flop MUI Menu to avoid accidental clicks * NULL check for powerStatus * Remove "Wakeup" eNum * Update src/graphics/Screen.cpp Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * CoPilot was close this should fix the builds --------- Co-authored-by: whywilson <m.tools@qq.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
82 lines
2.2 KiB
C++
82 lines
2.2 KiB
C++
#pragma once
|
|
#if HAS_SCREEN
|
|
#include "configuration.h"
|
|
namespace graphics
|
|
{
|
|
|
|
class menuHandler
|
|
{
|
|
public:
|
|
enum screenMenus {
|
|
menu_none,
|
|
lora_picker,
|
|
TZ_picker,
|
|
twelve_hour_picker,
|
|
clock_face_picker,
|
|
clock_menu,
|
|
position_base_menu,
|
|
gps_toggle_menu,
|
|
compass_point_north_menu,
|
|
reset_node_db_menu,
|
|
buzzermodemenupicker,
|
|
mui_picker,
|
|
tftcolormenupicker,
|
|
brightness_picker,
|
|
reboot_menu,
|
|
shutdown_menu,
|
|
add_favorite,
|
|
remove_favorite,
|
|
test_menu,
|
|
number_test,
|
|
wifi_toggle_menu,
|
|
bluetooth_toggle_menu,
|
|
notifications_menu,
|
|
screen_options_menu,
|
|
power_menu,
|
|
system_base_menu,
|
|
key_verification_init,
|
|
key_verification_final_prompt,
|
|
throttle_message
|
|
};
|
|
static screenMenus menuQueue;
|
|
|
|
static void LoraRegionPicker(uint32_t duration = 30000);
|
|
static void handleMenuSwitch(OLEDDisplay *display);
|
|
static void clockMenu();
|
|
static void TZPicker();
|
|
static void TwelveHourPicker();
|
|
static void ClockFacePicker();
|
|
static void messageResponseMenu();
|
|
static void homeBaseMenu();
|
|
static void systemBaseMenu();
|
|
static void favoriteBaseMenu();
|
|
static void positionBaseMenu();
|
|
static void compassNorthMenu();
|
|
static void GPSToggleMenu();
|
|
static void BuzzerModeMenu();
|
|
static void switchToMUIMenu();
|
|
static void TFTColorPickerMenu(OLEDDisplay *display);
|
|
static void nodeListMenu();
|
|
static void resetNodeDBMenu();
|
|
static void BrightnessPickerMenu();
|
|
static void rebootMenu();
|
|
static void shutdownMenu();
|
|
static void addFavoriteMenu();
|
|
static void removeFavoriteMenu();
|
|
static void testMenu();
|
|
static void numberTest();
|
|
static void wifiBaseMenu();
|
|
static void wifiToggleMenu();
|
|
static void notificationsMenu();
|
|
static void screenOptionsMenu();
|
|
static void powerMenu();
|
|
|
|
private:
|
|
static void saveUIConfig();
|
|
static void keyVerificationInitMenu();
|
|
static void keyVerificationFinalPrompt();
|
|
static void BluetoothToggleMenu();
|
|
};
|
|
|
|
} // namespace graphics
|
|
#endif |