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