diff options
Diffstat (limited to 'src/ui/widget/canvas-notice.h')
-rw-r--r-- | src/ui/widget/canvas-notice.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ui/widget/canvas-notice.h b/src/ui/widget/canvas-notice.h new file mode 100644 index 0000000..88c7bed --- /dev/null +++ b/src/ui/widget/canvas-notice.h @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + + +#ifndef INKSCAPE_UI_WIDGET_CANVAS_NOTICE_H +#define INKSCAPE_UI_WIDGET_CANVAS_NOTICE_H + +#include <glibmm/refptr.h> +#include <gtkmm/builder.h> + +#include <gtkmm/revealer.h> +#include <gtkmm/image.h> +#include <gtkmm/label.h> +#include <gtkmm/button.h> + +#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<Gtk::Builder> refGlade); + void show(Glib::ustring const &msg, unsigned timeout = 0); + void hide(); +private: + Glib::RefPtr<Gtk::Builder> _builder; + + Gtk::Image& _icon; + Gtk::Label& _label; + + Inkscape::auto_connection _timeout; +}; + +}}} // namespaces + +#endif // INKSCAPE_UI_WIDGET_CANVAS_NOTICE_H |