2021-09-28 12:40:39 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <gui/gui.h>
|
2022-02-10 21:17:41 +03:00
|
|
|
#include <gui/modules/popup.h>
|
2021-09-28 12:40:39 +03:00
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/scene_manager.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
2022-04-14 15:20:41 +03:00
|
|
|
#include <gui/modules/variable_item_list.h>
|
2024-09-07 14:54:23 +03:00
|
|
|
#include <gui/modules/dialog_ex.h>
|
2022-10-13 21:09:37 +03:00
|
|
|
#include <dialogs/dialogs.h>
|
2022-10-28 17:08:50 +03:00
|
|
|
#include <assets_icons.h>
|
2021-09-28 12:40:39 +03:00
|
|
|
|
2022-09-14 19:11:38 +03:00
|
|
|
#include <desktop/desktop_settings.h>
|
|
|
|
#include <desktop/views/desktop_view_pin_input.h>
|
2022-02-10 21:17:41 +03:00
|
|
|
#include "views/desktop_settings_view_pin_setup_howto.h"
|
|
|
|
#include "views/desktop_settings_view_pin_setup_howto2.h"
|
2021-10-26 21:34:31 +03:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
DesktopSettingsAppViewMenu,
|
2022-04-14 15:20:41 +03:00
|
|
|
DesktopSettingsAppViewVarItemList,
|
2022-02-10 21:17:41 +03:00
|
|
|
DesktopSettingsAppViewIdPopup,
|
|
|
|
DesktopSettingsAppViewIdPinInput,
|
|
|
|
DesktopSettingsAppViewIdPinSetupHowto,
|
|
|
|
DesktopSettingsAppViewIdPinSetupHowto2,
|
2024-09-07 14:54:23 +03:00
|
|
|
DesktopSettingsAppViewDialogEx,
|
2021-09-28 12:40:39 +03:00
|
|
|
} DesktopSettingsAppView;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
DesktopSettings settings;
|
2021-10-26 21:34:31 +03:00
|
|
|
|
2021-09-28 12:40:39 +03:00
|
|
|
Gui* gui;
|
2022-10-13 21:09:37 +03:00
|
|
|
DialogsApp* dialogs;
|
2021-09-28 12:40:39 +03:00
|
|
|
SceneManager* scene_manager;
|
|
|
|
ViewDispatcher* view_dispatcher;
|
2022-04-14 15:20:41 +03:00
|
|
|
VariableItemList* variable_item_list;
|
2021-09-28 12:40:39 +03:00
|
|
|
Submenu* submenu;
|
2022-02-10 21:17:41 +03:00
|
|
|
Popup* popup;
|
|
|
|
DesktopViewPinInput* pin_input_view;
|
|
|
|
DesktopSettingsViewPinSetupHowto* pin_setup_howto_view;
|
|
|
|
DesktopSettingsViewPinSetupHowto2* pin_setup_howto2_view;
|
2024-09-07 14:54:23 +03:00
|
|
|
DialogEx* dialog_ex;
|
2022-02-10 21:17:41 +03:00
|
|
|
|
2024-08-04 12:54:02 +03:00
|
|
|
DesktopPinCode pincode_buffer;
|
2022-02-10 21:17:41 +03:00
|
|
|
bool pincode_buffer_filled;
|
2021-10-26 21:34:31 +03:00
|
|
|
|
2024-05-14 21:58:09 +03:00
|
|
|
uint32_t pin_menu_idx;
|
|
|
|
uint32_t quick_apps_menu_idx;
|
|
|
|
uint32_t quick_apps_direction_menu_idx;
|
2021-09-28 12:40:39 +03:00
|
|
|
} DesktopSettingsApp;
|