]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dialog.h
Rework how widget ownership works in Container
[libs/gltk.git] / source / dialog.h
index cc5ed41d1cfa6a4d967b376a71114ec6f8636b59..6209ab29c4fa42ebe00678ffb170a8b4b0206da4 100644 (file)
@@ -33,11 +33,16 @@ public:
        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. */