00001 /* $Id: folder_create.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_FOLDER_CREATE_HPP_INCLUDED 00017 #define GUI_DIALOGS_FOLDER_CREATE_HPP_INCLUDED 00018 00019 #include "gui/dialogs/dialog.hpp" 00020 00021 namespace gui2 { 00022 00023 class tfolder_create : public tdialog 00024 { 00025 public: 00026 /** 00027 * Constructor. 00028 * 00029 * @param folder_name [in] A suggested folder name. 00030 * @param folder_name [out] The folder name the user actually entered if the dialog 00031 * returns @ref twindow::OK; undefined otherwise. 00032 */ 00033 tfolder_create(std::string& folder_name); 00034 00035 /** The excute function; see @ref tdialog for more information. */ 00036 static bool execute(std::string& folder_name, CVideo& video) 00037 { 00038 return tfolder_create(folder_name).show(video); 00039 } 00040 00041 private: 00042 /** Inherited from tdialog, implemented by REGISTER_DIALOG. */ 00043 virtual const std::string& window_id() const; 00044 }; 00045 00046 } 00047 00048 #endif /* ! GUI_DIALOGS_EDIT_LABEL_INCLUDED */
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:02:42 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |