The Battle for Wesnoth  1.15.12+dev
addon_auth.hpp
Go to the documentation of this file.
1 /*
2  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY.
10 
11  See the COPYING file for more details.
12 */
13 
14 #pragma once
15 
17 
18 namespace gui2::dialogs
19 {
20 
21 /**
22  * @ingroup GUIWindowDefinitionWML
23  *
24  * This shows the dialog to provide a password when uploading an add-on.
25  *
26  * Key |Type |Mandatory|Description
27  * ------------------|---------------|---------|-----------
28  * password | text_box |yes |The password used to verify the uploader.
29  */
30 class addon_auth : public modal_dialog
31 {
32 public:
34 
36 
37 private:
38  virtual const std::string& window_id() const override;
39 
40  virtual void pre_show(window& window) override;
41 
42  virtual void post_show(window& window) override;
43 
45 };
46 
47 } // namespace gui2::dialogs
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
Definition: addon_auth.cpp:40
addon_auth(config &cfg_)
Definition: addon_auth.cpp:29
virtual const std::string & window_id() const override
The id of the window to build.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
Definition: addon_auth.cpp:35
Abstract base class for all modal dialogs.
This shows the dialog to provide a password when uploading an add-on.
Definition: addon_auth.hpp:30
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:59
base class of top level items, the only item which needs to store the final canvases to draw on...
Definition: window.hpp:64