Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
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

List of all members.

Public Member Functions

 StateHandle ()
 Create an empty handle.
 StateHandle (ThreadedUpdatableTextView *l, GUIWidget *w, int maxLen)
 Create a new LabelHandle.
void append (const std::string &text)
 appends a string
template<class T >
StateHandleoperator<< (const T &t)
 appends anything in std::ostream manner
void clear ()
 erases all lines
void setMaxLen (int maxLen)
 sets max line length (odd lines are removed)
int getMaxLen () const
 returns curren max line length

Private Member Functions

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

Private Attributes

int maxLen

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

Create an empty handle.

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

Member Function Documentation

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

appends a string

erases all lines

returns curren max line length

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

appends anything in std::ostream manner

utility function

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

sets max line length (odd lines are removed)

utitlity function

const ThreadedUpdatableTextView* icl::qt::StateHandle::text ( ) const [inline, private]

utitlity function


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines