The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
connect.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_ADDON_CONNECT_HPP_INCLUDED
16 #define GUI_DIALOGS_ADDON_CONNECT_HPP_INCLUDED
17 
18 #include "gui/dialogs/dialog.hpp"
19 
20 class display;
21 
22 namespace gui2
23 {
24 
25 /** Addon connect dialog. */
26 class taddon_connect : public tdialog
27 {
28 public:
29  /**
30  * Constructor.
31  *
32  * @param [in, out]host_name The parameter's usage is:
33  * - Input: The initial value for the host_name.
34  * - Output :The final value of the host_name if
35  * the dialog returns @ref twindow::OK or 3
36  * undefined otherwise.
37  * @param allow_remove Sets @ref allow_remove_.
38  * @param disp The display object used for showing the
39  * in-game help when requested.
40  */
41  taddon_connect(std::string& host_name,
42  const bool allow_remove);
43 
44 private:
45  /** Enable the addon remove button? */
47 
48  void help_button_callback(twindow& window);
49 
50  /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
51  virtual const std::string& window_id() const;
52 
53  /** Inherited from tdialog. */
54  void pre_show(twindow& window);
55 
56  /** Inherited from tdialog. */
57  void post_show(twindow& window);
58 };
59 
60 } // namespace gui2
61 
62 #endif
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
Addon connect dialog.
Definition: connect.hpp:26
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 help_button_callback(twindow &window)
Definition: connect.cpp:64
Abstract base class for all dialogs.
Definition: dialog.hpp:121
bool allow_remove_
Enable the addon remove button?
Definition: connect.hpp:46
taddon_connect(std::string &host_name, const bool allow_remove)
Constructor.
Definition: connect.cpp:56
void post_show(twindow &window)
Inherited from tdialog.
Definition: connect.cpp:81
void pre_show(twindow &window)
Inherited from tdialog.
Definition: connect.cpp:69
GLsizei const GLcharARB ** string
Definition: glew.h:4503