QCAD
Open Source 2D CAD
RFocusListener.h
Go to the documentation of this file.
1 
20 #ifndef RFOCUSLISTENER_H
21 #define RFOCUSLISTENER_H
22 
23 #include "core_global.h"
24 
25 class RDocumentInterface;
26 
27 
28 
37 public:
38  virtual ~RFocusListener() {}
39 
46  virtual void updateFocus(RDocumentInterface* di) = 0;
47 };
48 
50 
51 #endif
RFocusListener
Abstract base class for classes that are interested in the current focus.
Definition: RFocusListener.h:36
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
core_global.h
RFocusListener::updateFocus
virtual void updateFocus(RDocumentInterface *di)=0
Called by the document whenever the focus changed from one MDI to another.
RFocusListener::~RFocusListener
virtual ~RFocusListener()
Definition: RFocusListener.h:38
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