23 #if ! defined (octave_GenericEventNotify_h) 24 #define octave_GenericEventNotify_h 1 35 class GenericEventNotifyReceiver;
86 #define DECLARE_GENERICEVENTNOTIFY_SENDER(T,B) \ 87 class T : public B, public GenericEventNotifySender \ 90 T (QWidget *xparent) : B (xparent), GenericEventNotifySender () { } \ 91 ~ T (void) = default; \ 93 bool event (QEvent *evt) \ 96 if (! notifyReceiversBefore (this, evt)) \ 97 result = B::event (evt); \ 98 notifyReceiversAfter (this, evt); \ virtual ~GenericEventNotifySender(void)=default
GenericEventNotifyReceiver(void)
virtual ~GenericEventNotifyReceiver(void)=default
QSet< GenericEventNotifyReceiver * > m_receivers
virtual void eventNotifyAfter(QObject *obj, QEvent *evt)=0
void notifyReceiversAfter(QObject *obj, QEvent *evt)
bool notifyReceiversBefore(QObject *obj, QEvent *evt)
void removeReceiver(GenericEventNotifyReceiver *r)
void addReceiver(GenericEventNotifyReceiver *r)
virtual bool eventNotifyBefore(QObject *obj, QEvent *evt)=0
GenericEventNotifySender(void)