00001 /* $Id: description.hpp 53339 2012-03-01 00:37:18Z shadowmaster $ */ 00002 /* 00003 Copyright (C) 2010 - 2012 by Ignacio R. Morelle <shadowm2006@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_ADDON_DESCRIPTION_HPP_INCLUDED 00017 #define GUI_DIALOGS_ADDON_DESCRIPTION_HPP_INCLUDED 00018 00019 #include "gui/dialogs/dialog.hpp" 00020 00021 #include "addon/info.hpp" 00022 #include "addon/state.hpp" 00023 00024 namespace gui2 { 00025 00026 class taddon_description : public tdialog 00027 { 00028 public: 00029 00030 /** 00031 * Constructor. 00032 * 00033 * @param addon The information about the addon to show. 00034 */ 00035 taddon_description(const addon_info& addon, const addon_tracking_info& state); 00036 00037 /** The display function see @ref tdialog for more information. */ 00038 static void display(const addon_info& addon, const addon_tracking_info& state, CVideo& video) 00039 { 00040 taddon_description(addon, state).show(video); 00041 } 00042 00043 private: 00044 00045 /** Inherited from tdialog, implemented by REGISTER_DIALOG. */ 00046 virtual const std::string& window_id() const; 00047 }; 00048 00049 } 00050 00051 #endif
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |