gui/dialogs/lobby_player_info.hpp

Go to the documentation of this file.
00001 /* $Id: lobby_player_info.hpp 52533 2012-01-07 02:35:17Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2009 - 2012 by Tomasz Sniatowski <kailoran@gmail.com>
00004    Part of the Battle for Wesnoth Project http://www.wesnoth.org/
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 as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY.
00012 
00013    See the COPYING file for more details.
00014 */
00015 
00016 #ifndef GUI_DIALOGS_LOBBY_PLAYER_INFO_HPP_INCLUDED
00017 #define GUI_DIALOGS_LOBBY_PLAYER_INFO_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 #include "config.hpp"
00021 #include "chat_events.hpp"
00022 #include "gui/dialogs/lobby/lobby_info.hpp"
00023 
00024 namespace gui2 {
00025 
00026 class tbutton;
00027 class tlabel;
00028 class ttext_box;
00029 
00030 class tlobby_player_info : public tdialog
00031 {
00032 public:
00033     tlobby_player_info(events::chat_handler& chat, user_info& info, const lobby_info& li);
00034 
00035     ~tlobby_player_info();
00036 
00037     bool result_open_whisper() const { return result_open_whisper_; }
00038 
00039 private:
00040 
00041     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00042     virtual const std::string& window_id() const;
00043 
00044     /** Inherited from tdialog. */
00045     void pre_show(CVideo& video, twindow& window);
00046 
00047     /** Inherited from tdialog. */
00048     void post_show(twindow& window);
00049 
00050     void update_relation(twindow& w);
00051 
00052     void add_to_friends_button_callback(twindow& w);
00053 
00054     void add_to_ignores_button_callback(twindow& w);
00055 
00056     void remove_from_list_button_callback(twindow& w);
00057 
00058     void start_whisper_button_callback(twindow& w);
00059 
00060     void check_status_button_callback(twindow& w);
00061 
00062     void kick_button_callback(twindow& w);
00063 
00064     void kick_ban_button_callback(twindow& w);
00065 
00066     void do_kick_ban(bool ban);
00067 
00068     events::chat_handler& chat_;
00069 
00070     user_info& info_;
00071 
00072     ttext_box* reason_;
00073 
00074     ttext_box* time_;
00075 
00076     tlabel* relation_;
00077 
00078     tbutton* add_to_friends_;
00079 
00080     tbutton* add_to_ignores_;
00081 
00082     tbutton* remove_from_list_;
00083 
00084     bool result_open_whisper_;
00085 
00086     const lobby_info& lobby_info_;
00087 };
00088 
00089 } //end namespace gui2
00090 
00091 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:02:58 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs