Public Member Functions | |
controller (model &m, view &v, const config &vars, const game_events::manager &events, const display_context &dc) | |
void | handle_stuff_list_item_clicked (widget &tree) |
void | handle_copy_button_clicked () |
void | handle_lua_button_clicked (window &window) |
void | handle_page_button_clicked (bool next) |
template<typename T > | |
std::shared_ptr< T > | get_controller () |
template<typename C > | |
void | set_node_callback (const std::vector< int > &node_path, void(C::*fcn)(tree_view_node &)) |
template<typename C , typename T > | |
void | set_node_callback (const std::vector< int > &node_path, void(C::*fcn)(tree_view_node &, T), T param) |
void | bind (window &window) |
void | build_stuff_list (window &window) |
Private Types | |
using | node_callback = std::function< void(tree_view_node &)> |
using | node_callback_map = std::map< std::vector< int >, node_callback > |
Private Attributes | |
model & | model_ |
view & | view_ |
std::vector< std::shared_ptr< single_mode_controller > > | controllers |
node_callback_map | callbacks |
const config & | vars_ |
const game_events::manager & | events_ |
const display_context & | dc_ |
Friends | |
class | single_mode_controller |
Definition at line 287 of file gamestate_inspector.cpp.
|
private |
Definition at line 456 of file gamestate_inspector.cpp.
|
private |
Definition at line 457 of file gamestate_inspector.cpp.
|
inline |
Definition at line 291 of file gamestate_inspector.cpp.
|
inline |
Definition at line 368 of file gamestate_inspector.cpp.
References _(), desktop::clipboard::available(), gui2::event::connect_signal_mouse_left_click(), gui2::event::connect_signal_notify_modified(), handle_copy_button_clicked(), handle_lua_button_clicked(), handle_page_button_clicked(), handle_stuff_list_item_clicked(), and gui2::widget::invisible.
|
inline |
Definition at line 410 of file gamestate_inspector.cpp.
References gui2::dialogs::gamestate_inspector::dc_, display_context::get_team(), gui2::dialogs::gamestate_inspector::model::name, gui2::dialogs::variable_mode_controller::show_list(), gui2::dialogs::event_mode_controller::show_list(), gui2::dialogs::unit_mode_controller::show_list(), gui2::dialogs::team_mode_controller::show_list(), display_context::teams(), team::user_team_name(), and gui2::dialogs::gamestate_inspector::view_.
|
inline |
Definition at line 342 of file gamestate_inspector.cpp.
|
inline |
Definition at line 318 of file gamestate_inspector.cpp.
References desktop::clipboard::copy_to_clipboard(), and gui2::dialogs::gamestate_inspector::model_.
Referenced by bind().
|
inline |
Definition at line 323 of file gamestate_inspector.cpp.
References gui2::dialogs::lua_interpreter::display(), gui2::dialogs::lua_interpreter::GAME, gui2::dialogs::gamestate_inspector::model_, and gui2::dialogs::gamestate_inspector::view_.
Referenced by bind().
|
inline |
Definition at line 335 of file gamestate_inspector.cpp.
References gui2::dialogs::gamestate_inspector::model_, and gui2::dialogs::gamestate_inspector::view_.
Referenced by bind().
|
inline |
Definition at line 297 of file gamestate_inspector.cpp.
References gui2::tree_view_node::describe_path(), gui2::dialogs::gamestate_inspector::model_, game_config::images::selected, and gui2::dialogs::gamestate_inspector::view_.
Referenced by bind().
|
inline |
Definition at line 355 of file gamestate_inspector.cpp.
Referenced by gui2::dialogs::team_mode_controller::show_ai(), gui2::dialogs::variable_mode_controller::show_list(), gui2::dialogs::event_mode_controller::show_list(), gui2::dialogs::unit_mode_controller::show_list(), gui2::dialogs::team_mode_controller::show_list(), and gui2::dialogs::team_mode_controller::show_recall().
|
inline |
Definition at line 362 of file gamestate_inspector.cpp.
|
friend |
Definition at line 289 of file gamestate_inspector.cpp.
|
private |
Definition at line 459 of file gamestate_inspector.cpp.
|
private |
Definition at line 458 of file gamestate_inspector.cpp.
|
private |
Definition at line 462 of file gamestate_inspector.cpp.
|
private |
Definition at line 461 of file gamestate_inspector.cpp.
|
private |
Definition at line 454 of file gamestate_inspector.cpp.
|
private |
Definition at line 460 of file gamestate_inspector.cpp.
|
private |
Definition at line 455 of file gamestate_inspector.cpp.