QCAD
Open Source 2D CAD
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 "RLayer.h"
26 
27 
35 public:
36  virtual ~RLayerProxy() {}
37 
38  virtual QString getHierarchySeparator() = 0;
39  virtual bool hasChildLayers(const RDocument* doc, const QString& layerName) = 0;
40  virtual QList<QString> getChildLayerNames(const RDocument* doc, const QString& layerName, bool recursive = true) = 0;
41  virtual QString getParentLayerName(const QString& layerName) = 0;
42  virtual QString getShortLayerName(const QString& layerName) = 0;
43  virtual QList<QString> getLayerNameHierarchy(const QString& layerName) = 0;
44  virtual bool isChildLayerOf(const QString& layerName, const QString& parentLayerName) = 0;
45 };
46 
47 #endif
RLayerProxy::~RLayerProxy
virtual ~RLayerProxy()
Definition: RLayerProxy.h:36
RLayerProxy::getHierarchySeparator
virtual QString getHierarchySeparator()=0
RLayerProxy::getParentLayerName
virtual QString getParentLayerName(const QString &layerName)=0
RLayerProxy::getLayerNameHierarchy
virtual QList< QString > getLayerNameHierarchy(const QString &layerName)=0
RLayerProxy::hasChildLayers
virtual bool hasChildLayers(const RDocument *doc, const QString &layerName)=0
RLayerProxy::getShortLayerName
virtual QString getShortLayerName(const QString &layerName)=0
RDocument
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition: RDocument.h:72
RLayer.h
RLayerProxy::getChildLayerNames
virtual QList< QString > getChildLayerNames(const RDocument *doc, const QString &layerName, bool recursive=true)=0
RLayerProxy
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RLayerProxy.h:34
RLayerProxy::isChildLayerOf
virtual bool isChildLayerOf(const QString &layerName, const QString &parentLayerName)=0
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10