Image Component Library (ICL)
Public Member Functions | List of all members
icl::qt::TabHandle Class Reference

A Handle for TabWidget container GUI components. More...

#include <TabHandle.h>

Inheritance diagram for icl::qt::TabHandle:
icl::qt::GUIHandle< QTabWidget > icl::qt::ContainerHandle icl::qt::GUIHandleBase

Public Member Functions

 TabHandle ()
 create an empty handle More...
 
 TabHandle (QTabWidget *w, GUIWidget *guiw)
 create a difined handle More...
 
virtual void add (QWidget *comp, const QString &tabName)
 adds an external compnent to the tab widget More...
 
virtual void insert (int idx, QWidget *comp, const QString &tabName)
 inserts a widget at givel location More...
 
int current ()
 returns the currently selected index More...
 
int num ()
 returns the number of tabs of this tab-widget More...
 
- Public Member Functions inherited from icl::qt::GUIHandle< QTabWidget >
const QTabWidget * operator * () const
 use the *-oprator to get the wrapped component (const) More...
 
QTabWidget *& operator * ()
 use the *-oprator to get the wrapped component (unconst) More...
 
QTabWidget * operator-> ()
 this can be used for direct access to wrapped type More...
 
const QTabWidget * operator-> () const
 this can be used for direct access to wrapped type More...
 
bool isNull () const
 returns whether wrapped pointer is null or not More...
 
void enable ()
 enables the wrapped GUI component More...
 
void disable ()
 disables the wrapped GUI component More...
 
- Public Member Functions inherited from icl::qt::GUIHandleBase
virtual ~GUIHandleBase ()
 virtual destructor More...
 
GUIWidgetgetGUIWidget ()
 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...
 
- Public Member Functions inherited from icl::qt::ContainerHandle
virtual ~ContainerHandle ()
 virtual destructor More...
 

Additional Inherited Members

- Protected Member Functions inherited from icl::qt::GUIHandle< QTabWidget >
 GUIHandle ()
 as GUIHandle is just an interface, its base constructor is protected More...
 
 GUIHandle (QTabWidget *t, GUIWidget *w)
 as GUIHandle is just an interface, its base constructor is protected More...
 
- Protected Member Functions inherited from icl::qt::GUIHandleBase
 GUIHandleBase (GUIWidget *w=0)
 create a new GUIHandleBase More...
 
- Protected Member Functions inherited from icl::qt::ContainerHandle
 ContainerHandle ()
 must be subclassed More...
 

Detailed Description

A Handle for TabWidget container GUI components.

Constructor & Destructor Documentation

◆ TabHandle() [1/2]

icl::qt::TabHandle::TabHandle ( )
inline

create an empty handle

◆ TabHandle() [2/2]

icl::qt::TabHandle::TabHandle ( QTabWidget *  w,
GUIWidget guiw 
)
inline

create a difined handle

Member Function Documentation

◆ add()

virtual void icl::qt::TabHandle::add ( QWidget *  comp,
const QString &  tabName 
)
inlinevirtual

adds an external compnent to the tab widget

Reimplemented from icl::qt::ContainerHandle.

◆ current()

int icl::qt::TabHandle::current ( )
inline

returns the currently selected index

◆ insert()

virtual void icl::qt::TabHandle::insert ( int  idx,
QWidget *  comp,
const QString &  tabName 
)
inlinevirtual

inserts a widget at givel location

Reimplemented from icl::qt::ContainerHandle.

◆ num()

int icl::qt::TabHandle::num ( )
inline

returns the number of tabs of this tab-widget


The documentation for this class was generated from the following file: