Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef BERRYGUITKICONTROLLISTENER_H_
14 #define BERRYGUITKICONTROLLISTENER_H_
55 ACTIVATED = 0x00000004,
56 DESTROYED = 0x00000008,
61 Q_DECLARE_FLAGS(Types, Type)
79 virtual
Events::Types GetEventTypes() const = 0;
114 listener(l), callback(c)
116 poco_assert(listener);
117 poco_assert(callback);
122 return Events::MOVED;
127 (listener->*callback)(e);
144 listener(l), callback(c)
146 poco_assert(listener);
147 poco_assert(callback);
152 return Events::RESIZED;
157 (listener->*callback)(e);
174 listener(l), callback(c)
176 poco_assert(listener);
177 poco_assert(callback);
182 return Events::ACTIVATED;
187 (listener->*callback)(e);
204 listener(l), callback(c)
206 poco_assert(listener);
207 poco_assert(callback);
212 return Events::DESTROYED;
217 (listener->*callback)(e);
230 Q_DECLARE_OPERATORS_FOR_FLAGS(berry::GuiTk::IControlListener::Events::Types)
virtual void ControlResized(ControlEvent::Pointer)
ControlActivatedAdapter(R *l, Callback c)
Light weight base class for most BlueBerry classes.
void ControlResized(ControlEvent::Pointer e) override
void ControlMoved(ControlEvent::Pointer e) override
void ControlActivated(ControlEvent::Pointer e) override
ControlDestroyedAdapter(R *l, Callback c)
Events::Types GetEventTypes() const override
Events::Types GetEventTypes() const override
virtual void ControlActivated(ControlEvent::Pointer)
ControlResizedAdapter(R *l, Callback c)
Events::Types GetEventTypes() const override
void ControlDestroyed(ControlEvent::Pointer e) override
berry::SmartPointer< Self > Pointer
#define berryObjectMacro(...)
ControlMovedAdapter(R *l, Callback c)
virtual void ControlDestroyed(ControlEvent::Pointer)
Events::Types GetEventTypes() const override