QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RLayerListenerAdapter.h
Go to the documentation of this file.
1 #ifndef RLAYERLISTENERADAPTER_H_
2 #define RLAYERLISTENERADAPTER_H_
3 
4 #include <QObject>
5 
6 #include "RDocumentInterface.h"
7 #include "RLayerListener.h"
8 
12 class RLayerListenerAdapter: public QObject, public RLayerListener {
13 Q_OBJECT
14 
15 public:
16  RLayerListenerAdapter(QObject* parent=NULL) : QObject(parent) { }
17  virtual ~RLayerListenerAdapter() { }
18 
19  virtual void updateLayers(RDocumentInterface* documentInterface) {
20  emit layersUpdated(documentInterface);
21  }
22 
23  virtual void clearLayers() {
24  emit layersCleared();
25  }
26 
27 signals:
28  void layersUpdated(RDocumentInterface* documentInterface);
29  void layersCleared();
30 };
31 
33 
34 #endif