diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /src/event.h | |
parent | Initial commit. (diff) | |
download | inkscape-upstream.tar.xz inkscape-upstream.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/event.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/src/event.h b/src/event.h new file mode 100644 index 0000000..f51386a --- /dev/null +++ b/src/event.h @@ -0,0 +1,60 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#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 v2+, read the file 'COPYING' for more information. + */ + + +#include <glibmm/ustring.h> + +#include <utility> + +#include "xml/event-fns.h" + +namespace Inkscape { +namespace XML { +class Event; +} +} + +namespace Inkscape { + +class Event { + +public: + + Event(XML::Event *_event, Glib::ustring _description="", Glib::ustring _icon_name="") + : event (_event), description (std::move(_description)), icon_name (std::move(_icon_name)) { } + + virtual ~Event() { sp_repr_free_log (event); } + + XML::Event *event; + unsigned int type = 0; + Glib::ustring description; // The description to use in the Undo dialog. + Glib::ustring icon_name; // The icon to use in the Undo dialog. +}; + +} // 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:fileencoding=utf-8:textwidth=99 : |