summaryrefslogtreecommitdiffstats
path: root/src/xml/event.h
diff options
context:
space:
mode:
authorJoseph Da Silva <joseph.f.dasilva3@gmail.com>2019-03-20 15:52:46 +0000
committerJoseph Da Silva <joseph.f.dasilva3@gmail.com>2019-03-20 15:52:46 +0000
commit7a6a1baa2b891c16edd7fbb86be3179f92adaee2 (patch)
tree4c6dfc999dcc4ba532d4c6387f0ac52ac6019008 /src/xml/event.h
parentGTK-3.22 dependency (diff)
downloadinkscape-7a6a1baa2b891c16edd7fbb86be3179f92adaee2.tar.gz
inkscape-7a6a1baa2b891c16edd7fbb86be3179f92adaee2.zip
Fixed: circles and ellipses had wrong element names in XML editor (Issue #116)
Diffstat (limited to 'src/xml/event.h')
-rw-r--r--src/xml/event.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/xml/event.h b/src/xml/event.h
index f8e832621..4256eea0d 100644
--- a/src/xml/event.h
+++ b/src/xml/event.h
@@ -225,6 +225,25 @@ private:
void _replayOne(NodeObserver &observer) const override;
};
+/**
+ * @brief Object representing element name change.
+ */
+class EventChgElementName : public Event {
+public:
+ EventChgElementName(Node* repr, GQuark old_name, GQuark new_name, Event* next)
+ : Event(repr, next), old_name(old_name), new_name(new_name) {}
+
+ /// GQuark corresponding to the old element name.
+ GQuark old_name;
+ /// GQuark corresponding to the new element name.
+ GQuark new_name;
+
+private:
+ Event* _optimizeOne() override;
+ void _undoOne(NodeObserver& observer) const override;
+ void _replayOne(NodeObserver& observer) const override;
+};
+
}
}