MaskTextCtrl Class Reference

#include <MaskTextCtrl.h>

List of all members.

Public Member Functions

 MaskTextCtrl (wxWindow *parent, wxWindowID id, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTextCtrlNameStr)
 ~MaskTextCtrl ()
void MaskEditWord (unsigned int MskFILTER, wxString MskEdtWord=wxEmptyString)
void MaskSetValue (wxString MskValue=wxEmptyString)
wxString MaskGetValue ()
wxString MaskGetText ()
char * ToChar ()
void MaskLast (bool MskLast=false)
void MaskClear ()

Private Member Functions

void MaskOnChar (wxKeyEvent &event)
void MaskWriteChar (wxChar val)
void MaskEvtEnter (wxKeyEvent &event)
wxString MaskCodeEdit (wxString MskValue=wxT("0"))

Static Private Member Functions

static bool MaskIsDigit (const int Mskkey)
static bool MaskIsUDigit (const int Mskkey)
static bool MaskIsDecimal (const int Mskkey)
static bool MaskIsUDecimal (const int Mskkey)
static bool MaskIsAlphaNumeric (const int Mskkey)
static bool MaskIsAlpha (const int Mskkey)
static bool MaskIsNumeric (const int Mskkey)

Private Attributes

unsigned int MaskFILTER
wxString MaskEdtWord
wxString MaskValue
bool MaskNextField


Detailed Description

Definition at line 23 of file MaskTextCtrl.h.


Constructor & Destructor Documentation

MaskTextCtrl::MaskTextCtrl ( wxWindow *  parent,
wxWindowID  id,
const wxString &  value = wxEmptyString,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxValidator &  validator = wxDefaultValidator,
const wxString &  name = wxTextCtrlNameStr 
)

Definition at line 6 of file MaskTextCtrl.cpp.

References MaskEvtEnter(), and MaskOnChar().

MaskTextCtrl::~MaskTextCtrl (  ) 

Definition at line 28 of file MaskTextCtrl.cpp.

References MaskOnChar().


Member Function Documentation

void MaskTextCtrl::MaskEditWord ( unsigned int  MskFILTER,
wxString  MskEdtWord = wxEmptyString 
)

Definition at line 96 of file MaskTextCtrl.cpp.

References MaskEdtWord, MaskFILTER, and MaskNextField.

void MaskTextCtrl::MaskSetValue ( wxString  MskValue = wxEmptyString  ) 

Definition at line 194 of file MaskTextCtrl.cpp.

References Mask_ALPHA, Mask_ALPHANUMERIC, Mask_DECIMAL, Mask_DIGIT, Mask_NUMERIC, Mask_UDECIMAL, Mask_UDIGIT, MaskCodeEdit(), MaskEdtWord, MaskFILTER, and MaskValue.

Referenced by MaskClear(), MaskEvtEnter(), and MaskOnChar().

wxString MaskTextCtrl::MaskGetValue (  ) 

Definition at line 105 of file MaskTextCtrl.cpp.

References Mask_DECIMAL, Mask_UDECIMAL, MaskCodeEdit(), MaskEdtWord, MaskFILTER, and MaskValue.

Referenced by MaskClear(), MaskEvtEnter(), MaskOnChar(), and ToChar().

wxString MaskTextCtrl::MaskGetText (  ) 

Definition at line 134 of file MaskTextCtrl.cpp.

References MaskValue.

char * MaskTextCtrl::ToChar (  ) 

Definition at line 403 of file MaskTextCtrl.cpp.

References MaskGetValue().

void MaskTextCtrl::MaskLast ( bool  MskLast = false  ) 

Definition at line 253 of file MaskTextCtrl.cpp.

References MaskNextField.

void MaskTextCtrl::MaskClear (  ) 

Definition at line 151 of file MaskTextCtrl.cpp.

References MaskGetValue(), and MaskSetValue().

bool MaskTextCtrl::MaskIsDigit ( const int  Mskkey  )  [static, private]

Definition at line 43 of file MaskTextCtrl.cpp.

Referenced by MaskOnChar().

bool MaskTextCtrl::MaskIsUDigit ( const int  Mskkey  )  [static, private]

Definition at line 35 of file MaskTextCtrl.cpp.

Referenced by MaskOnChar().

bool MaskTextCtrl::MaskIsDecimal ( const int  Mskkey  )  [static, private]

Definition at line 60 of file MaskTextCtrl.cpp.

Referenced by MaskOnChar().

bool MaskTextCtrl::MaskIsUDecimal ( const int  Mskkey  )  [static, private]

Definition at line 52 of file MaskTextCtrl.cpp.

Referenced by MaskOnChar().

bool MaskTextCtrl::MaskIsAlphaNumeric ( const int  Mskkey  )  [static, private]

Definition at line 68 of file MaskTextCtrl.cpp.

Referenced by MaskOnChar().

bool MaskTextCtrl::MaskIsAlpha ( const int  Mskkey  )  [static, private]

Definition at line 77 of file MaskTextCtrl.cpp.

Referenced by MaskOnChar().

bool MaskTextCtrl::MaskIsNumeric ( const int  Mskkey  )  [static, private]

Definition at line 87 of file MaskTextCtrl.cpp.

Referenced by MaskOnChar().

void MaskTextCtrl::MaskOnChar ( wxKeyEvent &  event  )  [private]

Definition at line 271 of file MaskTextCtrl.cpp.

References Mask_ALPHA, Mask_ALPHANUMERIC, Mask_DECIMAL, Mask_DIGIT, Mask_NONE, Mask_NUMERIC, Mask_UDECIMAL, Mask_UDIGIT, MaskEdtWord, MaskFILTER, MaskGetValue(), MaskIsAlpha(), MaskIsAlphaNumeric(), MaskIsDecimal(), MaskIsDigit(), MaskIsNumeric(), MaskIsUDecimal(), MaskIsUDigit(), MaskSetValue(), and MaskWriteChar().

Referenced by MaskTextCtrl(), and ~MaskTextCtrl().

void MaskTextCtrl::MaskWriteChar ( wxChar  val  )  [private]

Definition at line 383 of file MaskTextCtrl.cpp.

References Mask_DECIMAL, Mask_DIGIT, MaskEdtWord, and MaskFILTER.

Referenced by MaskOnChar().

void MaskTextCtrl::MaskEvtEnter ( wxKeyEvent &  event  )  [private]

Definition at line 256 of file MaskTextCtrl.cpp.

References MaskGetValue(), MaskNextField, and MaskSetValue().

Referenced by MaskTextCtrl().

wxString MaskTextCtrl::MaskCodeEdit ( wxString  MskValue = wxT("0")  )  [private]

Definition at line 157 of file MaskTextCtrl.cpp.

References Mask_DECIMAL, Mask_UDECIMAL, MaskEdtWord, and MaskFILTER.

Referenced by MaskGetValue(), and MaskSetValue().


Member Data Documentation

unsigned int MaskTextCtrl::MaskFILTER [private]

Definition at line 50 of file MaskTextCtrl.h.

Referenced by MaskCodeEdit(), MaskEditWord(), MaskGetValue(), MaskOnChar(), MaskSetValue(), and MaskWriteChar().

wxString MaskTextCtrl::MaskEdtWord [private]

Definition at line 51 of file MaskTextCtrl.h.

Referenced by MaskCodeEdit(), MaskEditWord(), MaskGetValue(), MaskOnChar(), MaskSetValue(), and MaskWriteChar().

wxString MaskTextCtrl::MaskValue [private]

Definition at line 52 of file MaskTextCtrl.h.

Referenced by MaskGetText(), MaskGetValue(), and MaskSetValue().

bool MaskTextCtrl::MaskNextField [private]

Definition at line 53 of file MaskTextCtrl.h.

Referenced by MaskEditWord(), MaskEvtEnter(), and MaskLast().


The documentation for this class was generated from the following files:
Generated on Mon Jul 6 18:29:20 2009 for MaskTextCtrl by  doxygen 1.5.1-p1