The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
game_save.hpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2008 - 2025
3 by Jörg Hinrichs <joerg.hinrichs@alice-dsl.de>
4 Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY.
12
13 See the COPYING file for more details.
14*/
15
16#pragma once
17
19
20namespace gui2::dialogs
21{
22
23class game_save : public modal_dialog
24{
25public:
26 game_save(std::string& filename, const std::string& title);
27
29
30private:
31 virtual const std::string& window_id() const override;
32};
33
35{
36public:
37 game_save_message(std::string& filename,
38 const std::string& title,
39 const std::string& message);
40
42
43private:
44 virtual const std::string& window_id() const override;
45};
46
48{
49public:
50 game_save_oos(bool& ignore_all,
51 std::string& filename,
52 const std::string& title,
53 const std::string& message);
54
56
57private:
58 virtual const std::string& window_id() const override;
59};
60} // namespace dialogs
virtual const std::string & window_id() const override
The ID of the window to build.
virtual const std::string & window_id() const override
The ID of the window to build.
virtual const std::string & window_id() const override
The ID of the window to build.
Main class to show messages to the user.
Definition message.hpp:36
Abstract base class for all modal dialogs.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog)
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the re...
std::string filename
Filename.