Main Page | Namespace List | Class List | Directories | File List | Namespace Members | Class Members | File Members

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

wxString PasswordTextCtrl::GetValue  )  const
 

Gets the password text, sans spaces.

Returns:
The password text.

Definition at line 47 of file PasswordTextCtrl.cc.

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

Called when a char is typed into this PasswordTextCtrl.

Parameters:
event The triggering wxKeyEvent.

Definition at line 125 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 192 of file PasswordTextCtrl.cc.

void PasswordTextCtrl::Paste  )  [virtual]
 

Pastes the contents of the Clipboard onto this PasswordTextCtrl.

Definition at line 69 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 111 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 54 of file PasswordTextCtrl.cc.


Generated on Sun Oct 2 01:02:58 2005 for Metroid Password Generator by  doxygen 1.4.2