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. 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 > | |
StateHandle & | operator<< (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 ThreadedUpdatableTextView * | operator * () const |
use the *-oprator to get the wrapped component (const) More... | |
ThreadedUpdatableTextView *& | operator * () |
use the *-oprator to get the wrapped component (unconst) More... | |
ThreadedUpdatableTextView * | operator-> () |
this can be used for direct access to wrapped type More... | |
const ThreadedUpdatableTextView * | 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... | |
GUIWidget * | getGUIWidget () |
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 | |
ThreadedUpdatableTextView * | text () |
utitlity function More... | |
const ThreadedUpdatableTextView * | text () 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... | |
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
|
inline |
Create an empty handle.
|
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
|
inline |
appends anything in std::ostream manner
|
private |
utility function
void icl::qt::StateHandle::setMaxLen | ( | int | maxLen | ) |
sets max line length (odd lines are removed)
|
inlineprivate |
utitlity function
|
inlineprivate |
utitlity function
|
private |