The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
gui
dialogs
multiplayer
mp_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_MP_CONNECT_HPP_INCLUDED
16
#define GUI_DIALOGS_MP_CONNECT_HPP_INCLUDED
17
18
#include "
gui/dialogs/dialog.hpp
"
19
20
namespace
gui2
21
{
22
23
class
tmp_connect
:
public
tdialog
24
{
25
/** The unit test needs to be able to test the tmp_connect dialog. */
26
friend
tdialog
*
unit_test_mp_server_list
();
27
28
public
:
29
tmp_connect
();
30
31
private
:
32
/** Inherited from tdialog, implemented by REGISTER_DIALOG. */
33
virtual
const
std::string
&
window_id
()
const
;
34
35
/** Inherited from tdialog. */
36
void
pre_show
(
twindow
& window);
37
38
/** The host name of the selected servef. */
39
tfield_text
*
host_name_
;
40
41
/**
42
* The unit test needs to be able to test the tmp_connect dialog.
43
*
44
* @returns A newly allocated tmp_server_list.
45
*/
46
static
tdialog
*
mp_server_list_for_unit_test
();
47
};
48
49
}
// namespace gui2
50
51
#endif
gui2::tmp_connect::pre_show
void pre_show(twindow &window)
Inherited from tdialog.
Definition:
mp_connect.cpp:175
gui2::tmp_connect::host_name_
tfield_text * host_name_
The host name of the selected servef.
Definition:
mp_connect.hpp:39
gui2::tmp_connect::unit_test_mp_server_list
friend tdialog * unit_test_mp_server_list()
The unit test needs to be able to test the tmp_connect dialog.
Definition:
test_gui2.cpp:132
gui2::tmp_connect
Definition:
mp_connect.hpp:23
gui2::twindow
base class of top level items, the only item which needs to store the final canvases to draw on ...
Definition:
window.hpp:62
gui2
A class inherited from ttext_box that displays its input as stars.
Definition:
field-fwd.hpp:23
gui2::tmp_connect::window_id
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
gui2::tdialog
Abstract base class for all dialogs.
Definition:
dialog.hpp:121
gui2::tmp_connect::tmp_connect
tmp_connect()
Definition:
mp_connect.cpp:165
gui2::tmp_connect::mp_server_list_for_unit_test
static tdialog * mp_server_list_for_unit_test()
The unit test needs to be able to test the tmp_connect dialog.
Definition:
mp_connect.cpp:190
dialog.hpp
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
gui2::tfield_text
Specialized field class for text.
Definition:
field.hpp:588
Generated by
1.8.8