The Battle for Wesnoth 1.21.0-dev
 
Loading...
Searching...
No Matches
gui_test_dialog.cpp
Go to the documentation of this file.
1/*
2 Copyright (C) 2023 - 2025
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#define GETTEXT_DOMAIN "wesnoth-lib"
16
18
20
21namespace gui2::dialogs
22{
23
24REGISTER_DIALOG(gui_test_dialog)
25
27 : modal_dialog(window_id())
28{
29}
30
34
38
39} // namespace gui2::dialogs
A test dialog for testing various gui2 features.
virtual void post_show() override
Actions to be taken after the window has been shown.
virtual void pre_show() override
The display function.
Abstract base class for all modal dialogs.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.