Inkscape
Vector Graphics Editor
licensor.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
6/*
7 * Authors:
8 * bulia byak <buliabyak@users.sf.net>
9 * Bryce W. Harrington <bryce@bryceharrington.org>
10 * Lauris Kaplinski <lauris@kaplinski.com>
11 * Jon Phillips <jon@rejon.org>
12 * Ralf Stephan <ralf@ark.in-berlin.de> (Gtkmm)
13 * Abhishek Sharma
14 *
15 * Copyright (C) 2000 - 2005 Authors
16 *
17 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
18 */
19
20#ifndef INKSCAPE_UI_WIDGET_LICENSOR_H
21#define INKSCAPE_UI_WIDGET_LICENSOR_H
22
23#include <memory>
24#include <vector>
25#include <gtkmm/box.h>
26
27class SPDocument;
28struct rdf_license_t;
29
30namespace Gtk {
31class CheckButton;
32} // namespace Gtk
33
34namespace Inkscape::UI::Widget {
35
36class EntityEntry;
37class LicenseItem;
38class Registry;
39
44class Licensor final : public Gtk::Box {
45public:
46 Licensor();
47 ~Licensor() final;
48
49 void init (Registry&);
50 LicenseItem *add_item(Registry &wr, rdf_license_t const &license,
51 Gtk::CheckButton *group);
52 void update (SPDocument *doc);
53
54private:
55 std::unique_ptr<EntityEntry> _eentry;
56 std::vector<LicenseItem *> _items;
57};
58
59} // namespace Inkscape::UI::Widget
60
61#endif // INKSCAPE_UI_WIDGET_LICENSOR_H
62
63/*
64 Local Variables:
65 mode:c++
66 c-file-style:"stroustrup"
67 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
68 indent-tabs-mode:nil
69 fill-column:99
70 End:
71*/
72// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Widget for specifying a document's license; part of document preferences dialog.
Definition: licensor.h:44
std::unique_ptr< EntityEntry > _eentry
Definition: licensor.h:55
void update(SPDocument *doc)
Definition: licensor.cpp:123
std::vector< LicenseItem * > _items
Definition: licensor.h:56
LicenseItem * add_item(Registry &wr, rdf_license_t const &license, Gtk::CheckButton *group)
Definition: licensor.cpp:113
Typed SVG document implementation.
Definition: document.h:106
Definition: desktop.h:51
Custom widgets.
Definition: desktop.h:127
STL namespace.
Holds license name and RDF information.
Definition: rdf.h:33