Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_node_query_path.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2009 Cyrille Berger <cberger@cberger.net>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef _KIS_NODE_QUERY_PATH_H_
8#define _KIS_NODE_QUERY_PATH_H_
9
10#include <kis_types.h>
11#include <kritaimage_export.h>
12
16class KRITAIMAGE_EXPORT KisNodeQueryPath
17{
19public:
22 KisNodeQueryPath& operator=(const KisNodeQueryPath&);
23 QList<KisNodeSP> queryNodes(KisImageWSP image, KisNodeSP currentNode) const;
24 KisNodeSP queryUniqueNode(KisImageWSP image, KisNodeSP currentNode = 0) const;
25 bool isRelative() const;
26 // Use "///" style because of the needed "/*"
36 QString toString() const;
42 static KisNodeQueryPath fromString(const QString& path);
43 static KisNodeQueryPath absolutePath(KisNodeSP node);
44private:
45 struct Private;
46 Private* const d;
47};
48
49#endif
QString toString(const QString &value)