#include <player_info.hpp>
Public Member Functions | |
tlobby_player_info (events::chat_handler &chat, user_info &info, const lobby_info &li) | |
~tlobby_player_info () | |
bool | result_open_whisper () const |
Public Member Functions inherited from gui2::tdialog | |
tdialog () | |
virtual | ~tdialog () |
bool | show (CVideo &video, const unsigned auto_close_time=0) |
Shows the window. More... | |
int | get_retval () const |
void | set_always_save_fields (const bool always_save_fields) |
void | set_restore (const bool restore) |
Private Member Functions | |
virtual const std::string & | window_id () const |
Inherited from tdialog, implemented by REGISTER_DIALOG. More... | |
void | pre_show (twindow &window) |
Inherited from tdialog. More... | |
void | post_show (twindow &window) |
Inherited from tdialog. More... | |
void | update_relation (twindow &w) |
void | add_to_friends_button_callback (twindow &w) |
void | add_to_ignores_button_callback (twindow &w) |
void | remove_from_list_button_callback (twindow &w) |
void | start_whisper_button_callback (twindow &w) |
void | check_status_button_callback (twindow &w) |
void | kick_button_callback (twindow &w) |
void | kick_ban_button_callback (twindow &w) |
void | do_kick_ban (bool ban) |
Private Attributes | |
events::chat_handler & | chat_ |
user_info & | info_ |
ttext_box * | reason_ |
ttext_box * | time_ |
tlabel * | relation_ |
tbutton * | add_to_friends_ |
tbutton * | add_to_ignores_ |
tbutton * | remove_from_list_ |
bool | result_open_whisper_ |
const lobby_info & | lobby_info_ |
Additional Inherited Members | |
Protected Member Functions inherited from gui2::tdialog | |
tfield_bool * | register_bool (const std::string &id, const bool mandatory, const std::function< bool()> &callback_load_value=std::function< bool()>(), const std::function< void(const bool)> &callback_save_value=std::function< void(const bool)>(), const std::function< void(twidget &)> &callback_change=std::function< void(twidget &)>()) |
Creates a new boolean field. More... | |
tfield_bool * | register_bool (const std::string &id, const bool mandatory, bool &linked_variable, const std::function< void(twidget &)> &callback_change=std::function< void(twidget &)>()) |
Creates a new boolean field. More... | |
tfield_integer * | register_integer (const std::string &id, const bool mandatory, const std::function< int()> &callback_load_value=std::function< int()>(), const std::function< void(const int)> &callback_save_value=std::function< void(const int)>()) |
Creates a new integer field. More... | |
tfield_integer * | register_integer (const std::string &id, const bool mandatory, int &linked_variable) |
Creates a new integer field. More... | |
tfield_text * | register_text (const std::string &id, const bool mandatory, const std::function< std::string()> &callback_load_value=std::function< std::string()>(), const std::function< void(const std::string &)> &callback_save_value=std::function< void(const std::string &)>(), const bool capture_focus=false) |
Creates a new text field. More... | |
tfield_text * | register_text (const std::string &id, const bool mandatory, std::string &linked_variable, const bool capture_focus=false) |
Creates a new text field. More... | |
tfield_label * | register_label (const std::string &id, const bool mandatory, const std::string &text, const bool use_markup=false) |
Registers a new control as a label. More... | |
tfield_label * | register_image (const std::string &id, const bool mandatory, const std::string &filename) |
Registers a new control as image. More... | |
Definition at line 29 of file player_info.hpp.
gui2::tlobby_player_info::tlobby_player_info | ( | events::chat_handler & | chat, |
user_info & | info, | ||
const lobby_info & | li | ||
) |
Definition at line 33 of file player_info.cpp.
gui2::tlobby_player_info::~tlobby_player_info | ( | ) |
Definition at line 49 of file player_info.cpp.
Definition at line 161 of file player_info.cpp.
References preferences::add_friend(), user_info::FRIEND, info_, user_info::name, user_info::relation, and update_relation().
Referenced by pre_show().
Definition at line 168 of file player_info.cpp.
References preferences::add_ignore(), user_info::IGNORED, info_, user_info::name, user_info::relation, and update_relation().
Referenced by pre_show().
Definition at line 188 of file player_info.cpp.
References chat_, gui2::twindow::close(), info_, user_info::name, and events::chat_handler::send_command().
Referenced by pre_show().
|
private |
Definition at line 206 of file player_info.cpp.
References chat_, gui2::ttext_::get_value(), info_, user_info::name, reason_, events::chat_handler::send_command(), and time_.
Referenced by kick_ban_button_callback(), and kick_button_callback().
Definition at line 200 of file player_info.cpp.
References gui2::twindow::close(), and do_kick_ban().
Referenced by pre_show().
Definition at line 194 of file player_info.cpp.
References gui2::twindow::close(), and do_kick_ban().
Referenced by pre_show().
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 127 of file player_info.cpp.
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 53 of file player_info.cpp.
References _(), add_to_friends_, add_to_friends_button_callback(), add_to_ignores_, add_to_ignores_button_callback(), check_status_button_callback(), gui2::event::connect_signal_mouse_left_click(), gui2::twidget::find(), user_info::game_id, lobby_info::get_game_by_id(), info_, gui2::twidget::tvisible::invisible, preferences::is_authenticated(), kick_ban_button_callback(), kick_button_callback(), lobby_info_, user_info::name, game_info::name, user_info::observing, relation_, remove_from_list_, remove_from_list_button_callback(), gui2::set_label(), gui2::twidget::set_visible(), start_whisper_button_callback(), and update_relation().
Definition at line 175 of file player_info.cpp.
References info_, user_info::name, user_info::NEUTRAL, user_info::relation, preferences::remove_acquaintance(), and update_relation().
Referenced by pre_show().
|
inline |
Definition at line 38 of file player_info.hpp.
References result_open_whisper_.
Referenced by gui2::tlobby_main::user_dialog_callback().
Definition at line 182 of file player_info.cpp.
References gui2::twindow::close(), and result_open_whisper_.
Referenced by pre_show().
Definition at line 131 of file player_info.cpp.
References _(), add_to_friends_, add_to_ignores_, user_info::FRIEND, user_info::IGNORED, info_, gui2::twindow::invalidate_layout(), user_info::ME, user_info::NEUTRAL, user_info::relation, relation_, remove_from_list_, gui2::tbutton::set_active(), and gui2::tcontrol::set_label().
Referenced by add_to_friends_button_callback(), add_to_ignores_button_callback(), pre_show(), and remove_from_list_button_callback().
|
privatevirtual |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
|
private |
Definition at line 81 of file player_info.hpp.
Referenced by pre_show(), and update_relation().
|
private |
Definition at line 83 of file player_info.hpp.
Referenced by pre_show(), and update_relation().
|
private |
Definition at line 71 of file player_info.hpp.
Referenced by check_status_button_callback(), and do_kick_ban().
|
private |
Definition at line 73 of file player_info.hpp.
Referenced by add_to_friends_button_callback(), add_to_ignores_button_callback(), check_status_button_callback(), do_kick_ban(), pre_show(), remove_from_list_button_callback(), and update_relation().
|
private |
Definition at line 89 of file player_info.hpp.
Referenced by pre_show().
|
private |
Definition at line 75 of file player_info.hpp.
Referenced by do_kick_ban().
|
private |
Definition at line 79 of file player_info.hpp.
Referenced by pre_show(), and update_relation().
|
private |
Definition at line 85 of file player_info.hpp.
Referenced by pre_show(), and update_relation().
|
private |
Definition at line 87 of file player_info.hpp.
Referenced by result_open_whisper(), and start_whisper_button_callback().
|
private |
Definition at line 77 of file player_info.hpp.
Referenced by do_kick_ban().