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

List of all members.

Public Member Functions

 StringHandle ()
 Creates an empty string handle.
 StringHandle (QLineEdit *le, std::string *str, GUIWidget *w)
 Create a new Int handle.
void operator= (const std::string &text)
 makes the associated textfield show the given text
void operator= (const QString &text)
 makes the associated textfield show the given text
void operator= (const char *text)
 makes the associated textfield show the given text
std::string getValue () const
 returns the current text (only updated when enter is pressed)
std::string getCurrentText () const
 returns the currently shown text of the textfield

Private Attributes

std::string * m_str

Detailed Description

Class for handling "string" textfield components.


Constructor & Destructor Documentation

Creates an empty string handle.

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

Create a new Int handle.


Member Function Documentation

returns the currently shown text of the textfield

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

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

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

makes the associated textfield show the given text

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

makes the associated textfield show the given text

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

makes the associated textfield show the given text


Member Data Documentation

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

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