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