diff options
Diffstat (limited to 'src/ui/toolbar/booleans-toolbar.h')
-rw-r--r-- | src/ui/toolbar/booleans-toolbar.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ui/toolbar/booleans-toolbar.h b/src/ui/toolbar/booleans-toolbar.h new file mode 100644 index 0000000..167ec40 --- /dev/null +++ b/src/ui/toolbar/booleans-toolbar.h @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * A toolbar for the Builder tool. + * + * Authors: + * Martin Owens + * + * Copyright (C) 2022 authors + * + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#ifndef INKSCAPE_UI_TOOLBAR_BOOLEANS_TOOLBAR_H +#define INKSCAPE_UI_TOOLBAR_BOOLEANS_TOOLBAR_H + +#include <gtkmm.h> + +class SPDesktop; + +namespace Inkscape { +namespace UI { +namespace Toolbar { + +class BooleansToolbar : public Gtk::Toolbar +{ +public: + static GtkWidget *create(SPDesktop *desktop); + + BooleansToolbar(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder, SPDesktop *desktop); + + void on_parent_changed(Gtk::Widget *) override; +private: + Glib::RefPtr<Gtk::Builder> _builder; + + Gtk::ToolButton &_btn_confirm; + Gtk::ToolButton &_btn_cancel; +}; + +} // namespace Toolbar +} // namespace UI +} // namespace Inkscape + +#endif // INKSCAPE_UI_TOOLBAR_BOOLEANS_TOOLBAR_H |