Public Member Functions | Private Member Functions | Private Attributes

gui2::tlobby_player_info Class Reference

#include <lobby_player_info.hpp>

Inheritance diagram for gui2::tlobby_player_info:
Inheritance graph
[legend]
Collaboration diagram for gui2::tlobby_player_info:
Collaboration graph
[legend]

List of all members.

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

Private Member Functions

virtual const std::string & window_id () const
 Inherited from tdialog, implemented by REGISTER_DIALOG.
void pre_show (CVideo &video, twindow &window)
 Inherited from tdialog.
void post_show (twindow &window)
 Inherited from tdialog.
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_

Detailed Description

Definition at line 30 of file lobby_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 32 of file lobby_player_info.cpp.

gui2::tlobby_player_info::~tlobby_player_info (  ) 

Definition at line 39 of file lobby_player_info.cpp.


Member Function Documentation

void gui2::tlobby_player_info::add_to_friends_button_callback ( twindow w  )  [private]

Definition at line 152 of file lobby_player_info.cpp.

References preferences::add_friend(), info_, user_info::name, user_info::relation, and update_relation().

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tlobby_player_info::add_to_ignores_button_callback ( twindow w  )  [private]

Definition at line 159 of file lobby_player_info.cpp.

References preferences::add_ignore(), info_, user_info::name, user_info::relation, and update_relation().

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tlobby_player_info::check_status_button_callback ( twindow w  )  [private]

Definition at line 180 of file lobby_player_info.cpp.

References chat_, gui2::twindow::close(), info_, user_info::name, and events::chat_handler::send_command().

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tlobby_player_info::do_kick_ban ( bool  ban  )  [private]

Definition at line 198 of file lobby_player_info.cpp.

References chat_, gui2::ttext_::get_value(), if(), info_, user_info::name, reason_, events::chat_handler::send_command(), and time_.

Referenced by kick_ban_button_callback(), and kick_button_callback().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tlobby_player_info::kick_ban_button_callback ( twindow w  )  [private]

Definition at line 192 of file lobby_player_info.cpp.

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

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 186 of file lobby_player_info.cpp.

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

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

void gui2::tlobby_player_info::post_show ( twindow window  )  [private, virtual]

Inherited from tdialog.

Reimplemented from gui2::tdialog.

Definition at line 118 of file lobby_player_info.cpp.

void gui2::tlobby_player_info::pre_show ( CVideo video,
twindow window 
) [private, virtual]
void gui2::tlobby_player_info::remove_from_list_button_callback ( twindow w  )  [private]

Definition at line 166 of file lobby_player_info.cpp.

References info_, user_info::name, user_info::relation, preferences::remove_friend(), preferences::remove_ignore(), and update_relation().

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

bool gui2::tlobby_player_info::result_open_whisper (  )  const [inline]

Definition at line 37 of file lobby_player_info.hpp.

References result_open_whisper_.

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

Here is the caller graph for this function:

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

Definition at line 174 of file lobby_player_info.cpp.

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

Referenced by pre_show().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.


Member Data Documentation

Definition at line 78 of file lobby_player_info.hpp.

Referenced by pre_show(), and update_relation().

Definition at line 80 of file lobby_player_info.hpp.

Referenced by pre_show(), and update_relation().

Definition at line 68 of file lobby_player_info.hpp.

Referenced by check_status_button_callback(), and do_kick_ban().

Definition at line 86 of file lobby_player_info.hpp.

Referenced by pre_show().

Definition at line 72 of file lobby_player_info.hpp.

Referenced by do_kick_ban().

Definition at line 76 of file lobby_player_info.hpp.

Referenced by pre_show(), and update_relation().

Definition at line 82 of file lobby_player_info.hpp.

Referenced by pre_show(), and update_relation().

Definition at line 84 of file lobby_player_info.hpp.

Referenced by result_open_whisper(), and start_whisper_button_callback().

Definition at line 74 of file lobby_player_info.hpp.

Referenced by do_kick_ban().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:30 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs