From c853ffb5b2f75f5a889ed2e3ef89b818a736e87a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:50:49 +0200 Subject: Adding upstream version 1.3+ds. Signed-off-by: Daniel Baumann --- src/ui/dialog/save-template-dialog.h | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 src/ui/dialog/save-template-dialog.h (limited to 'src/ui/dialog/save-template-dialog.h') diff --git a/src/ui/dialog/save-template-dialog.h b/src/ui/dialog/save-template-dialog.h new file mode 100644 index 0000000..eb702ca --- /dev/null +++ b/src/ui/dialog/save-template-dialog.h @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/** @file + * TODO: insert short description here + *//* + * Authors: see git history + * + * Copyright (C) 2017 Authors + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ +#ifndef INKSCAPE_SEEN_UI_DIALOG_SAVE_TEMPLATE_H +#define INKSCAPE_SEEN_UI_DIALOG_SAVE_TEMPLATE_H + +#include + +namespace Gtk { +class Builder; +class CheckButton; +class Dialog; +class Entry; +class Window; +} + +namespace Inkscape { +namespace UI { +namespace Dialog { + +class SaveTemplate +{ + +public: + + static void save_document_as_template(Gtk::Window &parentWindow); + +protected: + + void on_name_changed(); + +private: + + Gtk::Dialog *dialog; + + Gtk::Entry *name; + Gtk::Entry *author; + Gtk::Entry *description; + Gtk::Entry *keywords; + + Gtk::CheckButton *set_default_template; + + SaveTemplate(Gtk::Window &parent); + void save_template(Gtk::Window &parent); + +}; +} +} +} +#endif -- cgit v1.2.3