mpg::PasswordTextCtrl Class Reference

#include <PasswordTextCtrl.hh>

List of all members.


Detailed Description

Custom text control used to enter Metroid passwords.

Definition at line 30 of file PasswordTextCtrl.hh.


Public Member Functions

wxString GetValue () const
 Gets the password text, sans spaces.
virtual void SetValue (const wxString &value)
 Sets the password text, inserting the segment separators.
virtual void Paste ()
 Pastes the contents of the Clipboard onto this PasswordTextCtrl.
virtual void Replace (long from, long to, const wxString &value)
 Replaces a section of this PasswordTextCtrl with a new value.

Private Member Functions

void onChar (wxKeyEvent &event)
 Called when a char is typed into this PasswordTextCtrl.
void onKeyDown (wxKeyEvent &event)
 Called when a key is pressed in this PasswordTextCtrl.

Member Function Documentation

void PasswordTextCtrl::onChar ( wxKeyEvent &  event  )  [private]

Called when a char is typed into this PasswordTextCtrl.

Parameters:
event The triggering wxKeyEvent.

Definition at line 120 of file PasswordTextCtrl.cc.

void PasswordTextCtrl::onKeyDown ( wxKeyEvent &  event  )  [private]

Called when a key is pressed in this PasswordTextCtrl.

Parameters:
event The triggering wxKeyEvent.

Definition at line 187 of file PasswordTextCtrl.cc.

wxString PasswordTextCtrl::GetValue (  )  const

Gets the password text, sans spaces.

Returns:
The password text.

Definition at line 42 of file PasswordTextCtrl.cc.

void PasswordTextCtrl::SetValue ( const wxString &  value  )  [virtual]

Sets the password text, inserting the segment separators.

Parameters:
value The password text.

Definition at line 49 of file PasswordTextCtrl.cc.

void PasswordTextCtrl::Paste (  )  [virtual]

Pastes the contents of the Clipboard onto this PasswordTextCtrl.

Definition at line 64 of file PasswordTextCtrl.cc.

void PasswordTextCtrl::Replace ( long  from,
long  to,
const wxString &  value 
) [virtual]

Replaces a section of this PasswordTextCtrl with a new value.

Parameters:
from The position to start replacing at.
to The position to replace up to (but not including).
value The string to replace with.

Definition at line 106 of file PasswordTextCtrl.cc.


Generated on Tue Dec 16 20:16:57 2008 for Metroid Password Generator by  doxygen 1.5.4