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

Class for GUI-Label handling a so called state component. More...

#include <StateHandle.h>

Inheritance diagram for icl::qt::StateHandle:
icl::qt::GUIHandle< ThreadedUpdatableTextView > icl::qt::GUIHandleBase

Public Member Functions

 StateHandle ()
 Create an empty handle. More...
 
 StateHandle (ThreadedUpdatableTextView *l, GUIWidget *w, int maxLen)
 Create a new LabelHandle. More...
 
void append (const std::string &text)
 appends a string More...
 
template<class T >
StateHandleoperator<< (const T &t)
 appends anything in std::ostream manner More...
 
void clear ()
 erases all lines More...
 
void setMaxLen (int maxLen)
 sets max line length (odd lines are removed) More...
 
int getMaxLen () const
 returns curren max line length More...
 
- Public Member Functions inherited from icl::qt::GUIHandle< ThreadedUpdatableTextView >
const ThreadedUpdatableTextViewoperator * () const
 use the *-oprator to get the wrapped component (const) More...
 
ThreadedUpdatableTextView *& operator * ()
 use the *-oprator to get the wrapped component (unconst) More...
 
ThreadedUpdatableTextViewoperator-> ()
 this can be used for direct access to wrapped type More...
 
const ThreadedUpdatableTextViewoperator-> () 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

ThreadedUpdatableTextViewtext ()
 utitlity function More...
 
const ThreadedUpdatableTextViewtext () const
 utitlity function More...
 
void removeOldLines ()
 utility function More...
 

Private Attributes

int maxLen
 

Additional Inherited Members

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

You can add a state component as an alternative std::cout for debugging or system state messages

See also
GUI

Constructor & Destructor Documentation

◆ StateHandle() [1/2]

icl::qt::StateHandle::StateHandle ( )
inline

Create an empty handle.

◆ StateHandle() [2/2]

icl::qt::StateHandle::StateHandle ( ThreadedUpdatableTextView l,
GUIWidget w,
int  maxLen 
)
inline

Member Function Documentation

◆ append()

void icl::qt::StateHandle::append ( const std::string &  text)

appends a string

◆ clear()

void icl::qt::StateHandle::clear ( )

erases all lines

◆ getMaxLen()

int icl::qt::StateHandle::getMaxLen ( ) const

returns curren max line length

◆ operator<<()

template<class T >
StateHandle& icl::qt::StateHandle::operator<< ( const T &  t)
inline

appends anything in std::ostream manner

◆ removeOldLines()

void icl::qt::StateHandle::removeOldLines ( )
private

utility function

◆ setMaxLen()

void icl::qt::StateHandle::setMaxLen ( int  maxLen)

sets max line length (odd lines are removed)

◆ text() [1/2]

ThreadedUpdatableTextView* icl::qt::StateHandle::text ( )
inlineprivate

utitlity function

◆ text() [2/2]

const ThreadedUpdatableTextView* icl::qt::StateHandle::text ( ) const
inlineprivate

utitlity function

Member Data Documentation

◆ maxLen

int icl::qt::StateHandle::maxLen
private

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