Inkscape
Vector Graphics Editor
|
Object representing content change. More...
#include <event.h>
Public Member Functions | |
EventChgContent (Node *repr, Inkscape::Util::ptr_shared ov, Inkscape::Util::ptr_shared nv, Event *next) | |
![]() | |
virtual | ~Event ()=default |
Event * | optimizeOne () |
If possible, combine this event with the next to reduce memory use. | |
void | undoOne (NodeObserver &observer) const |
Undo this event to an observer. | |
void | replayOne (NodeObserver &observer) const |
Replay this event to an observer. | |
![]() | |
void * | operator new (std::size_t size, ScanPolicy scan=default_scan, CollectionPolicy collect=default_collect) |
void * | operator new[] (std::size_t size, ScanPolicy scan=default_scan, CollectionPolicy collect=default_collect) |
void | operator delete (void *p) |
Public Attributes | |
Inkscape::Util::ptr_shared | oldval |
Content of the node before the change. | |
Inkscape::Util::ptr_shared | newval |
Content of the node after the change. | |
![]() | |
Event * | next |
Pointer to the next event in the event chain. | |
int | serial |
Serial number of the event, not used at the moment. | |
Node * | repr |
Pointer to the node that was the object of the event. | |
Private Member Functions | |
Event * | _optimizeOne () override |
void | _undoOne (NodeObserver &observer) const override |
void | _replayOne (NodeObserver &observer) const override |
Additional Inherited Members | |
![]() | |
typedef Inkscape::Util::ForwardPointerIterator< Event, IteratorStrategy > | Iterator |
typedef Inkscape::Util::ForwardPointerIterator< Event const, IteratorStrategy > | ConstIterator |
![]() | |
Event (Node *r, Event *n) | |
|
inline |
|
overrideprivatevirtual |
Implements Inkscape::XML::Event.
Definition at line 363 of file event.cpp.
References Inkscape::XML::Event::next, oldval, and Inkscape::XML::Event::repr.
|
overrideprivatevirtual |
Implements Inkscape::XML::Event.
Definition at line 240 of file event.cpp.
References Inkscape::XML::NodeObserver::notifyContentChanged(), and observer.
|
overrideprivatevirtual |
Implements Inkscape::XML::Event.
Definition at line 172 of file event.cpp.
References Inkscape::XML::NodeObserver::notifyContentChanged(), and observer.
Inkscape::Util::ptr_shared Inkscape::XML::EventChgContent::newval |
Inkscape::Util::ptr_shared Inkscape::XML::EventChgContent::oldval |
Content of the node before the change.
Definition at line 196 of file event.h.
Referenced by _optimizeOne().