Inkscape
Vector Graphics Editor
|
Public Member Functions | |
WatchConnection (DocumentProperties *dialog) | |
~WatchConnection () override | |
void | connect (Inkscape::XML::Node *node) |
void | disconnect () |
Private Member Functions | |
void | notifyChildAdded (XML::Node &node, XML::Node &child, XML::Node *prev) final |
Child addition callback. | |
void | notifyChildRemoved (XML::Node &node, XML::Node &child, XML::Node *prev) final |
Child removal callback. | |
void | notifyAttributeChanged (XML::Node &node, GQuark name, Util::ptr_shared old_value, Util::ptr_shared new_value) final |
Attribute change callback. | |
![]() | |
virtual | ~NodeObserver ()=default |
virtual void | notifyChildOrderChanged (Node &node, Node &child, Node *old_prev, Node *new_prev) |
Child order change callback. | |
virtual void | notifyContentChanged (Node &node, Util::ptr_shared old_content, Util::ptr_shared new_content) |
Content change callback. | |
virtual void | notifyElementNameChanged (Node &node, GQuark old_name, GQuark new_name) |
Element name change callback. | |
NodeObserver ()=default | |
Private Attributes | |
Inkscape::XML::Node * | _node {nullptr} |
DocumentProperties * | _dialog |
Definition at line 231 of file document-properties.h.
|
inline |
Definition at line 234 of file document-properties.h.
|
inlineoverride |
Definition at line 238 of file document-properties.h.
References disconnect().
void Inkscape::UI::Dialog::DocumentProperties::WatchConnection::connect | ( | Inkscape::XML::Node * | node | ) |
Definition at line 1547 of file document-properties.cpp.
References _node, Inkscape::XML::Node::addObserver(), disconnect(), and node.
Referenced by Inkscape::UI::Dialog::DocumentProperties::documentReplaced().
void Inkscape::UI::Dialog::DocumentProperties::WatchConnection::disconnect | ( | ) |
Definition at line 1556 of file document-properties.cpp.
Referenced by connect(), Inkscape::UI::Dialog::DocumentProperties::documentReplaced(), and ~WatchConnection().
|
finalprivatevirtual |
Attribute change callback.
This method is called whenever one of a node's attributes is changed.
node | The changed XML node |
name | GQuark corresponding to the attribute's name |
old_value | Old value of the modified attribute. Is a nullptr when the attribute is added. |
new_value | New value of the modified attribute. Is a nullptr when the attribute is removed. |
Reimplemented from Inkscape::XML::NodeObserver.
Definition at line 1575 of file document-properties.cpp.
|
finalprivatevirtual |
Child addition callback.
This method is called whenever a child is added to the observed node. The prev
parameter is NULL when the newly added child is first in the sibling order.
node | The changed XML node |
child | The newly added child node |
prev | The node after which the new child was inserted into the sibling order, or NULL |
Reimplemented from Inkscape::XML::NodeObserver.
Definition at line 1563 of file document-properties.cpp.
References child.
|
finalprivatevirtual |
Child removal callback.
This method is called whenever a child is removed from the observed node. The prev
parameter is NULL when the removed child was first in the sibling order.
node | The changed XML node |
child | The removed child node |
prev | The node that was before the removed node in sibling order, or NULL |
Reimplemented from Inkscape::XML::NodeObserver.
Definition at line 1570 of file document-properties.cpp.
References child.
|
private |
Definition at line 250 of file document-properties.h.
|
private |
Definition at line 249 of file document-properties.h.
Referenced by connect().