Utility class to properly refresh the display when the map context object is replaced without duplicating code. More...
Public Member Functions | |
map_context_refresher (context_manager &ec, const map_context &other_mc) | |
~map_context_refresher () | |
void | refresh () |
Private Attributes | |
context_manager & | context_manager_ |
bool | size_changed_ |
bool | refreshed_ |
Utility class to properly refresh the display when the map context object is replaced without duplicating code.
Definition at line 65 of file context_manager.cpp.
|
inline |
Definition at line 68 of file context_manager.cpp.
|
inline |
Definition at line 72 of file context_manager.cpp.
References refresh(), and refreshed_.
|
inline |
Definition at line 75 of file context_manager.cpp.
References display::change_display_context(), resources::classification, context_manager_, map_labels::enable(), editor::map_context::get_classification(), editor::map_context::get_labels(), editor::context_manager::get_map_context(), editor::map_context::get_mp_settings(), editor::map_context::get_overlays(), editor::map_context::get_teams(), editor::map_context::get_time_manager(), editor::map_context::get_units(), editor::context_manager::gui(), display::init_flags(), resources::mp_settings, refreshed_, editor::context_manager::reload_map(), display::replace_overlay_map(), resources::teams, resources::tod_manager, and resources::units.
Referenced by ~map_context_refresher().
|
private |
Definition at line 101 of file context_manager.cpp.
Referenced by refresh().
|
private |
Definition at line 103 of file context_manager.cpp.
Referenced by refresh(), and ~map_context_refresher().
|
private |
Definition at line 102 of file context_manager.cpp.