1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /** @file 3 * @brief New From Template - template widget 4 */ 5 /* Authors: 6 * Jan Darowski <jan.darowski@gmail.com>, supervised by Krzysztof Kosiński 7 * 8 * Copyright (C) 2013 Authors 9 * Released under GNU GPL v2+, read the file 'COPYING' for more information. 10 */ 11 12 #ifndef INKSCAPE_SEEN_UI_DIALOG_TEMPLATE_WIDGET_H 13 #define INKSCAPE_SEEN_UI_DIALOG_TEMPLATE_WIDGET_H 14 15 #include "svg-preview.h" 16 17 #include <gtkmm/box.h> 18 19 #include "template-load-tab.h" 20 21 22 namespace Inkscape { 23 namespace UI { 24 25 26 class TemplateWidget : public Gtk::Box 27 { 28 public: 29 TemplateWidget (); 30 void create(); 31 void display(TemplateLoadTab::TemplateData); 32 void clear(); 33 34 private: 35 TemplateLoadTab::TemplateData _current_template; 36 37 Gtk::Button _more_info_button; 38 Gtk::Box _preview_box; 39 Gtk::Image _preview_image; 40 Dialog::SVGPreview _preview_render; 41 Gtk::Label _short_description_label; 42 Gtk::Label _template_name_label; 43 Gtk::Widget *_effect_prefs; 44 45 void _displayTemplateDetails(); 46 }; 47 48 } 49 } 50 51 #endif 52