#include <MainFrame.hh>
Definition at line 31 of file MainFrame.hh.
Public Member Functions | |
MainFrame () | |
Constructs a new MainFrame. | |
void | CreateControls () |
Creates the frame controls. | |
Private Member Functions | |
bool | isOpen () const |
Checks if we have an opem SRAM file. | |
void | setOpen (bool open) |
Sets whether we have an open SRAM file or not. | |
bool | close () |
Closes the current SRAM file. | |
void | loadGameData (int game) |
Loads game data into the controls. | |
void | load (wxString &filename) |
Loads an SRAM file for editing. | |
void | fileOpen (wxCommandEvent &event) |
Callback triggered when open is selected from the file menu. | |
void | fileClose (wxCommandEvent &event) |
Callback triggered when close is selected from the file menu. | |
void | fileSave (wxCommandEvent &event) |
Callback triggered when save is selected from the file menu. | |
void | fileSaveAs (wxCommandEvent &event) |
Callback triggered when save as is selected from the file menu. | |
void | fileExit (wxCommandEvent &event) |
Callback triggered when exit is selected from the file menu. | |
void | windowClosing (wxCloseEvent &event) |
Callback triggered when the window is being closed. | |
void | gameChange (wxCommandEvent &event) |
Callback triggered when the current game is changed. | |
void | multiChange (wxCommandEvent &event) |
Callback triggered when something on the have menu is selected. | |
void | helpAbout (wxCommandEvent &event) |
Callback triggered when about is selected from the help menu. | |
void | nameChange (wxCommandEvent &event) |
Callback triggered when the name is changed. | |
void | playCountChange (wxScrollEvent &event) |
Callback triggered when the play count is changed. | |
void | triforceChange (wxCommandEvent &event) |
Callback triggered when the triforce is changed. | |
void | levelChange (wxScrollEvent &event) |
Callback triggered when an experience level is changed. | |
void | containerChange (wxScrollEvent &event) |
Callback triggered when a container value is changed. | |
void | techniqueChange (wxCommandEvent &event) |
Callback triggered when a technique is changed. | |
void | spellChange (wxCommandEvent &event) |
Callback triggered when a spell is changed. | |
void | itemChange (wxCommandEvent &event) |
Callback triggered when an item is changed. | |
void | sealChange (wxCommandEvent &event) |
Callback triggered when a palace seal is changed. | |
void | keyChange (wxScrollEvent &event) |
Callback triggered when the keys are changed. | |
Private Attributes | |
bool | open |
SRAMFile * | sram |
wxMenuItem * | fileCloseItem |
wxMenuItem * | fileSaveItem |
wxMenuItem * | fileSaveAsItem |
wxMenuItem * | gameItems [3] |
wxPanel * | panel |
wxTextCtrl * | nameText |
wxSlider * | playCountSlider |
wxCheckBox * | triforceCheck |
wxSlider * | swordLevelSlider |
wxSlider * | magicLevelSlider |
wxSlider * | lifeLevelSlider |
wxSlider * | magicContainerSlider |
wxSlider * | lifeContainerSlider |
wxCheckBox * | downwardThrustCheck |
wxCheckBox * | upwardThrustCheck |
wxCheckBox * | shieldCheck |
wxCheckBox * | jumpCheck |
wxCheckBox * | lifeCheck |
wxCheckBox * | fairyCheck |
wxCheckBox * | fireCheck |
wxCheckBox * | reflectCheck |
wxCheckBox * | spellCheck |
wxCheckBox * | thunderCheck |
wxCheckBox * | candleCheck |
wxCheckBox * | gloveCheck |
wxCheckBox * | raftCheck |
wxCheckBox * | bootsCheck |
wxCheckBox * | crossCheck |
wxCheckBox * | fluteCheck |
wxCheckBox * | magicKeyCheck |
wxCheckBox * | hammerCheck |
wxCheckBox * | palaceCheck [6] |
wxSlider * | keySlider |
Friends | |
class | FileDropTarget |
MainFrame::MainFrame | ( | ) |
void MainFrame::CreateControls | ( | ) |
bool emuWorks::MainFrame::isOpen | ( | ) | const [inline, private] |
void MainFrame::setOpen | ( | bool | open | ) | [private] |
Sets whether we have an open SRAM file or not.
open | true if open; false otherwise. |
Definition at line 143 of file MainFrame.cc.
bool MainFrame::close | ( | ) | [private] |
Closes the current SRAM file.
Definition at line 153 of file MainFrame.cc.
void MainFrame::loadGameData | ( | int | game | ) | [private] |
Loads game data into the controls.
game | Which game to load. |
Definition at line 184 of file MainFrame.cc.
void MainFrame::load | ( | wxString & | filename | ) | [private] |
Loads an SRAM file for editing.
filename | The file to load. |
Definition at line 229 of file MainFrame.cc.
void MainFrame::fileOpen | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when open is selected from the file menu.
event | The associated command event. |
Definition at line 261 of file MainFrame.cc.
void MainFrame::fileClose | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when close is selected from the file menu.
event | The associated command event. |
Definition at line 274 of file MainFrame.cc.
void MainFrame::fileSave | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when save is selected from the file menu.
event | The associated command event. |
Definition at line 278 of file MainFrame.cc.
void MainFrame::fileSaveAs | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when save as is selected from the file menu.
event | The associated command event. |
Definition at line 282 of file MainFrame.cc.
void MainFrame::fileExit | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when exit is selected from the file menu.
event | The associated command event. |
Definition at line 295 of file MainFrame.cc.
void MainFrame::windowClosing | ( | wxCloseEvent & | event | ) | [private] |
Callback triggered when the window is being closed.
event | The associated command event. |
Definition at line 301 of file MainFrame.cc.
void MainFrame::gameChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when the current game is changed.
event | The associated command event. |
Definition at line 312 of file MainFrame.cc.
void MainFrame::multiChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when something on the have menu is selected.
event | The associated command event. |
Definition at line 324 of file MainFrame.cc.
void MainFrame::helpAbout | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when about is selected from the help menu.
event | The associated command event. |
Definition at line 511 of file MainFrame.cc.
void MainFrame::nameChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when the name is changed.
event | The associated command event. |
Definition at line 523 of file MainFrame.cc.
void MainFrame::playCountChange | ( | wxScrollEvent & | event | ) | [private] |
Callback triggered when the play count is changed.
event | The associated scroll event. |
Definition at line 533 of file MainFrame.cc.
void MainFrame::triforceChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when the triforce is changed.
event | The associated command event. |
Definition at line 542 of file MainFrame.cc.
void MainFrame::levelChange | ( | wxScrollEvent & | event | ) | [private] |
Callback triggered when an experience level is changed.
event | The associated scroll event. |
Definition at line 551 of file MainFrame.cc.
void MainFrame::containerChange | ( | wxScrollEvent & | event | ) | [private] |
Callback triggered when a container value is changed.
event | The associated scroll event. |
Definition at line 570 of file MainFrame.cc.
void MainFrame::techniqueChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when a technique is changed.
event | The associated command event. |
Definition at line 584 of file MainFrame.cc.
void MainFrame::spellChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when a spell is changed.
event | The associated command event. |
Definition at line 598 of file MainFrame.cc.
void MainFrame::itemChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when an item is changed.
event | The associated command event. |
Definition at line 627 of file MainFrame.cc.
void MainFrame::sealChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when a palace seal is changed.
event | The associated command event. |
Definition at line 656 of file MainFrame.cc.
void MainFrame::keyChange | ( | wxScrollEvent & | event | ) | [private] |
Callback triggered when the keys are changed.
event | The associated scroll event. |
Definition at line 674 of file MainFrame.cc.
friend class FileDropTarget [friend] |
Definition at line 35 of file MainFrame.hh.
bool emuWorks::MainFrame::open [private] |
Definition at line 215 of file MainFrame.hh.
SRAMFile* emuWorks::MainFrame::sram [private] |
Definition at line 217 of file MainFrame.hh.
wxMenuItem* emuWorks::MainFrame::fileCloseItem [private] |
Definition at line 219 of file MainFrame.hh.
wxMenuItem* emuWorks::MainFrame::fileSaveItem [private] |
Definition at line 220 of file MainFrame.hh.
wxMenuItem* emuWorks::MainFrame::fileSaveAsItem [private] |
Definition at line 221 of file MainFrame.hh.
wxMenuItem* emuWorks::MainFrame::gameItems[3] [private] |
Definition at line 222 of file MainFrame.hh.
wxPanel* emuWorks::MainFrame::panel [private] |
Definition at line 224 of file MainFrame.hh.
wxTextCtrl* emuWorks::MainFrame::nameText [private] |
Definition at line 226 of file MainFrame.hh.
wxSlider* emuWorks::MainFrame::playCountSlider [private] |
Definition at line 227 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::triforceCheck [private] |
Definition at line 228 of file MainFrame.hh.
wxSlider* emuWorks::MainFrame::swordLevelSlider [private] |
Definition at line 230 of file MainFrame.hh.
wxSlider* emuWorks::MainFrame::magicLevelSlider [private] |
Definition at line 231 of file MainFrame.hh.
wxSlider* emuWorks::MainFrame::lifeLevelSlider [private] |
Definition at line 232 of file MainFrame.hh.
wxSlider* emuWorks::MainFrame::magicContainerSlider [private] |
Definition at line 234 of file MainFrame.hh.
wxSlider* emuWorks::MainFrame::lifeContainerSlider [private] |
Definition at line 235 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::downwardThrustCheck [private] |
Definition at line 237 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::upwardThrustCheck [private] |
Definition at line 238 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::shieldCheck [private] |
Definition at line 240 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::jumpCheck [private] |
Definition at line 241 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::lifeCheck [private] |
Definition at line 242 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::fairyCheck [private] |
Definition at line 243 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::fireCheck [private] |
Definition at line 244 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::reflectCheck [private] |
Definition at line 245 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::spellCheck [private] |
Definition at line 246 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::thunderCheck [private] |
Definition at line 247 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::candleCheck [private] |
Definition at line 249 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::gloveCheck [private] |
Definition at line 250 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::raftCheck [private] |
Definition at line 251 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::bootsCheck [private] |
Definition at line 252 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::crossCheck [private] |
Definition at line 253 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::fluteCheck [private] |
Definition at line 254 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::magicKeyCheck [private] |
Definition at line 255 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::hammerCheck [private] |
Definition at line 256 of file MainFrame.hh.
wxCheckBox* emuWorks::MainFrame::palaceCheck[6] [private] |
Definition at line 258 of file MainFrame.hh.
wxSlider* emuWorks::MainFrame::keySlider [private] |
Definition at line 259 of file MainFrame.hh.