43 NameChooser::NameChooser (Window &parent,
46 : Dialog::Dialog(title, parent, true)
47 , caption_(_(
"Name:"))
50 name_.set_text (defaultName);
51 name_.set_activates_default();
53 hBox_.pack_start (caption_);
54 hBox_.pack_start (name_);
57 Box*
const v_box = get_vbox();
58 REQUIRE (v_box != NULL);
59 v_box->pack_start (hBox_);
64 set_resizable (
false);
67 add_button (Stock::CANCEL, RESPONSE_CANCEL);
68 add_button (Stock::OK, RESPONSE_OK);
69 set_default_response (RESPONSE_OK);
static const int BorderPadding
The space in pixels to pad the border of Lumiera dialog boxes.
Lumiera GTK UI implementation root.
static const int BoxSpacing
The spacing for VBoxes and HBoxes in Lumiera dialogs.
Global constants and definitions for dialogs.
Dialog to enter a string name.
A set of basic GTK includes for the UI.