00a19d8632
- main.cpp: bump 0.2.0 → 0.3.0; añadir Status section en Settings via settings_window_add_section (fuente API/SQLite, URL, DB path, Reload). - views.cpp: chart_panel manual + BeginChild custom → dashboard_panel/grid del registry. KPI cards con sparkline a la derecha, altura responsive. - views.h: signature de draw_kpi_row pasa RegistryData (para sparkline). - CMakeLists.txt: añadir process_state_machine.cpp (dependencia de process_runner tras issue 0045).
21 lines
755 B
C++
21 lines
755 B
C++
#pragma once
|
|
|
|
#include "data.h"
|
|
#include <string>
|
|
|
|
// Draw the full dashboard. Call every frame.
|
|
void draw_dashboard(RegistryData& data);
|
|
|
|
// Called once from main.cpp after parsing --api to share the URL with the
|
|
// views (for triggering reindex/add mutations).
|
|
void views_set_api_url(const std::string& url);
|
|
|
|
// Individual views (called by draw_dashboard)
|
|
void draw_kpi_row(const RegistryData& data);
|
|
void draw_charts(RegistryData& data, float height = 250.0f);
|
|
void draw_recent_functions(const std::vector<FunctionRow>& funcs);
|
|
void draw_apps_list(const std::vector<AppRow>& apps);
|
|
void draw_analysis_list(const std::vector<AnalysisRow>& analyses);
|
|
void draw_types_list(const std::vector<TypeRow>& types);
|
|
void draw_projects_list(RegistryData& data);
|