The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
player_info.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2016 by Tomasz Sniatowski <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #ifndef GUI_DIALOGS_LOBBY_PLAYER_INFO_HPP_INCLUDED
16 #define GUI_DIALOGS_LOBBY_PLAYER_INFO_HPP_INCLUDED
17 
18 #include "gui/dialogs/dialog.hpp"
19 #include "chat_events.hpp"
21 
22 namespace gui2
23 {
24 
25 class tbutton;
26 class tlabel;
27 class ttext_box;
28 
30 {
31 public:
33  user_info& info,
34  const lobby_info& li);
35 
37 
38  bool result_open_whisper() const
39  {
40  return result_open_whisper_;
41  }
42 
43 private:
44  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
45  virtual const std::string& window_id() const;
46 
47  /** Inherited from tdialog. */
48  void pre_show(twindow& window);
49 
50  /** Inherited from tdialog. */
51  void post_show(twindow& window);
52 
53  void update_relation(twindow& w);
54 
56 
58 
60 
62 
64 
66 
68 
69  void do_kick_ban(bool ban);
70 
72 
74 
76 
78 
80 
82 
84 
86 
88 
90 };
91 
92 } // end namespace gui2
93 
94 #endif
events::chat_handler & chat_
Definition: player_info.hpp:71
void kick_ban_button_callback(twindow &w)
void remove_from_list_button_callback(twindow &w)
logger & info()
Definition: log.cpp:91
void update_relation(twindow &w)
This class represents the collective information the client has about the players and games on the se...
Definition: info.hpp:25
void do_kick_ban(bool ban)
Class for a single line text area.
Definition: text_box.hpp:118
Label showing a text.
Definition: label.hpp:29
This class represents the information a client has about another player.
Definition: data.hpp:102
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition: window.hpp:62
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
Simple push button.
Definition: button.hpp:32
void add_to_friends_button_callback(twindow &w)
void add_to_ignores_button_callback(twindow &w)
tlobby_player_info(events::chat_handler &chat, user_info &info, const lobby_info &li)
Definition: player_info.cpp:33
const lobby_info & lobby_info_
Definition: player_info.hpp:89
void start_whisper_button_callback(twindow &w)
Abstract base class for all dialogs.
Definition: dialog.hpp:121
GLubyte GLubyte GLubyte GLubyte w
Definition: glew.h:1858
void pre_show(twindow &window)
Inherited from tdialog.
Definition: player_info.cpp:53
void check_status_button_callback(twindow &w)
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
bool result_open_whisper() const
Definition: player_info.hpp:38
void post_show(twindow &window)
Inherited from tdialog.
GLsizei const GLcharARB ** string
Definition: glew.h:4503
void kick_button_callback(twindow &w)