The Battle for Wesnoth  1.15.1+dev
depcheck_confirm_change.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2012 - 2018 by Boldizs√°r Lipka <lipkab@zoho.com>
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
18 #include <vector>
19 #include <string>
20 
21 namespace gui2
22 {
23 namespace dialogs
24 {
25 
27 {
28 public:
29  /**
30  * Constructor.
31  *
32  * @param action true if the listed modifications are to be enabled,
33  * false if they're to be disabled
34  * @param mods the names of the affected modifications
35  * @param requester the name of the component which requests the change
36  *
37  */
38  depcheck_confirm_change(bool action,
39  const std::vector<std::string>& mods,
40  const std::string& requester);
41 
42 protected:
43  /** Inherited from modal_dialog, implemented by REGISTER_DIALOG. */
44  virtual const std::string& window_id() const override;
45 };
46 
47 } // namespace dialogs
48 } // namespace gui2
depcheck_confirm_change(bool action, const std::vector< std::string > &mods, const std::string &requester)
Constructor.
Generic file dialog.
Definition: field-fwd.hpp:22
Various uncategorised dialogs.
virtual const std::string & window_id() const override
Inherited from modal_dialog, implemented by REGISTER_DIALOG.
Abstract base class for all modal dialogs.