1 #ifndef INKSCAPE_EVENT_H
2 #define INKSCAPE_EVENT_H
4 /*
5 * Inkscape::Event -- Container for an XML::Event along with some additional information
6 * describing it.
7 *
8 * Author:
9 * Gustav Broberg <broberg@kth.se>
10 *
11 * Copyright (c) 2006 Authors
12 *
13 * Released under GNU GPL, read the file 'COPYING' for more information
14 */
17 #include <glibmm/ustring.h>
19 #include "xml/event-fns.h"
20 #include "verbs.h"
22 namespace Inkscape {
23 namespace XML {
24 class Event;
25 }
26 }
28 namespace Inkscape {
30 struct Event {
32 Event(XML::Event *_event, unsigned int _type=SP_VERB_NONE, Glib::ustring _description="")
33 : event (_event), type (_type), description (_description) { }
35 virtual ~Event() { sp_repr_free_log (event); }
37 XML::Event *event;
38 const unsigned int type;
39 Glib::ustring description;
40 };
42 } // namespace Inkscape
44 #endif // INKSCAPE_EVENT_H
46 /*
47 Local Variables:
48 mode:c++
49 c-file-style:"stroustrup"
50 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
51 indent-tabs-mode:nil
52 fill-column:99
53 End:
54 */
55 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :