Changeset View
Changeset View
Standalone View
Standalone View
libs/image/kis_node_query_path.h
Show All 38 Lines | 31 | public: | |||
---|---|---|---|---|---|
39 | /// This function return a string representing this path. Which is a list separated by '\' of: | 39 | /// This function return a string representing this path. Which is a list separated by '\' of: | ||
40 | /// - '*': represents all layers | 40 | /// - '*': represents all layers | ||
41 | /// - '..': represents the parent layer | 41 | /// - '..': represents the parent layer | ||
42 | /// - number: index of the layer | 42 | /// - number: index of the layer | ||
43 | /// - '.': represents the current layer | 43 | /// - '.': represents the current layer | ||
44 | /// | 44 | /// | ||
45 | /// For instance: "1/*" return all children of the first layer, "../3" return the third layer of the parent | 45 | /// For instance: "1/*" return all children of the first layer, "../3" return the third layer of the parent | ||
46 | /// of the current layer | 46 | /// of the current layer | ||
47 | /// If the string starts with "/" then it's an aboslute path, otherwise it's a relative path. | 47 | /// If the string starts with "/" then it's an absolute path, otherwise it's a relative path. | ||
48 | QString toString() const; | 48 | QString toString() const; | ||
49 | /** | 49 | /** | ||
50 | * @param path | 50 | * @param path | ||
51 | * @param err if non null, it will be filled with an error message | 51 | * @param err if non null, it will be filled with an error message | ||
52 | * @see toString for an explanation of the string format | 52 | * @see toString for an explanation of the string format | ||
53 | */ | 53 | */ | ||
54 | static KisNodeQueryPath fromString(const QString& path); | 54 | static KisNodeQueryPath fromString(const QString& path); | ||
55 | static KisNodeQueryPath absolutePath(KisNodeSP node); | 55 | static KisNodeQueryPath absolutePath(KisNodeSP node); | ||
56 | private: | 56 | private: | ||
57 | struct Private; | 57 | struct Private; | ||
58 | Private* const d; | 58 | Private* const d; | ||
59 | }; | 59 | }; | ||
60 | 60 | | |||
61 | #endif | 61 | #endif |