Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
event.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2#ifndef INKSCAPE_EVENT_H
3#define INKSCAPE_EVENT_H
4
5/*
6 * Inkscape::Event -- Container for an XML::Event along with some additional information
7 * describing it.
8 *
9 * Author:
10 * Gustav Broberg <broberg@kth.se>
11 *
12 * Copyright (c) 2006 Authors
13 *
14 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
15 */
16
17
18#include <glibmm/ustring.h>
19
20#include <utility>
21
22#include "xml/event-fns.h"
23
24namespace Inkscape {
25namespace XML {
26class Event;
27}
28}
29
30namespace Inkscape {
31
32class Event {
33
34public:
35
36 Event(XML::Event *_event, Glib::ustring _description="", Glib::ustring _icon_name="")
37 : event (_event), description (std::move(_description)), icon_name (std::move(_icon_name)) { }
38
39 virtual ~Event() { sp_repr_free_log (event); }
40
42 unsigned int type = 0;
43 Glib::ustring description; // The description to use in the Undo dialog.
44 Glib::ustring icon_name; // The icon to use in the Undo dialog.
45};
46
47} // namespace Inkscape
48
49#endif // INKSCAPE_EVENT_H
50
51/*
52 Local Variables:
53 mode:c++
54 c-file-style:"stroustrup"
55 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
56 indent-tabs-mode:nil
57 fill-column:99
58 End:
59*/
60// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :
Glib::ustring icon_name
Definition event.h:44
unsigned int type
Definition event.h:42
virtual ~Event()
Definition event.h:39
XML::Event * event
Definition event.h:41
Event(XML::Event *_event, Glib::ustring _description="", Glib::ustring _icon_name="")
Definition event.h:36
Glib::ustring description
Definition event.h:43
Enumeration of all XML event types.
Definition event.h:53
TODO: insert short description here.
void sp_repr_free_log(Inkscape::XML::Event *log)
Definition event.cpp:285
Helper class to stream background task notifications as a series of messages.
STL namespace.