From 5159a53e58cd4b3652ce6255856d50e15c275f80 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 12 Sep 2025 18:21:53 +0200 Subject: startup views & new administration setup --- include/ui.hpp | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'include/ui.hpp') diff --git a/include/ui.hpp b/include/ui.hpp index 7bbdd5a..6364c55 100644 --- a/include/ui.hpp +++ b/include/ui.hpp @@ -10,6 +10,21 @@ #define COLOR_ERROR IM_COL32(235, 64, 52, 255) #define COLOR_DEFAULT IM_COL32(235, 255, 255, 255) +typedef enum +{ + UI_INVOICES = 0, + UI_EXPENSES = 1, + UI_CONTACTS = 2, + UI_REPORT_RESULTS = 3, + UI_REPORT_TAX = 4, + UI_PROJECTS = 5, + UI_SETTINGS = 6, + UI_LOG = 7, + UI_START = 8, + + UI_END +} main_state; + typedef enum { LIST, @@ -30,14 +45,16 @@ typedef struct extern ImFont* fontBold; -void ui_helper_draw_required_tag(); +void ui_helper_draw_required_tag(); + +ui_status ui_get_status(); +void ui_set_status_loading(bool loading); +void ui_set_status_error(const char* txt); +void ui_set_status_ex(const char* txt, int color); +void ui_set_status(const char* txt); +void ui_draw_status(); -void ui_set_status_loading(bool loading); -void ui_set_status_error(const char* txt); -void ui_set_status_ex(const char* txt, int color); -void ui_set_status(const char* txt); -ui_status ui_get_status(); -void ui_draw_status(); +void ui_set_state(main_state state); void ui_draw_main(); void ui_draw_contacts(); @@ -47,6 +64,7 @@ void ui_draw_settings(); void ui_draw_expenses(); void ui_draw_earnings(); void ui_draw_log(); +void ui_draw_start(); void ui_setup_invoices(); void ui_setup_contacts(); -- cgit v1.2.3-70-g09d2