response handlers and delete the dialog. */
void add_button(Button &, int);
+ void add_button(std::unique_ptr<Button>, int);
+
+ Button &add_button(const std::string &, int);
+
/** Sets the modality of the dialog. When modal, the user can't navigate
away from the dialog. */
void set_modal(bool);
protected:
+ void connect_button(Button &, int);
void response(int);
/** Called when an action button is pressed. */