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
virtual ~RLayerProxy()
Definition: RLayerProxy.h:36
#define QCADCORE_EXPORT
Definition: core_global.h:10
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RLayerProxy.h:34
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67