Context for the "About" label
[inkscape.git] / src / ui / widget / document-templates.h
blobc2925e36d21e0dd83d794a02415a681b003fee2c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 //
3 // Created by Michael Kowalski on 1/23/2025.
4 //
6 #ifndef DOCUMENT_TEMPLATES_H
7 #define DOCUMENT_TEMPLATES_H
9 #include <gtkmm/box.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 {
19 public:
20 DocumentTemplates();
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);
29 private:
30 Gtk::Box _header;
31 Gtk::Label _hint;
32 Gtk::Label _find;
33 Gtk::SearchEntry2 _search;
34 Gtk::StackSidebar _categories;
35 TemplateList _templates;
36 // Gtk::Box _footer;
37 Gtk::Box _start;
38 Gtk::Box _end;
39 Gtk::CenterBox _footer;
42 } // namespace
44 #endif //DOCUMENT_TEMPLATES_H