32 static GuiEvents& GetInstance() {
33 static GuiEvents instance;
37 GuiEvents(
const GuiEvents&) =
delete;
38 GuiEvents& operator=(
const GuiEvents&) =
delete;
77 GuiEvents() =
default;
obs::EventVar on_finalize_chartdbs
Notified when chartdbs async operations complete, to reload charts.
obs::EventVar on_routes_update
Notified when list of routes is updated (no data in event).
obs::EventVar on_center_ais_target
Notified with a shared_ptr<const AisTargetData> when gFrame should center the given AIS target.
obs::EventVar on_dm_colors_change
Notified without arguments when the global variables housing the Data Monitor user defined colors are...
obs::EventVar options_on_finalize_chartdbs
Notified when chartdbs async operations complete, to finalize settings.
obs::EventVar color_scheme_change
Notified when the day/dusk/night color scheme changes.
obs::EventVar gframe_update_status_bar
Notified when the top level status bas should be updated by gFrame.
obs::EventVar on_waypoint_update
Notified when waypoint(s) is updated (no data in event).
Generic event handling between for example MVC Model and Controller based on a shared EventVar variab...
A common variable shared between producer and consumer which supports Listen() and Notify().