QCAD
Open Source 2D CAD
RPenListener.h
Go to the documentation of this file.
1 
20 #ifndef RPENLISTENER_H
21 #define RPENLISTENER_H
22 
23 #include "core_global.h"
24 
25 class RDocumentInterface;
26 
27 
28 
38 public:
39  virtual ~RPenListener() {}
40 
44  virtual void updatePen(RDocumentInterface* documentInterface) = 0;
45 
49  virtual void clearPen() = 0;
50 };
51 
53 
54 #endif
RPenListener::updatePen
virtual void updatePen(RDocumentInterface *documentInterface)=0
This method is called whenever the current pen has changed.
RPenListener::~RPenListener
virtual ~RPenListener()
Definition: RPenListener.h:39
RPenListener::clearPen
virtual void clearPen()=0
This method is called to signal that no document is currently active.
RPenListener
Abstract base class for classes that are interested in being notified whenever the current pen change...
Definition: RPenListener.h:37
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
core_global.h
RDocumentInterface
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85
QCADCORE_EXPORT
#define QCADCORE_EXPORT
Definition: core_global.h:10