Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
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
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
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
00086 virtual const std::string& window_id() const;
00087
00088 };
00089
00090 }
00091
00092 #endif
00093