From 2ff6ad2e8a67bd8ef34b56b866ef277c30135f19 Mon Sep 17 00:00:00 2001 From: Daniel Bradshaw Date: Sun, 31 Jan 2010 13:14:07 +0000 Subject: Unify eAthena and manaserv support in to one build. Finish support for server types in the server dialog. Using the new server type function, strip out ifdefs, replacing them with if blocks for later merging in smaller atomic commits. Remove any remaining references to the support defs, including in build system. --- src/gui/serverdialog.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/gui/serverdialog.h') diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index d82e2613..f0d99b30 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -42,6 +42,7 @@ class Label; class ListBox; class ServerDialog; class TextField; +class DropDown; /** * Server and Port List Model @@ -72,6 +73,26 @@ class ServersListModel : public gcn::ListModel ServerDialog *mParent; }; +/** + * Server and Port List Model + */ +class TypeListModel : public gcn::ListModel +{ + public: + TypeListModel() { }; + + /** + * Used to get number of line in the list + */ + int getNumberOfElements() { return 2; } + + /** + * Used to get an element from the list + */ + std::string getElementAt(int elementIndex); +}; + + /** * The server choice dialog. * @@ -134,6 +155,9 @@ class ServerDialog : public Window, ListBox *mServersList; ServersListModel *mServersListModel; + DropDown *mTypeField; + TypeListModel *mTypeListModel; + const std::string &mDir; enum ServerDialogDownloadStatus -- cgit v1.2.3-70-g09d2