Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #define GETTEXT_DOMAIN "wesnoth-lib"
00017
00018 #include "gui/dialogs/game_save.hpp"
00019
00020 #include "foreach.hpp"
00021 #include "gettext.hpp"
00022 #include "gui/dialogs/field.hpp"
00023 #include "gui/widgets/button.hpp"
00024 #include "gui/widgets/label.hpp"
00025 #include "gui/widgets/settings.hpp"
00026
00027 namespace gui2 {
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048 REGISTER_DIALOG(game_save)
00049
00050 tgame_save::tgame_save(std::string& filename, const std::string& title)
00051 {
00052 register_text("txtFilename", false, filename, true);
00053 register_label("lblTitle", true, title);
00054 }
00055
00056 REGISTER_DIALOG(game_save_message)
00057
00058 tgame_save_message::tgame_save_message(
00059 std::string& filename
00060 , const std::string& title
00061 , const std::string& message)
00062 {
00063 register_label("lblTitle", true, title);
00064 register_text("txtFilename", false, filename, true);
00065 register_label("lblMessage", true, message);
00066 }
00067
00068 REGISTER_DIALOG(game_save_oos)
00069
00070 tgame_save_oos::tgame_save_oos(
00071 bool& ignore_all
00072 , std::string& filename
00073 , const std::string& title
00074 , const std::string& message)
00075 {
00076 register_label("lblTitle", true, title);
00077 register_text("txtFilename", false, filename, true);
00078 register_label("lblMessage", true, message);
00079 register_bool("ignore_all", true, ignore_all);
00080
00081
00082 set_always_save_fields(true);
00083 }
00084
00085 }
00086