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

Class for handling "string" textfield components. More...

#include <StringHandle.h>

Inheritance diagram for icl::qt::StringHandle:
icl::qt::GUIHandle< QLineEdit > icl::qt::GUIHandleBase

Public Member Functions

 StringHandle ()
 Creates an empty string handle. More...
 
 StringHandle (QLineEdit *le, std::string *str, GUIWidget *w)
 Create a new Int handle. More...
 
void operator= (const std::string &text)
 makes the associated textfield show the given text More...
 
void operator= (const QString &text)
 makes the associated textfield show the given text More...
 
void operator= (const char *text)
 makes the associated textfield show the given text More...
 
std::string getValue () const
 returns the current text (only updated when enter is pressed) More...
 
std::string getCurrentText () const
 returns the currently shown text of the textfield More...
 
- Public Member Functions inherited from icl::qt::GUIHandle< QLineEdit >
const QLineEdit * operator * () const
 use the *-oprator to get the wrapped component (const) More...
 
QLineEdit *& operator * ()
 use the *-oprator to get the wrapped component (unconst) More...
 
QLineEdit * operator-> ()
 this can be used for direct access to wrapped type More...
 
const QLineEdit * 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...
 
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 Attributes

std::string * m_str
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ StringHandle() [1/2]

icl::qt::StringHandle::StringHandle ( )
inline

Creates an empty string handle.

◆ StringHandle() [2/2]

icl::qt::StringHandle::StringHandle ( QLineEdit *  le,
std::string *  str,
GUIWidget w 
)
inline

Create a new Int handle.

Member Function Documentation

◆ getCurrentText()

std::string icl::qt::StringHandle::getCurrentText ( ) const

returns the currently shown text of the textfield

◆ getValue()

std::string icl::qt::StringHandle::getValue ( ) const

returns the current text (only updated when enter is pressed)

◆ operator=() [1/3]

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

makes the associated textfield show the given text

◆ operator=() [2/3]

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

makes the associated textfield show the given text

◆ operator=() [3/3]

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

makes the associated textfield show the given text

Member Data Documentation

◆ m_str

std::string* icl::qt::StringHandle::m_str
private

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