summaryrefslogtreecommitdiff
path: root/src/gui/guildwindow.h
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2008-03-12 10:44:11 +0000
committerDavid Athay <ko2fan@gmail.com>2008-03-12 10:44:11 +0000
commit3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf (patch)
tree7908381183fea865b53814e591aceae17c7a6cc2 /src/gui/guildwindow.h
parent16e99dc852affbc8b149d35037694dcdd25948e6 (diff)
downloadmana-client-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.tar.gz
mana-client-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.tar.bz2
mana-client-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.tar.xz
mana-client-3a275cc81fe9aa1cb6736cdf12211e13e93cf2cf.zip
Added ability to quit guilds.
Diffstat (limited to 'src/gui/guildwindow.h')
-rw-r--r--src/gui/guildwindow.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/gui/guildwindow.h b/src/gui/guildwindow.h
index 2f494a9a..e40727b6 100644
--- a/src/gui/guildwindow.h
+++ b/src/gui/guildwindow.h
@@ -3,7 +3,7 @@
* A file part of The Mana World
*
* Created by David Athay on 06/03/2007.
- *
+ *
* Copyright (c) 2007, The Mana World Development Team
* All rights reserved.
*
@@ -56,7 +56,7 @@ public:
* Constructor.
*/
GuildWindow(LocalPlayer *player);
-
+
/**
* Destructor.
*/
@@ -76,47 +76,52 @@ public:
* Updates this dialog.
*/
void update();
-
+
/**
* Create a new tab for a guild list.
*/
void newGuildTab(const std::string &guildName);
-
+
/**
* Display guild's member list to active tab
*/
void setTab(const std::string &guildName);
-
+
/**
* Update the contents of the active tab
*/
void updateTab();
-
+
/**
* Check if the window is in focus
*/
bool isFocused();
-
+
/**
* Create a dialog for accepting an invite
*/
void openAcceptDialog(const std::string &inviterName, const std::string &guildName);
-
+
/**
* Request member list
*/
void requestMemberList(short guildId);
-
+
+ /**
+ * Removes the selected tab
+ */
+ void removeTab();
+
protected:
/**
* Get selected guild tab
* @return Returns selected guild
*/
short getSelectedGuild();
-
+
private:
LocalPlayer *mPlayer;
- gcn::Button *mGuildButton[2];
+ gcn::Button *mGuildButton[3];
TextDialog *guildDialog;
TextDialog *inviteDialog;
ConfirmDialog *acceptDialog;