// SPDX-License-Identifier: GPL-2.0-or-later #ifndef INKSCAPE_UI_WIDGET_CANVAS_NOTICE_H #define INKSCAPE_UI_WIDGET_CANVAS_NOTICE_H #include #include #include #include #include #include #include "helper/auto-connection.h" namespace Inkscape { namespace UI { namespace Widget { class CanvasNotice : public Gtk::Revealer { public: static CanvasNotice *create(); CanvasNotice(BaseObjectType *cobject, Glib::RefPtr refGlade); void show(Glib::ustring const &msg, unsigned timeout = 0); void hide(); private: Glib::RefPtr _builder; Gtk::Image& _icon; Gtk::Label& _label; Inkscape::auto_connection _timeout; }; }}} // namespaces #endif // INKSCAPE_UI_WIDGET_CANVAS_NOTICE_H