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

mpg::MPGFrame Class Reference

#include <MPGFrame.hh>

List of all members.


Detailed Description

The main application frame.

Definition at line 36 of file MPGFrame.hh.

Public Member Functions

 MPGFrame ()
 Creates a new MPGFrame.

Private Types

enum  {
  BRINSTAR, KRAIDSLAIR, NORFAIR, RIDLEYSLAIR,
  TOURIAN
}

Private Member Functions

void CreateControls ()
 Creates the controls for this MPGFrame.
void updateControls ()
 Updates all the controls based on the current password data.
void updatePasswordText (bool updateCtrl=true)
 Updates the text password when the password data has changed.
void updateRawGameTime (wxUint32 value)
 Updates the raw game time bits.
void updateRawMissiles (unsigned char value)
 Updates the raw missile bits.
void updateRealTime ()
 Updates the approximate real time label.
void updateStartLocation ()
 Updates the start location radio box control.
void updateTextCtrlSizes ()
 Updates the sizes for the text controls so they are wide enough.
void warnOnDebugPassword (const wxString &password)
 Warns the user about the debug password.
void onArmorChanged (wxCommandEvent &event)
 Called when Samus's armor is changed.
void onBossChanged (wxCommandEvent &event)
 Called when a boss checkbox is changed.
void onChecksumShift (wxCommandEvent &event)
 Called when a shift value from the checksum menu is selected.
void onDoorChanged (wxCommandEvent &event)
 Called when a door checkbox is changed.
void onEnergyTankChanged (wxCommandEvent &event)
 Called when an energy tank checkbox is changed.
void onFileExit (wxCommandEvent &event)
 Called when exit is selected from the file menu.
void onFixChecksum (wxCommandEvent &event)
 Called when the fix checksum button is pressed.
void onGameSystem (wxCommandEvent &event)
 Called when NTSC or PAL is selected from the game menu.
void onGameTimeChanged (wxCommandEvent &event)
 Called when the game time is changed.
void onHelpAbout (wxCommandEvent &event)
 Called when about from the help menu is selected.
void onItemChanged (wxCommandEvent &event)
 Called when an item checkbox is changed.
void onMissileContainerChanged (wxCommandEvent &event)
 Called when a missile container checkbox is changed.
void onMissilesSpinner (wxSpinEvent &event)
 Called when the missile count spin button is pressed.
void onMissilesTextChanged (wxCommandEvent &event)
 Called when the missile count text is changed.
void onPasswordChanged (wxCommandEvent &event)
 Called when the metroid password is changed.
void onPasswordDebugPassword (wxCommandEvent &event)
 Called when debug password from the password menu is selected.
void onPasswordEnding (wxCommandEvent &event)
 Called when an ending is selected from the password menu.
void onPasswordGiveBosses (wxCommandEvent &event)
 Called when bosses is selected from the password's give menu.
void onPasswordGiveDoors (wxCommandEvent &event)
 Called when doors is selected from the password's give menu.
void onPasswordGiveEnergyTanks (wxCommandEvent &event)
 Called when energy tanks is selected from the password's give menu.
void onPasswordGiveItems (wxCommandEvent &event)
 Called when items is selected from the password's give menu.
void onPasswordGiveMissiles (wxCommandEvent &event)
 Called when missiles is selected from the password's give menu.
void onPasswordGiveMissileContainers (wxCommandEvent &event)
 Called when missile containers is selected from the password's give menu.
void onPasswordGiveStatues (wxCommandEvent &event)
 Called when statues is selected from the password's give menu.
void onPasswordGiveZebetites (wxCommandEvent &event)
 Called when zebetites is selected from the password's give menu.
void onPasswordPerfectGame (wxCommandEvent &event)
 Called when perfect game from the password menu is selected.
void onPasswordReset (wxCommandEvent &event)
 Called when reset from the password menu is selected.
void onRawBitChanged (wxCommandEvent &event)
 Called when on of the bits in the raw bitlist is changed.
void onShiftSpinner (wxSpinEvent &event)
 Called when the shift spin button is pressed.
void onShiftTextChanged (wxCommandEvent &event)
 Called when the shift text value is changed.
void onStartLocationChanged (wxCommandEvent &event)
 Called when the start location is changed.
void onStatueChanged (wxCommandEvent &event)
 Called when a statue checkbox is changed.
void onZebetiteChanged (wxCommandEvent &event)
 Called when a zebetite checkbox is changed.

Private Attributes

wxButton * fixChecksumButton
Password password
bool ignoreTextEvent
bool pal

Static Private Attributes

static const int MAX_MISSILES = 255


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
BRINSTAR 
KRAIDSLAIR 
NORFAIR 
RIDLEYSLAIR 
TOURIAN 

