#include "gui/auxiliary/field-fwd.hpp"
#include "gui/core/static_registry.hpp"
#include "gui/widgets/window.hpp"
#include <functional>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | gui2::dialogs::modal_dialog |
Abstract base class for all modal dialogs. More... | |
Namespaces | |
gui2 | |
Generic file dialog. | |
gui2::dialogs | |
Macros | |
#define | REGISTER_WINDOW(id) |
Registers a window. More... | |
#define | REGISTER_DIALOG2(type, id) |
Registers a window for a dialog. More... | |
#define | REGISTER_DIALOG(window_id) REGISTER_DIALOG2(window_id, window_id) |
Wrapper for REGISTER_DIALOG2. More... | |
#define | DEFINE_SIMPLE_DISPLAY_WRAPPER(dialog) |
Adds a bare-bones static display function to a dialog class that immediately invokes the dialogs's modal_dialog::show function. More... | |
#define | DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog) |
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the result of the dialogs's modal_dialog::show function. More... | |
#define DEFINE_SIMPLE_DISPLAY_WRAPPER | ( | dialog | ) |
Adds a bare-bones static display
function to a dialog class that immediately invokes the dialogs's modal_dialog::show function.
If more complex behavior is desired, the function should be defined manually.
See the modal_dialog documentation (below) for more info.
Definition at line 98 of file modal_dialog.hpp.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER | ( | dialog | ) |
Adds a bare-bonesstatic execute
function to a dialog class that immediately invokes and return the result of the dialogs's modal_dialog::show function.
If more complex behavior is desired, the function should be defined manually.
See the modal_dialog documentation (below) for more info.
Definition at line 112 of file modal_dialog.hpp.
#define REGISTER_DIALOG | ( | window_id | ) | REGISTER_DIALOG2(window_id, window_id) |
Wrapper for REGISTER_DIALOG2.
"Calls" REGISTER_DIALOG2(window_id, window_id)
Definition at line 89 of file modal_dialog.hpp.
#define REGISTER_DIALOG2 | ( | type, | |
id | |||
) |
Registers a window for a dialog.
Call this function to register a window. In the header of the class it adds the following code:
Then use this macro in the implementation, inside the gui2 namespace.
id
is "foo" and the type tfoo it's easier to use REGISTER_DIALOG(foo).type | Class type of the window to register. |
id | Id of the window, multiple dialogs can use the same window so the id doesn't need to be unique. |
Definition at line 76 of file modal_dialog.hpp.
#define REGISTER_WINDOW | ( | id | ) |
Registers a window.
This function registers a window. The registration is used to validate whether the config for the window exists when starting Wesnoth.
id | Id of the window, multiple dialogs can use the same window so the id doesn't need to be unique. |
Definition at line 41 of file modal_dialog.hpp.