18#define GETTEXT_DOMAIN "wesnoth-lib"
32 , schedule_id_(schedule_id)
33 , schedule_name_(schedule_name)
43 connect_signal_notify_modified(
44 find_widget<text_box>(
"name_box"),
46 connect_signal_notify_modified(
47 find_widget<text_box>(
"id_box"),
53 find_widget<text_box>(
"id_box").get_value().empty()
54 || find_widget<text_box>(
"name_box").get_value().empty())
56 find_widget<button>(
"ok").set_active(
false);
58 find_widget<button>(
"ok").set_active(
true);
66 schedule_id_ = find_widget<text_box>(
"id_box").get_value();
virtual void set_active(const bool active) override
See styled_widget::set_active.
Abstract base class for all modal dialogs.
Dialog that takes new schedule ID and name from the player.
void button_state_change()
t_string & schedule_name_
virtual void post_show() override
Actions to be taken after the window has been shown.
std::string & schedule_id_
virtual void pre_show() override
Actions to be taken before showing the window.
tod_new_schedule(std::string &schedule_id, t_string &schedule_name)
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.