gui/dialogs/addon/uninstall_list.hpp

Go to the documentation of this file.
00001 /* $Id: uninstall_list.hpp 52869 2012-02-03 20:18:33Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2011 - 2012 by Ignacio Riquelme 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_UNINSTALL_LIST_HPP_INCLUDED
00017 #define GUI_DIALOGS_ADDON_UNINSTALL_LIST_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 
00021 #include <map>
00022 
00023 namespace gui2 {
00024 
00025 class taddon_uninstall_list : public tdialog
00026 {
00027 public:
00028 
00029     /**
00030      * Constructor.
00031      *
00032      * @param addon_ids               The information about the addon to show.
00033      */
00034     explicit taddon_uninstall_list(const std::vector<std::string>& addon_ids)
00035         : ids_(addon_ids), names_(), selections_() {}
00036 
00037     std::vector<std::string> selected_addons() const;
00038 
00039 private:
00040     std::vector<std::string> ids_;
00041     std::vector<std::string> names_;
00042     std::map<std::string, bool> selections_;
00043 
00044     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00045     virtual const std::string& window_id() const;
00046 
00047     /** Inherited from tdialog. */
00048     void pre_show(CVideo& video, twindow& window);
00049 
00050     /** Inherited from tdialog. */
00051     void post_show(twindow& window);
00052 };
00053 
00054 } // namespace gui2
00055 
00056 #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:57 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs