Image Component Library (ICL)
|
Base class for GUIHandles providing functions to register callbacks. More...
#include <GUIHandleBase.h>
Public Member Functions | |
virtual | ~GUIHandleBase () |
virtual destructor More... | |
GUIWidget * | getGUIWidget () |
returns parent GUIWidget pointer More... | |
virtual void | registerCallback (const GUI::Callback &cb, const std::string &events="all") |
registers a callback on this gui widget More... | |
virtual void | registerCallback (const GUI::ComplexCallback &cb, const std::string &events="all") |
registers a complex callback on this gui component More... | |
virtual void | removeCallbacks () |
removes all callbacks from parent GUIWidget component More... | |
virtual void | cb () |
envokes all registered callbacks More... | |
Protected Member Functions | |
GUIHandleBase (GUIWidget *w=0) | |
create a new GUIHandleBase More... | |
Private Attributes | |
GUIWidget * | m_poGUIWidget |
Base class for GUIHandles providing functions to register callbacks.
|
inlineprotected |
create a new GUIHandleBase
|
inlinevirtual |
virtual destructor
|
inlinevirtual |
envokes all registered callbacks
|
inlinevirtual |
registers a callback on this gui widget
This function can be re-implemented to bypass event propagation. By default, events are passed to the parent GUIWidget which, then again passes the events implementation-dependently to the actual widget.
cb | callback functor to call |
events | comma separated list of event types to register on. This list is handled internally by each special GUIHandlerBase implementation currently only the ImageHandle DrawHandle and DrawHandle3D re-implement this functionality. By default, the paremter 'events' is not regarded at all |
Reimplemented in icl::qt::SliderHandle, icl::qt::FSliderHandle, icl::qt::ImageHandle, icl::qt::DrawHandle, icl::qt::DrawHandle3D, icl::geom::PlotHandle3D, and icl::qt::PlotHandle.
|
inlinevirtual |
registers a complex callback on this gui component
Reimplemented in icl::qt::ImageHandle, icl::qt::DrawHandle, icl::qt::DrawHandle3D, icl::geom::PlotHandle3D, and icl::qt::PlotHandle.
|
inlinevirtual |
removes all callbacks from parent GUIWidget component
Reimplemented in icl::qt::SliderHandle, icl::qt::FSliderHandle, icl::qt::ImageHandle, icl::qt::DrawHandle, and icl::qt::DrawHandle3D.
|
private |