InputString Class Reference

provides function of editbox - the string editing. More...

#include <inputstring.h>

Collaboration diagram for InputString:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InputString ()
virtual ~InputString ()
virtual void processKey (const SDL_keysym &keysym)
virtual void clear ()
 Delete all string content.
std::string getLineU ()
 return current line.
std::wstring getLineW ()
std::string getLineURender ()
 Return string with cursor position.
std::wstring getLineWRender ()
 return line with cursor position.

Protected Member Functions

void updateCachedStrings ()

Protected Attributes

std::wstring mLineLeft
 Part of line before cursor.
std::wstring mLineRight
 Part of line after editing cursor.
std::wstring mLineW
std::wstring mLineWR
std::string mLineU8
std::string mLineU8R

Detailed Description

provides function of editbox - the string editing.

The class is not supposed to be a base class. It should be used as member variable.

Definition at line 16 of file inputstring.h.


Constructor & Destructor Documentation

InputString::InputString  ) 
 

Definition at line 12 of file inputstring.cpp.

References clear().

Here is the call graph for this function:

InputString::~InputString  )  [virtual]
 

Definition at line 18 of file inputstring.cpp.


Member Function Documentation

void InputString::clear  )  [virtual]
 

Delete all string content.

Definition at line 23 of file inputstring.cpp.

References mLineLeft, mLineRight, and updateCachedStrings().

Referenced by InputString(), Messages::keyDown(), and Console::keyDown().

Here is the call graph for this function:

string InputString::getLineU  ) 
 

return current line.

Encoded in utf-8

Definition at line 115 of file inputstring.cpp.

References mLineU8.

Referenced by Messages::keyDown(), and Console::keyDown().

string InputString::getLineURender  ) 
 

Return string with cursor position.

Encoded in utf-8

Definition at line 127 of file inputstring.cpp.

References mLineU8R.

wstring InputString::getLineW  ) 
 

Definition at line 121 of file inputstring.cpp.

References mLineW.

wstring InputString::getLineWRender  ) 
 

return line with cursor position.

Definition at line 133 of file inputstring.cpp.

References mLineWR.

void InputString::processKey const SDL_keysym &  keysym  )  [virtual]
 

Definition at line 32 of file inputstring.cpp.

References LOGT, mLineLeft, mLineRight, TIN, and updateCachedStrings().

Referenced by Messages::keyDown(), and Console::keyDown().

Here is the call graph for this function:

void InputString::updateCachedStrings  )  [protected]
 

Definition at line 102 of file inputstring.cpp.

References mLineLeft, mLineRight, mLineU8, mLineU8R, mLineW, mLineWR, and wstoutf8().

Referenced by clear(), and processKey().

Here is the call graph for this function:


Member Data Documentation

std::wstring InputString::mLineLeft [protected]
 

Part of line before cursor.

Definition at line 56 of file inputstring.h.

Referenced by clear(), processKey(), and updateCachedStrings().

std::wstring InputString::mLineRight [protected]
 

Part of line after editing cursor.

Definition at line 57 of file inputstring.h.

Referenced by clear(), processKey(), and updateCachedStrings().

std::string InputString::mLineU8 [protected]
 

Definition at line 62 of file inputstring.h.

Referenced by getLineU(), and updateCachedStrings().

std::string InputString::mLineU8R [protected]
 

Definition at line 63 of file inputstring.h.

Referenced by getLineURender(), and updateCachedStrings().

std::wstring InputString::mLineW [protected]
 

Definition at line 60 of file inputstring.h.

Referenced by getLineW(), and updateCachedStrings().

std::wstring InputString::mLineWR [protected]
 

Definition at line 61 of file inputstring.h.

Referenced by getLineWRender(), and updateCachedStrings().


The documentation for this class was generated from the following files:
Generated on Wed Apr 12 14:18:26 2006 for bjs by  doxygen 1.4.5