The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mp_method_selection.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2016 by Mark de Wever <[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_MP_METHOD_SELECTION_HPP_INCLUDED
16 #define GUI_DIALOGS_MP_METHOD_SELECTION_HPP_INCLUDED
17 
18 #include "gui/dialogs/dialog.hpp"
19 
20 namespace gui2
21 {
22 
24 {
25 public:
27  {
28  }
29 
30  const std::string& user_name() const
31  {
32  return user_name_;
33  }
34 
35  int get_choice() const
36  {
37  return choice_;
38  }
39 
40 private:
41  /** The name to use on the MP server. */
43 
44  /** The selected method to `connect' to the MP server. */
45  int choice_;
46 
47  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
48  virtual const std::string& window_id() const;
49 
50  /** Inherited from tdialog. */
51  void pre_show(twindow& window);
52 
53  /** Inherited from tdialog. */
54  void post_show(twindow& window);
55 };
56 
57 } // namespace gui2
58 
59 #endif
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
void post_show(twindow &window)
Inherited from tdialog.
Abstract base class for all dialogs.
Definition: dialog.hpp:121
void pre_show(twindow &window)
Inherited from tdialog.
int choice_
The selected method to `connect' to the MP server.
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
const std::string & user_name() const
std::string user_name_
The name to use on the MP server.
GLsizei const GLcharARB ** string
Definition: glew.h:4503