26 #if ! defined (octave_GenericEventNotify_h)
27 #define octave_GenericEventNotify_h 1
74 if (
r->eventNotifyBefore (obj, evt))
85 r->eventNotifyAfter (obj, evt);
90 #define DECLARE_GENERICEVENTNOTIFY_SENDER(T,B) \
91 class T : public B, public GenericEventNotifySender \
94 T (QWidget *xparent) : B (xparent), GenericEventNotifySender () { } \
95 ~ T (void) = default; \
97 bool event (QEvent *evt) \
100 if (! notifyReceiversBefore (this, evt)) \
101 result = B::event (evt); \
102 notifyReceiversAfter (this, evt); \
GenericEventNotifyReceiver(void)
virtual ~GenericEventNotifyReceiver(void)=default
virtual bool eventNotifyBefore(QObject *obj, QEvent *evt)=0
virtual void eventNotifyAfter(QObject *obj, QEvent *evt)=0
void notifyReceiversAfter(QObject *obj, QEvent *evt)
virtual ~GenericEventNotifySender(void)=default
void addReceiver(GenericEventNotifyReceiver *r)
GenericEventNotifySender(void)
void removeReceiver(GenericEventNotifyReceiver *r)
bool notifyReceiversBefore(QObject *obj, QEvent *evt)
QSet< GenericEventNotifyReceiver * > m_receivers
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn