95 bool& copy_edge_terrain);
130 virtual const std::string&
window_id()
const override;
virtual const std::string & window_id() const override
The ID of the window to build.
void update_expand_direction()
editor_resize_map(int &width, int &height, EXPAND_DIRECTION &expand_direction, bool ©_edge_terrain)
Constructor.
field_integer * height_
The currently selected height.
toggle_button * direction_buttons_[9]
The toggle buttons show the state of expand_direction_.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
Various uncategorised dialogs.
This shows the dialog to resize the current map.
EXPAND_DIRECTION & expand_direction_
The selected expansion direction.
void set_direction_icon(int index, std::string icon)
std::size_t index(const std::string &str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
int old_width_
The original width.
Abstract base class for all modal dialogs.
int old_height_
The original height.
field_integer * width_
The execute function.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog)
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the re...
base class of top level items, the only item which needs to store the final canvases to draw on...
Template class to implement the generic field implementation.