Definition at line 45 of file MPGFrame.hh.


Constructor & Destructor Documentation

MPGFrame::onItemChanged MPGFrame::onItemChanged MPGFrame::onItemChanged MPGFrame::onItemChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onMissileContainerChanged MPGFrame::onEnergyTankChanged MPGFrame::onEnergyTankChanged MPGFrame::onEnergyTankChanged MPGFrame::onEnergyTankChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onDoorChanged MPGFrame::onStatueChanged MPGFrame::onZebetiteChanged MPGFrame::onZebetiteChanged MPGFrame::onZebetiteChanged MPGFrame::onBossChanged MPGFrame::onRawBitChanged MPGFrame::onPasswordDebugPassword MPGFrame::onPasswordEnding MPGFrame::onPasswordEnding MPGFrame::onPasswordEnding MPGFrame::onPasswordGiveItems MPGFrame::onPasswordGiveEnergyTanks MPGFrame::onPasswordGiveStatues MPGFrame::onPasswordGiveBosses MPGFrame::onGameSystem MPGFrame::onChecksumShift MPGFrame::onChecksumShift MPGFrame::onChecksumShift MPGFrame::onChecksumShift MPGFrame::onChecksumShift MPGFrame::onChecksumShift MPGFrame::onChecksumShift MPGFrame::onChecksumShift MPGFrame::onArmorChanged MPGFrame::onShiftSpinner MPGFrame::onGameTimeChanged MPGFrame::onPasswordChanged MPGFrame::MPGFrame  ) 
 

Creates a new MPGFrame.

Definition at line 201 of file MPGFrame.cc.


Member Function Documentation

void MPGFrame::CreateControls  )  [private]
 

Creates the controls for this MPGFrame.

Definition at line 211 of file MPGFrame.cc.

void MPGFrame::onArmorChanged wxCommandEvent &  event  )  [private]
 

Called when Samus's armor is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 560 of file MPGFrame.cc.

void MPGFrame::onBossChanged wxCommandEvent &  event  )  [private]
 

Called when a boss checkbox is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 571 of file MPGFrame.cc.

void MPGFrame::onChecksumShift wxCommandEvent &  event  )  [private]
 

Called when a shift value from the checksum menu is selected.

Parameters:
event The triggering wxCommandEvent.

Definition at line 591 of file MPGFrame.cc.

void MPGFrame::onDoorChanged wxCommandEvent &  event  )  [private]
 

Called when a door checkbox is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 639 of file MPGFrame.cc.

void MPGFrame::onEnergyTankChanged wxCommandEvent &  event  )  [private]
 

Called when an energy tank checkbox is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 691 of file MPGFrame.cc.

void mpg::MPGFrame::onFileExit wxCommandEvent &  event  )  [inline, private]
 

Called when exit is selected from the file menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 344 of file MPGFrame.hh.

void MPGFrame::onFixChecksum wxCommandEvent &  event  )  [private]
 

Called when the fix checksum button is pressed.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 721 of file MPGFrame.cc.

void MPGFrame::onGameSystem wxCommandEvent &  event  )  [private]
 

Called when NTSC or PAL is selected from the game menu.

Parameters:
event The triggering wxCommandEvent.

Definition at line 729 of file MPGFrame.cc.

void MPGFrame::onGameTimeChanged wxCommandEvent &  event  )  [private]
 

Called when the game time is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 735 of file MPGFrame.cc.

void MPGFrame::onHelpAbout wxCommandEvent &  event  )  [private]
 

Called when about from the help menu is selected.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 756 of file MPGFrame.cc.

void MPGFrame::onItemChanged wxCommandEvent &  event  )  [private]
 

Called when an item checkbox is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 764 of file MPGFrame.cc.

void MPGFrame::onMissileContainerChanged wxCommandEvent &  event  )  [private]
 

Called when a missile container checkbox is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 815 of file MPGFrame.cc.

void MPGFrame::onMissilesSpinner wxSpinEvent &  event  )  [private]
 

Called when the missile count spin button is pressed.

Parameters:
event The triggering wxSpinEvent.

Definition at line 871 of file MPGFrame.cc.

void MPGFrame::onMissilesTextChanged wxCommandEvent &  event  )  [private]
 

Called when the missile count text is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 886 of file MPGFrame.cc.

void MPGFrame::onPasswordChanged wxCommandEvent &  event  )  [private]
 

Called when the metroid password is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 914 of file MPGFrame.cc.

void MPGFrame::onPasswordDebugPassword wxCommandEvent &  event  )  [private]
 

Called when debug password from the password menu is selected.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 936 of file MPGFrame.cc.

void MPGFrame::onPasswordEnding wxCommandEvent &  event  )  [private]
 

