The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
gui2::tlobby_player_info Class Reference

#include <player_info.hpp>

Inheritance diagram for gui2::tlobby_player_info:
Inheritance graph

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::stringwindow_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_handlerchat_
 
user_infoinfo_
 
ttext_boxreason_
 
ttext_boxtime_
 
tlabelrelation_
 
tbuttonadd_to_friends_
 
tbuttonadd_to_ignores_
 
tbuttonremove_from_list_
 
bool result_open_whisper_
 
const lobby_infolobby_info_
 

Additional Inherited Members

- Protected Member Functions inherited from gui2::tdialog
tfield_boolregister_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_boolregister_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_integerregister_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_integerregister_integer (const std::string &id, const bool mandatory, int &linked_variable)
 Creates a new integer field. More...
 
tfield_textregister_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_textregister_text (const std::string &id, const bool mandatory, std::string &linked_variable, const bool capture_focus=false)
 Creates a new text field. More...
 
tfield_labelregister_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_labelregister_image (const std::string &id, const bool mandatory, const std::string &filename)
 Registers a new control as image. More...
 

Detailed Description

Definition at line 29 of file player_info.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

void gui2::tlobby_player_info::add_to_friends_button_callback ( twindow w)
private
void gui2::tlobby_player_info::add_to_ignores_button_callback ( twindow w)
private
void gui2::tlobby_player_info::check_status_button_callback ( twindow w)
private
void gui2::tlobby_player_info::do_kick_ban ( bool  ban)
private
void gui2::tlobby_player_info::kick_ban_button_callback ( twindow w)
private

Definition at line 200 of file player_info.cpp.

References gui2::twindow::close(), and do_kick_ban().

Referenced by pre_show().

void gui2::tlobby_player_info::kick_button_callback ( twindow w)
private

Definition at line 194 of file player_info.cpp.

References gui2::twindow::close(), and do_kick_ban().

Referenced by pre_show().

void gui2::tlobby_player_info::post_show ( twindow window)
privatevirtual

Inherited from tdialog.

Reimplemented from gui2::tdialog.

Definition at line 127 of file player_info.cpp.

void gui2::tlobby_player_info::pre_show ( twindow window)
privatevirtual
void gui2::tlobby_player_info::remove_from_list_button_callback ( twindow w)
private
bool gui2::tlobby_player_info::result_open_whisper ( ) const
inline

Definition at line 38 of file player_info.hpp.

References result_open_whisper_.

Referenced by gui2::tlobby_main::user_dialog_callback().

void gui2::tlobby_player_info::start_whisper_button_callback ( twindow w)
private

Definition at line 182 of file player_info.cpp.

References gui2::twindow::close(), and result_open_whisper_.

Referenced by pre_show().

void gui2::tlobby_player_info::update_relation ( twindow w)
private
virtual const std::string& gui2::tlobby_player_info::window_id ( ) const
privatevirtual

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.

Member Data Documentation

tbutton* gui2::tlobby_player_info::add_to_friends_
private

Definition at line 81 of file player_info.hpp.

Referenced by pre_show(), and update_relation().

tbutton* gui2::tlobby_player_info::add_to_ignores_
private

Definition at line 83 of file player_info.hpp.

Referenced by pre_show(), and update_relation().

events::chat_handler& gui2::tlobby_player_info::chat_
private

Definition at line 71 of file player_info.hpp.

Referenced by check_status_button_callback(), and do_kick_ban().

user_info& gui2::tlobby_player_info::info_
private
const lobby_info& gui2::tlobby_player_info::lobby_info_
private

Definition at line 89 of file player_info.hpp.

Referenced by pre_show().

ttext_box* gui2::tlobby_player_info::reason_
private

Definition at line 75 of file player_info.hpp.

Referenced by do_kick_ban().

tlabel* gui2::tlobby_player_info::relation_
private

Definition at line 79 of file player_info.hpp.

Referenced by pre_show(), and update_relation().

tbutton* gui2::tlobby_player_info::remove_from_list_
private

Definition at line 85 of file player_info.hpp.

Referenced by pre_show(), and update_relation().

bool gui2::tlobby_player_info::result_open_whisper_
private

Definition at line 87 of file player_info.hpp.

Referenced by result_open_whisper(), and start_whisper_button_callback().

ttext_box* gui2::tlobby_player_info::time_
private

Definition at line 77 of file player_info.hpp.

Referenced by do_kick_ban().


The documentation for this class was generated from the following files: