X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdialog.h;h=6f3556586939eeabf882a3661d8063d41dcd8d03;hb=b59fab7e533ef96d72c92b224d4f24718bc6b0a1;hp=e71222739cc415acf1876f3e1f3e60a560f11752;hpb=9f38197854e699a6093a906ab43f4238f3cd2388;p=libs%2Fgltk.git diff --git a/source/dialog.h b/source/dialog.h index e712227..6f35565 100644 --- a/source/dialog.h +++ b/source/dialog.h @@ -20,6 +20,7 @@ public: { public: Loader(Dialog &, WidgetMap &); + private: void action_button(const std::string &, int); }; @@ -30,7 +31,7 @@ private: bool stale = false; public: - 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. */ @@ -40,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();