diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-06-29 21:27:45 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-06-29 21:27:45 +0000 |
| commit | 0fac5fa61dc634e57cfaae4bee119f697007166e (patch) | |
| tree | aeb2b8e7a6bb30bc334301f935a9fe2d505884b8 /src/event.h | |
| parent | Event -> XML::Event* (diff) | |
| download | inkscape-0fac5fa61dc634e57cfaae4bee119f697007166e.tar.gz inkscape-0fac5fa61dc634e57cfaae4bee119f697007166e.zip | |
added files from Gustav Broberg's patch
(bzr r1318)
Diffstat (limited to 'src/event.h')
| -rw-r--r-- | src/event.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h new file mode 100644 index 000000000..1e3e233cc --- /dev/null +++ b/src/event.h @@ -0,0 +1,55 @@ +#ifndef INKSCAPE_EVENT_H +#define INKSCAPE_EVENT_H + +/* + * Inkscape::Event -- Container for an XML::Event along with some additional information +* describing it. + * + * Author: + * Gustav Broberg <broberg@kth.se> + * + * Copyright (c) 2006 Authors + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + + +#include <glibmm/ustring.h> + +#include "xml/event-fns.h" +#include "verbs.h" + +namespace Inkscape { +namespace XML { +class Event; +} +} + +namespace Inkscape { + +struct Event { + + Event(XML::Event *_event, unsigned int _type=SP_VERB_NONE, Glib::ustring _description="") + : event (_event), type (_type), description (_description) { } + + ~Event() { sp_repr_free_log (event); } + + XML::Event *event; + const unsigned int type; + Glib::ustring description; +}; + +} // namespace Inkscape + +#endif // INKSCAPE_EVENT_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:encoding=utf-8:textwidth=99 : |
