|
Krita Source Code Documentation
|
#include <kis_node_query_path.h>
Inheritance diagram for KisNodeQueryPath:Public Member Functions | |
| bool | isRelative () const |
| KisNodeQueryPath (const KisNodeQueryPath &) | |
| KisNodeQueryPath & | operator= (const KisNodeQueryPath &) |
| void | queryLevel (int _level, KisNodeSP _node, QList< KisNodeSP > &_result) |
| QList< KisNodeSP > | queryNodes (KisImageWSP image, KisNodeSP currentNode) const |
| KisNodeSP | queryUniqueNode (KisImageWSP image, KisNodeSP currentNode=0) const |
| void | simplifyPath () |
| This function will remove unneeded call to parent, for instance, "1/../3/../5" => "5". | |
| QString | toString () const |
| ~KisNodeQueryPath () | |
Public Member Functions inherited from Private | |
| Private (KisCanvas2 *c) | |
Static Public Member Functions | |
| static KisNodeQueryPath | absolutePath (KisNodeSP node) |
| static KisNodeQueryPath | fromString (const QString &path) |
Public Attributes | |
| QList< PathElement > | elements |
| bool | relative |
Public Attributes inherited from Private | |
| KisCanvas2 * | canvas |
| int | displayedFrame |
| int | intendedFrame |
Private Member Functions | |
| KisNodeQueryPath () | |
Private Attributes | |
| Private *const | d |
This class represent a path to access a node starting from another node.
Definition at line 28 of file kis_node_query_path.cc.
|
private |
Definition at line 92 of file kis_node_query_path.cc.
| KisNodeQueryPath::~KisNodeQueryPath | ( | ) |
| KisNodeQueryPath::KisNodeQueryPath | ( | const KisNodeQueryPath & | nqp | ) |
Definition at line 101 of file kis_node_query_path.cc.
|
static |
Definition at line 198 of file kis_node_query_path.cc.
References d, and KisNode::parent.
|
static |
| path | |
| err | if non null, it will be filled with an error message |
Definition at line 169 of file kis_node_query_path.cc.
References d, PathElement::Parent, and PathElement::Wildcard.
| bool KisNodeQueryPath::isRelative | ( | ) | const |
Definition at line 111 of file kis_node_query_path.cc.
References d.
| KisNodeQueryPath & KisNodeQueryPath::operator= | ( | const KisNodeQueryPath & | nqp | ) |
Definition at line 105 of file kis_node_query_path.cc.
References d.
|
inline |
Definition at line 57 of file kis_node_query_path.cc.
References KisNode::at(), KisNode::childCount(), dbgKrita, KisNode::firstChild(), PathElement::Index, PathElement::index, KisNode::parent, PathElement::Parent, PathElement::type, and PathElement::Wildcard.
| QList< KisNodeSP > KisNodeQueryPath::queryNodes | ( | KisImageWSP | image, |
| KisNodeSP | currentNode ) const |
Definition at line 117 of file kis_node_query_path.cc.
References d, and KisNodeFacade::root.
| KisNodeSP KisNodeQueryPath::queryUniqueNode | ( | KisImageWSP | image, |
| KisNodeSP | currentNode = 0 ) const |
Definition at line 133 of file kis_node_query_path.cc.
References KIS_ASSERT_RECOVER_NOOP, and queryNodes().
|
inline |
This function will remove unneeded call to parent, for instance, "1/../3/../5" => "5".
Definition at line 32 of file kis_node_query_path.cc.
References PathElement::Parent, and PathElement::type.
| QString KisNodeQueryPath::toString | ( | ) | const |
This function return a string representing this path. Which is a list separated by '\' of:
For instance: "1/*" return all children of the first layer, "../3" return the third layer of the parent of the current layer If the string starts with "/" then it's an absolute path, otherwise it's a relative path.
Definition at line 141 of file kis_node_query_path.cc.
References d, PathElement::Index, PathElement::index, PathElement::Parent, PathElement::type, and PathElement::Wildcard.
|
private |
Definition at line 46 of file kis_node_query_path.h.
| QList<PathElement> KisNodeQueryPath::elements |
Definition at line 29 of file kis_node_query_path.cc.
| bool KisNodeQueryPath::relative |
Definition at line 30 of file kis_node_query_path.cc.