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

Class for GUI-Label handling. More...

#include <LabelHandle.h>

Inheritance diagram for icl::qt::LabelHandle:
icl::qt::GUIHandle< CompabilityLabel > icl::qt::GUIHandleBase

Public Member Functions

 LabelHandle ()
 Create an empty handle. More...
 
 LabelHandle (CompabilityLabel *l, GUIWidget *w)
 Create a new LabelHandle. More...
 
void operator= (const std::string &text)
 assign a std::string (makes the underlying label show that string) More...
 
void operator= (const QString &text)
 assign a QString (makes the underlying label show that string) More...
 
void operator= (const char *text)
 assign a const char* (makes the underlying label show that string) More...
 
void operator= (int num)
 assign an int (makes the underlying label show that integer) More...
 
void operator= (double num)
 assign a double (makes the underlying label show that double) More...
 
void operator+= (const std::string &text)
 appends text to the current text More...
 
- Public Member Functions inherited from icl::qt::GUIHandle< CompabilityLabel >
const CompabilityLabeloperator * () const
 use the *-oprator to get the wrapped component (const) More...
 
CompabilityLabel *& operator * ()
 use the *-oprator to get the wrapped component (unconst) More...
 
CompabilityLabeloperator-> ()
 this can be used for direct access to wrapped type More...
 
const CompabilityLabeloperator-> () 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...
 

Private Member Functions

CompabilityLabellab ()
 utitlity function More...
 
const CompabilityLabellab () const
 utitlity function More...
 

Additional Inherited Members

- Protected Member Functions inherited from icl::qt::GUIHandle< CompabilityLabel >
 GUIHandle ()
 as GUIHandle is just an interface, its base constructor is protected More...
 
 GUIHandle (CompabilityLabel *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...
 

Detailed Description

Class for GUI-Label handling.

The gui label is created inside the GUI class, it can be used to make GUI-"label" components show anther text

See also
GUI

Constructor & Destructor Documentation

◆ LabelHandle() [1/2]

icl::qt::LabelHandle::LabelHandle ( )
inline

Create an empty handle.

◆ LabelHandle() [2/2]

icl::qt::LabelHandle::LabelHandle ( CompabilityLabel l,
GUIWidget w 
)
inline

Member Function Documentation

◆ lab() [1/2]

CompabilityLabel* icl::qt::LabelHandle::lab ( )
inlineprivate

utitlity function

◆ lab() [2/2]

const CompabilityLabel* icl::qt::LabelHandle::lab ( ) const
inlineprivate

utitlity function

◆ operator+=()

void icl::qt::LabelHandle::operator+= ( const std::string &  text)

appends text to the current text

◆ operator=() [1/5]

void icl::qt::LabelHandle::operator= ( const std::string &  text)

assign a std::string (makes the underlying label show that string)

◆ operator=() [2/5]

void icl::qt::LabelHandle::operator= ( const QString &  text)

assign a QString (makes the underlying label show that string)

◆ operator=() [3/5]

void icl::qt::LabelHandle::operator= ( const char *  text)

assign a const char* (makes the underlying label show that string)

◆ operator=() [4/5]

void icl::qt::LabelHandle::operator= ( int  num)

assign an int (makes the underlying label show that integer)

◆ operator=() [5/5]

void icl::qt::LabelHandle::operator= ( double  num)

assign a double (makes the underlying label show that double)


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