Called when an ending is selected from the password menu.

Parameters:
event The triggering wxCommandEvent.

Definition at line 942 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveBosses wxCommandEvent &  event  )  [private]
 

Called when bosses is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 959 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveDoors wxCommandEvent &  event  )  [private]
 

Called when doors is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 968 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveEnergyTanks wxCommandEvent &  event  )  [private]
 

Called when energy tanks is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 997 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveItems wxCommandEvent &  event  )  [private]
 

Called when items is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 1014 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveMissileContainers wxCommandEvent &  event  )  [private]
 

Called when missile containers is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 1069 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveMissiles wxCommandEvent &  event  )  [private]
 

Called when missiles is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 1038 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveStatues wxCommandEvent &  event  )  [private]
 

Called when statues is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 1099 of file MPGFrame.cc.

void MPGFrame::onPasswordGiveZebetites wxCommandEvent &  event  )  [private]
 

Called when zebetites is selected from the password's give menu.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 1107 of file MPGFrame.cc.

void MPGFrame::onPasswordPerfectGame wxCommandEvent &  event  )  [private]
 

Called when perfect game from the password menu is selected.

Parameters:
event The triggering wxCommandEvent (unused).

Definition at line 1118 of file MPGFrame.cc.

void MPGFrame::onPasswordReset wxCommandEvent &  event  )  [private]
 

Called when reset from the password menu is selected.

Parameters:
event The triggerin wxCommandEvent (unused).

Definition at line 1165 of file MPGFrame.cc.

void MPGFrame::onRawBitChanged wxCommandEvent &  event  )  [private]
 

Called when on of the bits in the raw bitlist is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 1178 of file MPGFrame.cc.

void MPGFrame::onShiftSpinner wxSpinEvent &  event  )  [private]
 

Called when the shift spin button is pressed.

Parameters:
event The triggering wxSpinEvent.

Definition at line 1580 of file MPGFrame.cc.

void MPGFrame::onShiftTextChanged wxCommandEvent &  event  )  [private]
 

Called when the shift text value is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 1594 of file MPGFrame.cc.

void MPGFrame::onStartLocationChanged wxCommandEvent &  event  )  [private]
 

Called when the start location is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 1621 of file MPGFrame.cc.

void MPGFrame::onStatueChanged wxCommandEvent &  event  )  [private]
 

Called when a statue checkbox is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 1676 of file MPGFrame.cc.

void MPGFrame::onZebetiteChanged wxCommandEvent &  event  )  [private]
 

Called when a zebetite checkbox is changed.

Parameters:
event The triggering wxCommandEvent.

Definition at line 1694 of file MPGFrame.cc.

void MPGFrame::updateControls  )  [private]
 

Updates all the controls based on the current password data.

Definition at line 240 of file MPGFrame.cc.

void MPGFrame::updatePasswordText bool  updateCtrl = true  )  [private]
 

Updates the text password when the password data has changed.

Parameters:
updateCtrl true to update the text control value; false otherwise.

Definition at line 446 of file MPGFrame.cc.

void MPGFrame::updateRawGameTime wxUint32  value  )  [private]
 

Updates the raw game time bits.

Parameters:
value The game time value.

Definition at line 459 of file MPGFrame.cc.

void MPGFrame::updateRawMissiles unsigned char  value  )  [private]
 

Updates the raw missile bits.

Parameters:
value The missile count value.

Definition at line 467 of file MPGFrame.cc.

void MPGFrame::updateRealTime  )  [private]
 

Updates the approximate real time label.

Definition at line 475 of file MPGFrame.cc.

void MPGFrame::updateStartLocation  )  [private]
 

Updates the start location radio box control.

Definition at line 497 of file MPGFrame.cc.

void MPGFrame::updateTextCtrlSizes  )  [private]
 

Updates the sizes for the text controls so they are wide enough.

Definition at line 527 of file MPGFrame.cc.

void MPGFrame::warnOnDebugPassword const wxString &  password  )  [private]
 

Warns the user about the debug password.

Parameters:
password The password string.

Definition at line 551 of file MPGFrame.cc.


Member Data Documentation

wxButton* mpg::MPGFrame::fixChecksumButton [private]
 

Definition at line 41 of file MPGFrame.hh.

bool mpg::MPGFrame::ignoreTextEvent [private]
 

Definition at line 43 of file MPGFrame.hh.

const int mpg::MPGFrame::MAX_MISSILES = 255 [static, private]
 

Definition at line 49 of file MPGFrame.hh.

bool mpg::MPGFrame::pal [private]
 

Definition at line 43 of file MPGFrame.hh.

Password mpg::MPGFrame::password [private]
 

Definition at line 42 of file MPGFrame.hh.


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