summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-09-01 18:43:18 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-09-01 18:43:18 +0000
commitda43e09d2b043d5c75ad0adb87dd43f1fe36fe8f (patch)
tree5be93c07d6aab6514f297d1f324464fd8dc0a408 /src/gui/serverdialog.h
parent0728e1f413e206920cf423626a82a44cfb622136 (diff)
downloadmana-da43e09d2b043d5c75ad0adb87dd43f1fe36fe8f.tar.gz
mana-da43e09d2b043d5c75ad0adb87dd43f1fe36fe8f.tar.bz2
mana-da43e09d2b043d5c75ad0adb87dd43f1fe36fe8f.tar.xz
mana-da43e09d2b043d5c75ad0adb87dd43f1fe36fe8f.zip
Fixed some header issues and updated project files
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r--src/gui/serverdialog.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h
index be3361b0..687290f3 100644
--- a/src/gui/serverdialog.h
+++ b/src/gui/serverdialog.h
@@ -24,16 +24,20 @@
#ifndef _TMW_SERVERDIALOG_H
#define _TMW_SERVERDIALOG_H
-#include <iosfwd>
-#include <guichan/actionlistener.hpp>
+#include <iosfwd>
+#include <vector>
+#include <guichan/actionlistener.hpp>
+#include <guichan/listmodel.hpp>
+
+#include "login.h"
#include "window.h"
+
#include "../guichanfwd.h"
-#include "login.h"
#include "../net/network.h"
-class LoginData;
+class LoginData;
/**
* A server structure to keep pairs of servers and ports.
@@ -50,7 +54,8 @@ struct Server {
/**
* Server and Port List Model
*/
-class ServersListModel : public gcn::ListModel {
+class ServersListModel : public gcn::ListModel
+{
public:
/**
* Used to get number of line in the list
@@ -71,7 +76,8 @@ class ServersListModel : public gcn::ListModel {
/**
* Add an Element at the beginning of the server list
*/
- void addFirstElement(Server server);
+ void addFirstElement(Server server);
+
private:
std::vector<Server> servers;
};
@@ -79,7 +85,8 @@ class ServersListModel : public gcn::ListModel {
/**
* Listener used for handling the DropDown in the server Dialog.
*/
-class DropDownListener : public gcn::ActionListener {
+class DropDownListener : public gcn::ActionListener
+{
public:
DropDownListener(gcn::TextField *serverNameField,
gcn::TextField *serverPortField,
@@ -106,7 +113,8 @@ class DropDownListener : public gcn::ActionListener {
*
* \ingroup Interface
*/
-class ServerDialog : public Window, public gcn::ActionListener {
+class ServerDialog : public Window, public gcn::ActionListener
+{
public:
/**
* Constructor