Inkscape
Vector Graphics Editor
entity-entry.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Authors:
4 * Ralf Stephan <ralf@ark.in-berlin.de>
5 *
6 * Copyright (C) 2005 Authors
7 *
8 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
9 */
10
11#ifndef SEEN_INKSCAPE_UI_WIDGET_ENTITY_ENTRY_H
12#define SEEN_INKSCAPE_UI_WIDGET_ENTITY_ENTRY_H
13
14#include <glibmm/ustring.h>
15#include <gtkmm/label.h>
16#include <gtkmm/textview.h>
17
19class SPDocument;
20
21namespace Gtk {
22class TextBuffer;
23}
24
25namespace Inkscape::UI::Widget {
26
27class Registry;
28
30public:
31 static EntityEntry* create (rdf_work_entity_t* ent, Registry& wr);
32 virtual ~EntityEntry() = 0;
33 virtual void update(SPDocument* doc, bool read_only) = 0;
34 virtual void on_changed() = 0;
35 virtual void load_from_preferences() = 0;
36 virtual Glib::ustring content() const = 0;
38 Gtk::Label _label;
39 Gtk::Widget *_packable;
40
41protected:
43 sigc::connection _changed_connection;
46};
47
49public:
51 ~EntityLineEntry() override;
52 void update(SPDocument* doc, bool read_only) override;
53 void load_from_preferences() override;
54 Glib::ustring content() const override;
55
56protected:
57 void on_changed() override;
58};
59
61public:
63 ~EntityMultiLineEntry() override;
64 void update(SPDocument* doc, bool read_only) override;
65 void load_from_preferences() override;
66 Glib::ustring content() const override;
67
68protected:
69 void on_changed() override;
70 Gtk::TextView _v;
71};
72
73} // Inkscape::UI::Widget
74
75#endif // SEEN_INKSCAPE_UI_WIDGET_ENTITY_ENTRY_H
76
77/*
78 Local Variables:
79 mode:c++
80 c-file-style:"stroustrup"
81 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
82 indent-tabs-mode:nil
83 fill-column:99
84 End:
85*/
86// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
void save_to_preferences(SPDocument *doc)
virtual void update(SPDocument *doc, bool read_only)=0
virtual Glib::ustring content() const =0
virtual void load_from_preferences()=0
static EntityEntry * create(rdf_work_entity_t *ent, Registry &wr)
sigc::connection _changed_connection
Definition: entity-entry.h:43
EntityEntry(rdf_work_entity_t *ent, Registry &wr)
Glib::ustring content() const override
EntityLineEntry(rdf_work_entity_t *ent, Registry &wr)
void update(SPDocument *doc, bool read_only) override
void update(SPDocument *doc, bool read_only) override
EntityMultiLineEntry(rdf_work_entity_t *ent, Registry &wr)
Glib::ustring content() const override
Typed SVG document implementation.
Definition: document.h:106
Definition: desktop.h:51
Custom widgets.
Definition: desktop.h:127
Holds known RDF/Work tags.
Definition: rdf.h:71