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 298 of file gamestate_inspector.cpp.
|
private |
Definition at line 461 of file gamestate_inspector.cpp.
|
private |
Definition at line 462 of file gamestate_inspector.cpp.
|
inline |
Definition at line 302 of file gamestate_inspector.cpp.
|
inline |
Definition at line 379 of file gamestate_inspector.cpp.
References build_stuff_list(), gui2::event::connect_signal_mouse_left_click(), gui2::event::connect_signal_notify_modified(), gui2::widget::find_widget(), handle_copy_button_clicked(), handle_lua_button_clicked(), handle_page_button_clicked(), handle_stuff_list_item_clicked(), gui2::widget::invisible, and gui2::widget::set_visible().
|
inline |
Definition at line 415 of file gamestate_inspector.cpp.
References gui2::dialogs::stuff_list_adder::add(), callbacks, dc_, gui2::widget::find_widget(), display_context::get_team(), label, set_node_callback(), gui2::dialogs::variable_mode_controller::show_list(), gui2::dialogs::unit_mode_controller::show_list(), gui2::dialogs::event_mode_controller::show_list(), gui2::dialogs::team_mode_controller::show_list(), gui2::dialogs::gamestate_inspector::view::stuff_list_entry(), display_context::teams(), team::user_team_name(), view_, and gui2::dialogs::stuff_list_adder::widget().
Referenced by bind(), and handle_lua_button_clicked().
|
inline |
Definition at line 353 of file gamestate_inspector.cpp.
References c, controllers, and p.
|
inline |
Definition at line 329 of file gamestate_inspector.cpp.
References desktop::clipboard::copy_to_clipboard(), gui2::dialogs::gamestate_inspector::model::get_data_full(), and model_.
Referenced by bind().
|
inline |
Definition at line 334 of file gamestate_inspector.cpp.
References build_stuff_list(), callbacks, gui2::dialogs::gamestate_inspector::model::clear_data(), gui2::dialogs::gamestate_inspector::view::clear_stuff_list(), controllers, gui2::dialogs::lua_interpreter::display(), gui2::dialogs::lua_interpreter::GAME, model_, gui2::dialogs::gamestate_inspector::view::update(), and view_.
Referenced by bind().
|
inline |
Definition at line 346 of file gamestate_inspector.cpp.
References model_, gui2::dialogs::gamestate_inspector::view::page(), gui2::dialogs::gamestate_inspector::view::update(), and view_.
Referenced by bind().
|
inline |
Definition at line 308 of file gamestate_inspector.cpp.
References callbacks, model_, game_config::images::selected, gui2::dialogs::gamestate_inspector::view::update(), and view_.
Referenced by bind().
|
inline |
Definition at line 366 of file gamestate_inspector.cpp.
References callbacks.
Referenced by build_stuff_list(), gui2::dialogs::team_mode_controller::show_ai(), gui2::dialogs::variable_mode_controller::show_list(), gui2::dialogs::unit_mode_controller::show_list(), gui2::dialogs::event_mode_controller::show_list(), gui2::dialogs::team_mode_controller::show_list(), gui2::dialogs::team_mode_controller::show_recall(), gui2::dialogs::unit_mode_controller::show_unit(), and gui2::dialogs::team_mode_controller::show_vars().
|
inline |
Definition at line 373 of file gamestate_inspector.cpp.
References callbacks.
|
friend |
Definition at line 300 of file gamestate_inspector.cpp.
|
private |
Definition at line 464 of file gamestate_inspector.cpp.
Referenced by build_stuff_list(), handle_lua_button_clicked(), handle_stuff_list_item_clicked(), and set_node_callback().
|
private |
Definition at line 463 of file gamestate_inspector.cpp.
Referenced by get_controller(), and handle_lua_button_clicked().
|
private |
Definition at line 467 of file gamestate_inspector.cpp.
Referenced by build_stuff_list(), and gui2::dialogs::single_mode_controller::dc().
|
private |
Definition at line 466 of file gamestate_inspector.cpp.
Referenced by gui2::dialogs::single_mode_controller::events().
|
private |
Definition at line 459 of file gamestate_inspector.cpp.
Referenced by handle_copy_button_clicked(), handle_lua_button_clicked(), handle_page_button_clicked(), handle_stuff_list_item_clicked(), and gui2::dialogs::single_mode_controller::model().
|
private |
Definition at line 465 of file gamestate_inspector.cpp.
Referenced by gui2::dialogs::single_mode_controller::vars().
|
private |
Definition at line 460 of file gamestate_inspector.cpp.
Referenced by build_stuff_list(), handle_lua_button_clicked(), handle_page_button_clicked(), handle_stuff_list_item_clicked(), and gui2::dialogs::single_mode_controller::view().