QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RLayerProxy.h
Go to the documentation of this file.
1
20#ifndef RLAYERPROXY_H
21#define RLAYERPROXY_H
22
23#include "../core_global.h"
24
25#include <QList>
26#include <QString>
27
28class RDocument;
29class RLayer;
30
38public:
39 virtual ~RLayerProxy() {}
40
41 virtual QString getHierarchySeparator() = 0;
42 virtual bool hasChildLayers(const RDocument* doc, const QString& layerName) = 0;
43 virtual QList<QString> getChildLayerNames(const RDocument* doc, const QString& layerName, bool recursive = true) = 0;
44 virtual QString getParentLayerName(const QString& layerName) = 0;
45 virtual QString getShortLayerName(const QString& layerName) = 0;
46 virtual QList<QString> getLayerNameHierarchy(const QString& layerName) = 0;
47 virtual bool isChildLayerOf(const QString& layerName, const QString& parentLayerName) = 0;
48};
49
50#endif
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Represents a layer in a drawing.
Definition RLayer.h:45
Proxy for advanced layer functionality.
Definition RLayerProxy.h:37
virtual bool isChildLayerOf(const QString &layerName, const QString &parentLayerName)=0
virtual QString getHierarchySeparator()=0
virtual bool hasChildLayers(const RDocument *doc, const QString &layerName)=0
virtual QString getShortLayerName(const QString &layerName)=0
virtual QList< QString > getChildLayerNames(const RDocument *doc, const QString &layerName, bool recursive=true)=0
virtual QString getParentLayerName(const QString &layerName)=0
virtual QList< QString > getLayerNameHierarchy(const QString &layerName)=0
virtual ~RLayerProxy()
Definition RLayerProxy.h:39
#define QCADCORE_EXPORT
Definition core_global.h:10