#include <MaskTextCtrl.h>
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 |
Definition at line 23 of file MaskTextCtrl.h.
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 | |||
) |
MaskTextCtrl::~MaskTextCtrl | ( | ) |
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 | ( | ) |
char * MaskTextCtrl::ToChar | ( | ) |
void MaskTextCtrl::MaskLast | ( | bool | MskLast = false |
) |
void MaskTextCtrl::MaskClear | ( | ) |
bool MaskTextCtrl::MaskIsDigit | ( | const int | Mskkey | ) | [static, private] |
bool MaskTextCtrl::MaskIsUDigit | ( | const int | Mskkey | ) | [static, private] |
bool MaskTextCtrl::MaskIsDecimal | ( | const int | Mskkey | ) | [static, private] |
bool MaskTextCtrl::MaskIsUDecimal | ( | const int | Mskkey | ) | [static, private] |
bool MaskTextCtrl::MaskIsAlphaNumeric | ( | const int | Mskkey | ) | [static, private] |
bool MaskTextCtrl::MaskIsAlpha | ( | const int | Mskkey | ) | [static, private] |
bool MaskTextCtrl::MaskIsNumeric | ( | const int | Mskkey | ) | [static, private] |
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().
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().