gui/dialogs/game_save.hpp

Go to the documentation of this file.
00001 /* $Id: game_save.hpp 53587 2012-03-21 01:44:33Z shadowmaster $ */
00002 /*
00003    Copyright (C) 2008 - 2012 by Jörg Hinrichs <joerg.hinrichs@alice-dsl.de>
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_SAVE_GAME_HPP_INCLUDED
00017 #define GUI_DIALOGS_SAVE_GAME_HPP_INCLUDED
00018 
00019 #include "gui/dialogs/dialog.hpp"
00020 #include "tstring.hpp"
00021 
00022 namespace gui2 {
00023 
00024 class tgame_save : public tdialog
00025 {
00026 public:
00027 
00028     tgame_save(std::string& filename, const std::string& title);
00029 
00030     static bool execute(std::string& filename
00031             , const std::string& title
00032             , CVideo& video)
00033     {
00034         return tgame_save(filename, title).show(video);
00035     }
00036 
00037 private:
00038 
00039     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00040     virtual const std::string& window_id() const;
00041 };
00042 
00043 class tgame_save_message : public tdialog
00044 {
00045 public:
00046     tgame_save_message(
00047               std::string& filename
00048             , const std::string& title
00049             , const std::string& message);
00050 
00051     static bool execute(
00052               std::string& filename
00053             , const std::string& title
00054             , const std::string& message
00055             , CVideo& video)
00056     {
00057         return tgame_save_message(filename, title, message).show(video);
00058     }
00059 
00060 private:
00061 
00062     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00063     virtual const std::string& window_id() const;
00064 };
00065 
00066 class tgame_save_oos : public tdialog
00067 {
00068 public:
00069     tgame_save_oos(
00070               bool& ignore_all
00071             , std::string& filename
00072             , const std::string& title
00073             , const std::string& message);
00074 
00075     static bool execute(
00076               bool& ignore_all
00077             , std::string& filename
00078             , const std::string& title
00079             , const std::string& message
00080             , CVideo& video)
00081     {
00082         return tgame_save_oos(ignore_all, filename, title, message).show(video);
00083     }
00084 private:
00085     /** Inherited from tdialog, implemented by REGISTER_DIALOG. */
00086     virtual const std::string& window_id() const;
00087 
00088 };
00089 
00090 }
00091 
00092 #endif
00093 
 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