1 // SPDX-License-Identifier: GPL-2.0-or-later
3 // Created by Michael Kowalski on 1/23/2025.
6 #ifndef DOCUMENT_TEMPLATES_H
7 #define DOCUMENT_TEMPLATES_H
10 #include <gtkmm/grid.h>
11 #include <gtkmm/searchentry2.h>
12 #include <gtkmm/stacksidebar.h>
14 #include "template-list.h"
16 namespace Inkscape::UI::Widget
{
18 class DocumentTemplates
: public Gtk::Grid
{
22 TemplateList
& templates() { return _templates
; }
23 enum ButtonLocation
{Start
, Center
, End
};
24 void add_button(Gtk::Widget
& button
, ButtonLocation pos
);
25 void show_page_selector(bool show
);
26 void show_header(bool show
);
27 void set_content(Gtk::Widget
& widget
);
33 Gtk::SearchEntry2 _search
;
34 Gtk::StackSidebar _categories
;
35 TemplateList _templates
;
39 Gtk::CenterBox _footer
;
44 #endif //DOCUMENT_TEMPLATES_H