The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mp_host_game_prompt.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2016 by Jörg Hinrichs <[email protected]>
3  Copyright (C) 2012 - 2016 by Ignacio Riquelme Morelle <[email protected]>
4  Part of the Battle for Wesnoth Project http://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 #ifndef GUI_DIALOGS_MP_HOST_GAME_PROMPT_HPP_INCLUDED
17 #define GUI_DIALOGS_MP_HOST_GAME_PROMPT_HPP_INCLUDED
18 
19 #include "gui/dialogs/dialog.hpp"
20 
21 namespace gui2
22 {
23 
25 {
26 public:
28 
29  /** The execute function see @ref tdialog for more information. */
30  static bool execute(CVideo& video)
31  {
32  return tmp_host_game_prompt().show(video);
33  }
34 
35 private:
36  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
37  virtual const std::string& window_id() const;
38 };
39 }
40 
41 #endif
Definition: video.hpp:58
static bool execute(CVideo &video)
The execute function see tdialog for more information.
A class inherited from ttext_box that displays its input as stars.
Definition: field-fwd.hpp:23
Abstract base class for all dialogs.
Definition: dialog.hpp:121
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
GLsizei const GLcharARB ** string
Definition: glew.h:4503