client/memberlist.h

Go to the documentation of this file.
00001 /* $Id:memberlist.h jjs $ */
00002 /*
00003    Copyright (C) 2007 by Jurjen Stellingwerff <jurjen@stwerff.xs4all.nl>
00004    Part of the Moros Project http://moros.sourceforge.net/
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License.
00008    This program is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY.
00010 
00011    See the COPYING file for more details.
00012 */
00013 
00014 #ifndef MEMBERLIST_H
00015 #define MEMBERLIST_H
00016 
00017 #include <gtkmm.h>
00018 #include <libglademm.h>
00019 
00021 
00022 class memberlist : public Gtk::Window {
00023   public:
00024     memberlist(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml> refGlade); 
00025     virtual ~memberlist();  
00026     virtual void members_clear();
00027     virtual void members_show(std::string member, std::string status);
00028 
00029   protected:
00030     Glib::RefPtr<Gnome::Glade::Xml> m_refGlade;
00031     virtual void clicked_close();
00032     virtual void clicked_whisper();
00033     virtual void clicked_ignore();
00034     Gtk::Button* members_close;
00035     Gtk::Button* members_whisper;
00036     Gtk::Button* members_ignore;
00037     Gtk::TreeView* members_list;
00038     Glib::RefPtr<Gtk::ListStore> list_store;
00039 
00041     struct ModelColumns : public Gtk::TreeModelColumnRecord {
00042         Gtk::TreeModelColumn<Glib::ustring> name;
00043         Gtk::TreeModelColumn<Glib::ustring> status;
00044         ModelColumns() {
00045             add(name); add(status);
00046         }
00047     };
00048     const ModelColumns cols;
00049 };
00050 
00051 #endif //MEMBERLIST_H


Generated on Tue Jan 1 17:30:00 2008 for client/memberlist.h Source File by  doxygen   Visit the project page on SourceForge.net Logo