summaryrefslogtreecommitdiffstats
path: root/src/ui/toolbar/booleans-toolbar.h
blob: 167ec405de9cf24d7b9bfb258a53e291e59e2fa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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