The Battle for Wesnoth  1.19.2+dev
game_save.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2008 - 2024
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 
20 namespace gui2::dialogs
21 {
22 
23 class game_save : public modal_dialog
24 {
25 public:
26  game_save(std::string& filename, const std::string& title);
27 
29 
30 private:
31  virtual const std::string& window_id() const override;
32 };
33 
35 {
36 public:
37  game_save_message(std::string& filename,
38  const std::string& title,
39  const std::string& message);
40 
42 
43 private:
44  virtual const std::string& window_id() const override;
45 };
46 
48 {
49 public:
50  game_save_oos(bool& ignore_all,
51  std::string& filename,
52  const std::string& title,
53  const std::string& message);
54 
56 
57 private:
58  virtual const std::string& window_id() const override;
59 };
60 } // namespace dialogs
game_save_message(std::string &filename, const std::string &title, const std::string &message)
Definition: game_save.cpp:36
virtual const std::string & window_id() const override
The ID of the window to build.
game_save_oos(bool &ignore_all, std::string &filename, const std::string &title, const std::string &message)
Definition: game_save.cpp:48
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.
game_save(std::string &filename, const std::string &title)
Definition: game_save.cpp:27
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...