diff options
author | David Athay <ko2fan@gmail.com> | 2008-04-15 15:42:04 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-04-15 15:42:04 +0000 |
commit | e2e4ceb9fa8a72ad94853f74724676fff82b15c0 (patch) | |
tree | 5336955366e76266f92dbef4da6e632b84714cdf /src/gui/guildlistbox.h | |
parent | d4cc1ded15daa0677e710013640c90b1aadd6bd0 (diff) | |
download | mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.tar.gz mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.tar.bz2 mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.tar.xz mana-client-e2e4ceb9fa8a72ad94853f74724676fff82b15c0.zip |
Added online status of guild members
Diffstat (limited to 'src/gui/guildlistbox.h')
-rw-r--r-- | src/gui/guildlistbox.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/src/gui/guildlistbox.h b/src/gui/guildlistbox.h index 262012a4..0f030d0a 100644 --- a/src/gui/guildlistbox.h +++ b/src/gui/guildlistbox.h @@ -1,6 +1,6 @@ /* * The Mana World - * Copyright 2004 The Mana World Development Team + * Copyright 2008 The Mana World Development Team * * This file is part of The Mana World. * @@ -18,17 +18,20 @@ * along with The Mana World; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id$ + * $Id $ */ #ifndef _TMW_GUI_GUILDLISTBOX_H #define _TMW_GUI_GUILDLISTBOX_H +#include <map> #include <string> #include <vector> #include "listbox.h" +class Image; + class GuildListBox : public ListBox { public: @@ -38,21 +41,26 @@ public: GuildListBox(); /** - * Set ListModel - */ - void setList(gcn::ListModel *listModel); - - /** * Draws the list box. */ - void draw(gcn::Graphics *graphics); + void draw(gcn::Graphics *gcnGraphics); void mousePressed(gcn::MouseEvent &event); /** * Sets the index of the selected element. */ - void setSelected(int selected); +// void setSelected(int selected); + + /** + * Set whether a member is online or offline + */ + void setOnlineStatus(const std::string &user, bool online); + +private: + Image *onlineIcon; + Image *offlineIcon; + std::map<std::string, bool> mUsers; }; #endif |