summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.h
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-11-23 19:01:08 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-10 20:32:02 +0100
commit8cf8f82d0b933dab43372fb0afdda58687ce6af6 (patch)
tree740af7cb3f148b60839d1304791bdb0046161a53 /src/gui/serverdialog.h
parent98be39a094cc20f513da1847c553513682e4eeae (diff)
downloadmana-client-8cf8f82d0b933dab43372fb0afdda58687ce6af6.tar.gz
mana-client-8cf8f82d0b933dab43372fb0afdda58687ce6af6.tar.bz2
mana-client-8cf8f82d0b933dab43372fb0afdda58687ce6af6.tar.xz
mana-client-8cf8f82d0b933dab43372fb0afdda58687ce6af6.zip
Added a modify button to the server dialog.
This was righteously requested by Ablu as missing when dealing with one's own entries. Reviewed-by: Ablu
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r--src/gui/serverdialog.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h
index 611f65e9..1d7db0b2 100644
--- a/src/gui/serverdialog.h
+++ b/src/gui/serverdialog.h
@@ -116,7 +116,13 @@ class ServerDialog : public Window,
MutexLocker lock() { return MutexLocker(&mMutex); }
friend class CustomServerDialog;
- void saveCustomServers(const ServerInfo &currentServer = ServerInfo());
+ /**
+ * Saves the new server entry in the custom server list.
+ * Removes the given entry when the serverInfo is empty.
+ * Modifies the server entry given at index when it's not -1.
+ */
+ void saveCustomServers(const ServerInfo &currentServer = ServerInfo(),
+ int index = -1);
private:
/**
@@ -134,6 +140,7 @@ class ServerDialog : public Window,
Button *mQuitButton;
Button *mConnectButton;
Button *mManualEntryButton;
+ Button *mModifyButton;
Button *mDeleteButton;
ListBox *mServersList;