2021-09-28 09:40:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/gui.h>
|
2022-02-10 18:17:41 +00:00
|
|
|
#include <gui/modules/popup.h>
|
2021-09-28 09:40:39 +00:00
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/scene_manager.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
|
|
|
|
|
|
|
#include "desktop_settings.h"
|
2022-02-10 18:17:41 +00:00
|
|
|
#include "desktop/views/desktop_view_pin_input.h"
|
|
|
|
#include "views/desktop_settings_view_pin_setup_howto.h"
|
|
|
|
#include "views/desktop_settings_view_pin_setup_howto2.h"
|
2021-10-26 18:34:31 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DesktopSettingsAppViewMenu,
|
2022-02-10 18:17:41 +00:00
|
|
|
DesktopSettingsAppViewIdPopup,
|
|
|
|
DesktopSettingsAppViewIdPinInput,
|
|
|
|
DesktopSettingsAppViewIdPinSetupHowto,
|
|
|
|
DesktopSettingsAppViewIdPinSetupHowto2,
|
2021-09-28 09:40:39 +00:00
|
|
|
} DesktopSettingsAppView;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
DesktopSettings settings;
|
2021-10-26 18:34:31 +00:00
|
|
|
|
2021-09-28 09:40:39 +00:00
|
|
|
Gui* gui;
|
|
|
|
SceneManager* scene_manager;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
Submenu* submenu;
|
2022-02-10 18:17:41 +00:00
|
|
|
Popup* popup;
|
|
|
|
DesktopViewPinInput* pin_input_view;
|
|
|
|
DesktopSettingsViewPinSetupHowto* pin_setup_howto_view;
|
|
|
|
DesktopSettingsViewPinSetupHowto2* pin_setup_howto2_view;
|
|
|
|
|
|
|
|
PinCode pincode_buffer;
|
|
|
|
bool pincode_buffer_filled;
|
2021-10-26 18:34:31 +00:00
|
|
|
|
|
|
|
uint8_t menu_idx;
|
2021-09-28 09:40:39 +00:00
|
|
|
|
|
|
|
} DesktopSettingsApp;
|