summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/document-metadata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/dialog/document-metadata.h')
-rw-r--r--src/ui/dialog/document-metadata.h86
1 files changed, 86 insertions, 0 deletions
diff --git a/src/ui/dialog/document-metadata.h b/src/ui/dialog/document-metadata.h
new file mode 100644
index 0000000..7004dca
--- /dev/null
+++ b/src/ui/dialog/document-metadata.h
@@ -0,0 +1,86 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/** \file
+ * \brief Document Metadata dialog
+ */
+/* Authors:
+ * Ralf Stephan <ralf@ark.in-berlin.de>
+ * Bryce W. Harrington <bryce@bryceharrington.org>
+ *
+ * Copyright (C) 2004, 2005, 2006 Authors
+ *
+ * Released under GNU GPL v2+, read the file 'COPYING' for more information.
+ */
+
+#ifndef INKSCAPE_UI_DIALOG_DOCUMENT_METADATA_H
+#define INKSCAPE_UI_DIALOG_DOCUMENT_METADATA_H
+
+#include <list>
+#include <cstddef>
+#include "ui/widget/panel.h"
+#include <gtkmm/notebook.h>
+#include <gtkmm/grid.h>
+
+#include "inkscape.h"
+#include "ui/widget/licensor.h"
+#include "ui/widget/registry.h"
+
+namespace Inkscape {
+ namespace XML {
+ class Node;
+ }
+ namespace UI {
+ namespace Widget {
+ class EntityEntry;
+ }
+ namespace Dialog {
+
+typedef std::list<UI::Widget::EntityEntry*> RDElist;
+
+class DocumentMetadata : public Inkscape::UI::Widget::Panel {
+public:
+ void update();
+
+ static DocumentMetadata &getInstance();
+
+ static void destroy();
+
+protected:
+ void build_metadata();
+ void init();
+
+ void _handleDocumentReplaced(SPDesktop* desktop, SPDocument *document);
+ void _handleActivateDesktop(SPDesktop *desktop);
+ void _handleDeactivateDesktop(SPDesktop *desktop);
+
+ Gtk::Notebook _notebook;
+
+ Gtk::Grid _page_metadata1;
+ Gtk::Grid _page_metadata2;
+
+ //---------------------------------------------------------------
+ RDElist _rdflist;
+ UI::Widget::Licensor _licensor;
+
+ UI::Widget::Registry _wr;
+
+private:
+ ~DocumentMetadata() override;
+ DocumentMetadata();
+};
+
+} // namespace Dialog
+} // namespace UI
+} // namespace Inkscape
+
+#endif // INKSCAPE_UI_DIALOG_DOCUMENT_METADATA_H
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :