17 #ifndef BERRYGUITKICONTROLLISTENER_H_
18 #define BERRYGUITKICONTROLLISTENER_H_
59 ACTIVATED = 0x00000004,
60 DESTROYED = 0x00000008,
65 Q_DECLARE_FLAGS(Types, Type)
70 EventType resizedEvent;
71 EventType activatedEvent;
72 EventType destroyedEvent;
83 virtual Events::Types GetEventTypes()
const = 0;
122 listener(l), callback(c)
124 poco_assert(listener);
125 poco_assert(callback);
130 return Events::MOVED;
135 (listener->*callback)(e);
152 listener(l), callback(c)
154 poco_assert(listener);
155 poco_assert(callback);
160 return Events::RESIZED;
165 (listener->*callback)(e);
182 listener(l), callback(c)
184 poco_assert(listener);
185 poco_assert(callback);
190 return Events::ACTIVATED;
195 (listener->*callback)(e);
212 listener(l), callback(c)
214 poco_assert(listener);
215 poco_assert(callback);
220 return Events::DESTROYED;
225 (listener->*callback)(e);
238 Q_DECLARE_OPERATORS_FOR_FLAGS(berry::GuiTk::IControlListener::Events::Types)
ControlMovedAdapter(R *l, Callback c)
Events::Types GetEventTypes() const override
virtual void ControlDestroyed(ControlEvent::Pointer)
Events::Types GetEventTypes() const override
ControlResizedAdapter(R *l, Callback c)
ControlDestroyedAdapter(R *l, Callback c)
Light weight base class for most BlueBerry classes.
virtual void ControlMoved(ControlEvent::Pointer)
void(R::* Callback)(ControlEvent::Pointer)
virtual void ControlActivated(ControlEvent::Pointer)
berry::SmartPointer< Self > Pointer
virtual void ControlResized(ControlEvent::Pointer)
Events::Types GetEventTypes() const override
ControlActivatedAdapter(R *l, Callback c)
void(R::* Callback)(ControlEvent::Pointer)
Events::Types GetEventTypes() const override
void ControlMoved(ControlEvent::Pointer e) override
void(R::* Callback)(ControlEvent::Pointer)
void ControlDestroyed(ControlEvent::Pointer e) override
berryObjectMacro(berry::GuiTk::IControlListener) struct BERRY_UI_QT Events
void ControlResized(ControlEvent::Pointer e) override
void(R::* Callback)(ControlEvent::Pointer)
void ControlActivated(ControlEvent::Pointer e) override