41 , add_to_friends_(
nullptr)
42 , add_to_ignores_(
nullptr)
43 , remove_from_list_(
nullptr)
44 , result_open_whisper_(false)
55 relation_ = find_widget<tlabel>(&window,
"relation_info",
false,
true);
57 find_widget<tbutton>(&window,
"start_whisper",
false),
62 add_to_friends_ = &find_widget<tbutton>(&window,
"add_to_friends",
false);
69 add_to_ignores_ = &find_widget<tbutton>(&window,
"add_to_ignores",
false);
77 = &find_widget<tbutton>(&window,
"remove_from_list",
false);
85 find_widget<tbutton>(&window,
"check_status",
false),
91 find_widget<tbutton>(&window,
"kick",
false),
97 find_widget<tbutton>(&window,
"kick_ban",
false),
104 std::stringstream loc;
106 if(game !=
nullptr) {
107 loc <<
_(
"In game:") <<
" " << game->
name <<
" ";
109 loc <<
_(
"(observing)");
111 loc <<
_(
"(playing)");
114 loc <<
_(
"In lobby");
117 find_widget<tlabel>(&window,
"location_info",
false).
set_label(loc.str());
208 std::stringstream ss;
209 ss << (ban ?
"kban" :
"kick ") <<
info_.
name;
events::chat_handler & chat_
tbutton * remove_from_list_
void kick_ban_button_callback(twindow &w)
game_info * get_game_by_id(int id)
void remove_from_list_button_callback(twindow &w)
tbutton * add_to_friends_
void update_relation(twindow &w)
REGISTER_DIALOG(label_settings)
This class represents the collective information the client has about the players and games on the se...
virtual void set_label(const t_string &label)
void do_kick_ban(bool ban)
void send_command(const std::string &cmd, const std::string &args="")
void connect_signal_mouse_left_click(tdispatcher &dispatcher, const tsignal_function &signal)
Connects a signal handler for a left mouse button click.
bool remove_acquaintance(const std::string &nick)
std::string get_value() const
This class represents the information a client has about another player.
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
void add_to_friends_button_callback(twindow &w)
static UNUSEDNOWARN std::string _(const char *str)
void add_to_ignores_button_callback(twindow &w)
const lobby_info & lobby_info_
void start_whisper_button_callback(twindow &w)
GLubyte GLubyte GLubyte GLubyte w
bool result_open_whisper_
void close()
Requests to close the window.
void pre_show(twindow &window)
Inherited from tdialog.
void check_status_button_callback(twindow &w)
bool add_friend(const std::string &nick, const std::string ¬es)
bool add_ignore(const std::string &nick, const std::string &reason)
Handling of system events.
tbutton * add_to_ignores_
void post_show(twindow &window)
Inherited from tdialog.
This class represents the info a client has about a game on the server.
static void set_label(twindow &window, const std::string &id, const std::string &label)
void invalidate_layout()
Updates the size of the window.
void kick_button_callback(twindow &w)