summaryrefslogtreecommitdiff
path: root/src/gui/serverselectdialog.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-08 07:06:50 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-08 07:06:50 -0600
commitf2a0fe945ac44814b271bf3fb6e9df1464d6ccc5 (patch)
tree8e0214c70393d7f74150494f5a2f30520950bc4e /src/gui/serverselectdialog.h
parent89f59c09fec10ff163f410960f77a9391f9e1e61 (diff)
downloadmana-client-f2a0fe945ac44814b271bf3fb6e9df1464d6ccc5.tar.gz
mana-client-f2a0fe945ac44814b271bf3fb6e9df1464d6ccc5.tar.bz2
mana-client-f2a0fe945ac44814b271bf3fb6e9df1464d6ccc5.tar.xz
mana-client-f2a0fe945ac44814b271bf3fb6e9df1464d6ccc5.zip
Make some more file build for both servers
Also some cleanup in main.cpp
Diffstat (limited to 'src/gui/serverselectdialog.h')
-rw-r--r--src/gui/serverselectdialog.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/gui/serverselectdialog.h b/src/gui/serverselectdialog.h
new file mode 100644
index 00000000..b80ad286
--- /dev/null
+++ b/src/gui/serverselectdialog.h
@@ -0,0 +1,65 @@
+/*
+ * The Mana World
+ * Copyright (C) 2004 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#ifndef _CHAR_SEL_SERVER_H
+#define _CHAR_SEL_SERVER_H
+
+#include "gui/widgets/window.h"
+
+#include <guichan/actionlistener.hpp>
+#include <guichan/listmodel.hpp>
+
+class LoginData;
+class ServerListModel;
+
+/**
+ * The server select dialog.
+ *
+ * \ingroup Interface
+ */
+class ServerSelectDialog : public Window, public gcn::ActionListener {
+ public:
+ /**
+ * Constructor
+ *
+ * @see Window::Window
+ */
+ ServerSelectDialog(LoginData *loginData, int nextState);
+
+ /**
+ * Destructor.
+ */
+ ~ServerSelectDialog();
+
+ /**
+ * Called when receiving actions from the widgets.
+ */
+ void action(const gcn::ActionEvent &event);
+
+ private:
+ LoginData *mLoginData;
+ ServerListModel *mServerListModel;
+ gcn::ListBox *mServerList;
+ gcn::Button *mOkButton;
+ int mNextState;
+};
+
+#endif