Image Component Library (ICL)
|
Class for GUI-Label handling a so called state component. More...
#include <StateHandle.h>
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 > | |
StateHandle & | operator<< (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 | |
ThreadedUpdatableTextView * | text () |
utitlity function | |
const ThreadedUpdatableTextView * | text () const |
utitlity function | |
void | removeOldLines () |
utility function | |
Private Attributes | |
int | maxLen |
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
icl::qt::StateHandle::StateHandle | ( | ) | [inline] |
Create an empty handle.
icl::qt::StateHandle::StateHandle | ( | ThreadedUpdatableTextView * | l, |
GUIWidget * | w, | ||
int | maxLen | ||
) | [inline] |
Create a new LabelHandle.
void icl::qt::StateHandle::append | ( | const std::string & | text | ) |
appends a string
void icl::qt::StateHandle::clear | ( | ) |
erases all lines
int icl::qt::StateHandle::getMaxLen | ( | ) | const |
returns curren max line length
StateHandle& icl::qt::StateHandle::operator<< | ( | const T & | t | ) | [inline] |
appends anything in std::ostream manner
void icl::qt::StateHandle::removeOldLines | ( | ) | [private] |
utility function
void icl::qt::StateHandle::setMaxLen | ( | int | maxLen | ) |
sets max line length (odd lines are removed)
ThreadedUpdatableTextView* icl::qt::StateHandle::text | ( | ) | [inline, private] |
utitlity function
const ThreadedUpdatableTextView* icl::qt::StateHandle::text | ( | ) | const [inline, private] |
utitlity function
int icl::qt::StateHandle::maxLen [private] |