The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
player_info.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2009 - 2025
3 by Tomasz Sniatowski <kailoran@gmail.com>
4 Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY.
12
13 See the COPYING file for more details.
14*/
15
16#pragma once
17
19#include "chat_events.hpp"
21
22namespace gui2
23{
24
25class button;
26class label;
27class text_box;
28
29namespace dialogs
30{
31
33{
34public:
36 const mp::user_info& info,
37 const mp::lobby_info& li);
38
40
42 {
44 }
45
46private:
47 virtual const std::string& window_id() const override;
48
49 virtual void pre_show() override;
50
51 virtual void post_show() override;
52
53 void update_relation();
54
56
58
60
62
64
66
68
70
71 void do_stopgame();
72
73 void do_kick_ban(bool ban);
74
76
78
80
82
84
86
88
90
92
94};
95
96} // namespace dialogs
97} // end namespace gui2
Simple push button.
Definition button.hpp:36
virtual void post_show() override
Actions to be taken after the window has been shown.
virtual const std::string & window_id() const override
The ID of the window to build.
const mp::user_info & info_
virtual void pre_show() override
Actions to be taken before showing the window.
const mp::lobby_info & lobby_info_
events::chat_handler & chat_
Abstract base class for all modal dialogs.
A widget that allows the user to input text in single line.
Definition text_box.hpp:125
This class represents the collective information the client has about the players and games on the se...
std::string label
What to show in the filter's drop-down list.
Definition manager.cpp:201
Various uncategorised dialogs.
Generic file dialog.
This class represents the information a client has about another player.