The Battle for Wesnoth  1.15.10+dev
match_history.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2021 by the Battle for Wesnoth Project https://www.wesnoth.org/
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY.
10 
11  See the COPYING file for more details.
12 */
13 
14 #pragma once
15 
17 
18 namespace mp { struct user_info; }
19 
21 
22 namespace gui2
23 {
24 class window;
25 
26 namespace dialogs
27 {
29 {
30 public:
32 
33  /**
34  * The display function.
35  *
36  * See @ref modal_dialog for more information.
37  */
39 
40 private:
41  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
42  virtual const std::string& window_id() const override;
43 
44  /** Inherited from modal_dialog. */
45  virtual void pre_show(window& window) override;
46 
47  void request_history(int offset);
48 
50 
52 };
53 
54 } // namespace dialogs
55 } // namespace gui2
wesnothd_connection & connection_
logger & info()
Definition: log.cpp:88
Generic file dialog.
Definition: field-fwd.hpp:22
Main entry points of multiplayer mode.
Definition: lobby_data.cpp:51
A class that represents a TCP/IP connection to the wesnothd server.
Various uncategorised dialogs.
This class represents the information a client has about another player.
Definition: lobby_data.hpp:104
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on...
Definition: window.hpp:64