diff options
author | Andreas Habel <mail@exceptionfault.de> | 2009-10-08 00:25:34 +0200 |
---|---|---|
committer | Andreas Habel <mail@exceptionfault.de> | 2009-10-08 00:25:34 +0200 |
commit | 81934dc041da371fc94c19de9936714bc065528a (patch) | |
tree | dae337bb32aa4647cb202bf72cee5472b8657330 /src/gui/serverdialog.h | |
parent | f708a9bf4aeff8781ec5697ff3936e5791a9137a (diff) | |
download | mana-81934dc041da371fc94c19de9936714bc065528a.tar.gz mana-81934dc041da371fc94c19de9936714bc065528a.tar.bz2 mana-81934dc041da371fc94c19de9936714bc065528a.tar.xz mana-81934dc041da371fc94c19de9936714bc065528a.zip |
Added "Add manual server entry" option to server selection dialog for better
handling of listentries.
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r-- | src/gui/serverdialog.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index 62275e6a..4522cdad 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -62,7 +62,7 @@ class ServersListModel : public gcn::ListModel /** * Add an Element at the end of the server list */ - void addElement(ServerInfo server); + void addElement(const ServerInfo &server); /** * Add an Element at the end of the server list if it @@ -71,19 +71,19 @@ class ServersListModel : public gcn::ListModel * * @param server ServerInfo to merge into the list. */ - void mergeElement(ServerInfo server); + void mergeElement(const ServerInfo &server); /** * Add an Element at the beginning of the server list */ - void addFirstElement(ServerInfo server); + void addFirstElement(const ServerInfo &server); /** * Returns wheter the given server is already in the list. * @param server Server to search in the list. * @return True, if the server is in the list, false otherwise. */ - bool contains(ServerInfo server); + bool contains(const ServerInfo &server); private: std::vector<ServerInfo> servers; @@ -127,11 +127,14 @@ class ServerDialog : public Window, */ void loadServerlist(); + void setFieldsReadOnly(const bool readOnly); + gcn::TextField *mServerNameField; gcn::TextField *mPortField; gcn::Label *mServerDescription; gcn::Button *mQuitButton; gcn::Button *mConnectButton; + gcn::Button *mManualEntryButton; ListBox *mMostUsedServersList; ServersListModel *mMostUsedServersListModel; |