]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/dialog.h
Style and comment updates
[libs/gltk.git] / source / dialog.h
index 3eb3f98d2845cbe77a68f592ce418dc38103597d..6f3556586939eeabf882a3661d8063d41dcd8d03 100644 (file)
@@ -20,6 +20,7 @@ public:
        {
        public:
                Loader(Dialog &, WidgetMap &);
+
        private:
                void action_button(const std::string &, int);
        };
@@ -27,12 +28,10 @@ public:
        sigc::signal<void, int> signal_response;
 
 private:
-       bool stale;
+       bool stale = false;
 
 public:
-       Dialog();
-
-       virtual const char *get_class() const { return "dialog"; }
+       const char *get_class() const override { return "dialog"; }
 
        /** Adds an action button to the dialog.  Pressing the button will invoke
        response handlers and delete the dialog. */
@@ -42,9 +41,9 @@ public:
        away from the dialog. */
        void set_modal(bool);
 
-       virtual void button_release(int, int, unsigned);
-       virtual bool key_release(unsigned, unsigned);
-       virtual bool navigate(Navigation);
+       void button_release(int, int, unsigned) override;
+       bool key_release(unsigned, unsigned) override;
+       bool navigate(Navigation) override;
 protected:
        void response(int);
        void check_stale();