FL-528 GUI: View, ViewDispather. Dolphin: first start. (#276)
* GUI: view. Flooper-blooper fix compilation error. * GUI: view and viewdispatcher bones * GUI: view implementation, view models, view dispatcher * GUI: view navigation, model refinement. Power: use view, view dispatcher. * HAL Flash: proper page write. Dolphin: views. Power: views * Dolphin: transition idle scree to Views * Dolphin: input events on stats view. Format sources. * HAL: flash erase. Dolphin: permanent state storage. * Dolphin: first start welcome. HAL: flash operation status, errata 2.2.9 crutch.
This commit is contained in:
33
applications/dolphin/dolphin_views.h
Normal file
33
applications/dolphin/dolphin_views.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <gui/canvas.h>
|
||||
#include <flipper_v2.h>
|
||||
|
||||
// Idle scree
|
||||
typedef enum {
|
||||
DolphinViewFirstStart,
|
||||
DolphinViewIdleMain,
|
||||
DolphinViewIdleStats,
|
||||
DolphinViewIdleDebug,
|
||||
} DolphinViewIdle;
|
||||
|
||||
typedef struct {
|
||||
uint32_t page;
|
||||
} DolphinViewFirstStartModel;
|
||||
|
||||
void dolphin_view_first_start_draw(Canvas* canvas, void* model);
|
||||
bool dolphin_view_first_start_input(InputEvent* event, void* context);
|
||||
|
||||
typedef struct {
|
||||
uint32_t icounter;
|
||||
uint32_t butthurt;
|
||||
} DolphinViewIdleStatsModel;
|
||||
|
||||
void dolphin_view_idle_main_draw(Canvas* canvas, void* model);
|
||||
bool dolphin_view_idle_main_input(InputEvent* event, void* context);
|
||||
void dolphin_view_idle_stats_draw(Canvas* canvas, void* model);
|
||||
bool dolphin_view_idle_stats_input(InputEvent* event, void* context);
|
||||
void dolphin_view_idle_debug_draw(Canvas* canvas, void* model);
|
||||
uint32_t dolphin_view_idle_back(void* context);
|
Reference in New Issue
Block a user