summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-03-29 13:14:21 -0600
committerJared Adams <jaxad0127@gmail.com>2010-03-29 19:09:18 -0600
commit43abf72c78b492fa1cd383dac3990ee331c217ef (patch)
tree8d353aefa21fe02cdba7ac015223b31ed33be956 /src/gui/serverdialog.h
parent588148553eb41672147fb98d0e7ad558a8c2884c (diff)
downloadMana-43abf72c78b492fa1cd383dac3990ee331c217ef.tar.gz
Mana-43abf72c78b492fa1cd383dac3990ee331c217ef.tar.bz2
Mana-43abf72c78b492fa1cd383dac3990ee331c217ef.tar.xz
Mana-43abf72c78b492fa1cd383dac3990ee331c217ef.zip
Add minimum version information to the server list
Use it to hilight entries that we don't meet. Also make the entries in that list higher, put server name and location on different lines, and use the description below the list. The dialog is also resizable now. Reviewed-by: Freeyorp
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r--src/gui/serverdialog.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h
index 673ee97c..5b9d53fd 100644
--- a/src/gui/serverdialog.h
+++ b/src/gui/serverdialog.h
@@ -51,6 +51,8 @@ class DropDown;
class ServersListModel : public gcn::ListModel
{
public:
+ typedef std::pair<int, std::string> VersionString;
+
ServersListModel(ServerInfos *servers, ServerDialog *parent);
/**
@@ -69,8 +71,18 @@ class ServersListModel : public gcn::ListModel
const ServerInfo &getServer(int elementIndex) const
{ return mServers->at(elementIndex); }
+ const VersionString &getVersionString(int index) const
+ { return mVersionStrings[index]; }
+
+ void setVersionString(int index, const std::string &version);
+
+ void addServer(const ServerInfo &info, const std::string &version);
+
private:
+ typedef std::vector<VersionString> VersionStrings;
+
ServerInfos *mServers;
+ VersionStrings mVersionStrings;
ServerDialog *mParent;
};