The Battle for Wesnoth  1.17.0-dev
synced_choice_wait.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014 - 2018 by Iris Morelle <shadowm2006@gmail.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 "synced_user_choice.hpp"
19 #include "generic_event.hpp"
20 namespace gui2
21 {
22 class label;
23 class window;
24 namespace dialogs
25 {
27 {
28 public:
31 
33 
34 private:
37 
38  virtual const std::string& window_id() const override;
39 
40  virtual void pre_show(window& window) override;
41 
42  virtual void handle_generic_event(const std::string& event_name) override;
43 };
44 } // namespace dialogs
45 } // namespace gui2
synched_choice_wait(user_choice_manager &mgr)
A label displays a text, the text can be wrapped but no scrollbars are provided.
Definition: label.hpp:56
Generic file dialog.
Definition: field-fwd.hpp:22
std::string label
What to show in the filter&#39;s drop-down list.
Definition: manager.cpp:216
virtual void handle_generic_event(const std::string &event_name) override
virtual const std::string & window_id() const override
The id of the window to build.
Various uncategorised dialogs.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on...
Definition: window.hpp:64