Image Component Library (ICL)
|
Class for handling "string" textfield components. More...
#include <StringHandle.h>
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 |
Class for handling "string" textfield components.
icl::qt::StringHandle::StringHandle | ( | ) | [inline] |
Creates an empty string handle.
icl::qt::StringHandle::StringHandle | ( | QLineEdit * | le, |
std::string * | str, | ||
GUIWidget * | w | ||
) | [inline] |
std::string icl::qt::StringHandle::getCurrentText | ( | ) | const |
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
std::string* icl::qt::StringHandle::m_str [private] |