18 #define GETTEXT_DOMAIN "wesnoth-lib"
32 , schedule_id_(schedule_id)
33 , schedule_name_(schedule_name)
41 find_widget<button>(
"ok").set_active(
false);
44 find_widget<text_box>(
"name_box"),
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();
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)
REGISTER_DIALOG(editor_edit_unit)
void connect_signal_notify_modified(dispatcher &dispatcher, const signal_notification &signal)
Connects a signal handler for getting a notification upon modification.