Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Dialog::DocumentProperties::WatchConnection Class Reference
Inheritance diagram for Inkscape::UI::Dialog::DocumentProperties::WatchConnection:
Inkscape::XML::NodeObserver

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.
 
- Private Member Functions inherited from Inkscape::XML::NodeObserver
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
 

Detailed Description

Definition at line 231 of file document-properties.h.

Constructor & Destructor Documentation

◆ WatchConnection()

Inkscape::UI::Dialog::DocumentProperties::WatchConnection::WatchConnection ( DocumentProperties dialog)
inline

Definition at line 234 of file document-properties.h.

◆ ~WatchConnection()

Inkscape::UI::Dialog::DocumentProperties::WatchConnection::~WatchConnection ( )
inlineoverride

Definition at line 238 of file document-properties.h.

References disconnect().

Member Function Documentation

◆ connect()

void Inkscape::UI::Dialog::DocumentProperties::WatchConnection::connect ( Inkscape::XML::Node node)

◆ disconnect()

void Inkscape::UI::Dialog::DocumentProperties::WatchConnection::disconnect ( )

◆ notifyAttributeChanged()

void Inkscape::UI::Dialog::DocumentProperties::WatchConnection::notifyAttributeChanged ( XML::Node node,
GQuark  name,
Util::ptr_shared  old_value,
Util::ptr_shared  new_value 
)
finalprivatevirtual

Attribute change callback.

This method is called whenever one of a node's attributes is changed.

Parameters
nodeThe changed XML node
nameGQuark corresponding to the attribute's name
old_valueOld value of the modified attribute. Is a nullptr when the attribute is added.
new_valueNew 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.

◆ notifyChildAdded()

void Inkscape::UI::Dialog::DocumentProperties::WatchConnection::notifyChildAdded ( XML::Node node,
XML::Node child,
XML::Node prev 
)
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.

Parameters
nodeThe changed XML node
childThe newly added child node
prevThe 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.

◆ notifyChildRemoved()

void Inkscape::UI::Dialog::DocumentProperties::WatchConnection::notifyChildRemoved ( XML::Node node,
XML::Node child,
XML::Node prev 
)
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.

Parameters
nodeThe changed XML node
childThe removed child node
prevThe 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.

Member Data Documentation

◆ _dialog

DocumentProperties* Inkscape::UI::Dialog::DocumentProperties::WatchConnection::_dialog
private

Definition at line 250 of file document-properties.h.

◆ _node

Inkscape::XML::Node* Inkscape::UI::Dialog::DocumentProperties::WatchConnection::_node {nullptr}
private

Definition at line 249 of file document-properties.h.

Referenced by connect().


The documentation for this class was generated from the following files: