#include <MainFrame.hh>
Definition at line 34 of file MainFrame.hh.
Public Member Functions | |
MainFrame () | |
Constructor for a MainFrame. | |
Private Member Functions | |
void | CreateControls () |
Creates the controls used by this MainFrame. | |
bool | isOpen () |
Checks if an SRAM file is currently open. | |
void | setOpen (bool open) |
Sets whether an SRAM file is open or not. | |
void | loadCharacterData (int member=0) |
Loads the data for a particular member. | |
void | loadGameData () |
Loads the game data into the frame controls. | |
void | load (wxString &filename) |
Loads an SRAM file. | |
void | fileOpen (wxCommandEvent &event) |
Callback triggered when open is selected from the file menu. | |
bool | close () |
Closes the currently open SRAM file. | |
void | fileClose (wxCommandEvent &event) |
Callback triggered when close is selected from the file menu. | |
bool | isValidEquipment () |
Checks if all party members have valid equipment. | |
bool | save (wxString &filename) |
Saves the current SRAM to file. | |
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 | memberChange (wxCommandEvent &event) |
Callback triggered when one of the character menu items is selected. | |
void | helpAbout (wxCommandEvent &event) |
Callback triggered when about is selected from the help menu. | |
void | goldChange (wxCommandEvent &event) |
Callback triggered when the amount of gold is changed. | |
void | itemQuantityChange (wxScrollEvent &event) |
Callback triggered when an quantity item is changed. | |
void | itemHaveChange (wxCommandEvent &event) |
Callback triggered when an item is changed. | |
void | nameChange (wxCommandEvent &event) |
Callback when a member's name is changed. | |
void | conditionChange (wxCommandEvent &event) |
Callback triggered when class or condition is changed. | |
void | statChange (wxCommandEvent &event) |
Callback triggered when a stat change occurs. | |
void | weaponChange (wxCommandEvent &event) |
Callback triggered when a weapon change occurs. | |
void | weaponEquippedChange (wxCommandEvent &event) |
Callback triggered when an equipped weapon change occurs. | |
void | armorChange (wxCommandEvent &event) |
Callback triggered when an armor change occurs. | |
void | armorEquippedChange (wxCommandEvent &event) |
Callback triggered when an equipped armor change occurs. | |
void | currentMagicChange (wxScrollEvent &event) |
Callback triggered when the current magic level is changed. | |
void | maxMagicChange (wxScrollEvent &event) |
Callback triggered when the max magic level is changed. | |
void | knownMagicChange (wxCommandEvent &event) |
Callback triggered when the known magic is changed. | |
Private Attributes | |
wxCheckBox * | weaponEquippedCheck [4] |
wxCheckBox * | armorEquippedCheck [4] |
wxChoice * | classChoice |
wxChoice * | conditionChoice |
wxChoice * | weaponChoice [4] |
wxChoice * | armorChoice [4] |
wxChoice * | knownMagicChoice [8][3] |
wxMenuItem * | fileCloseItem |
wxMenuItem * | fileSaveItem |
wxMenuItem * | fileSaveAsItem |
wxMenuItem * | memberItems [4] |
wxSlider * | healSlider |
wxSlider * | pureSlider |
wxSlider * | softSlider |
wxSlider * | tentSlider |
wxSlider * | cabinSlider |
wxSlider * | houseSlider |
wxSlider * | currentMagicSlider [8] |
wxSlider * | maxMagicSlider [8] |
wxTextCtrl * | goldText |
wxTextCtrl * | nameText |
wxTextCtrl * | currentHPText |
wxTextCtrl * | maxHPText |
wxTextCtrl * | strengthText |
wxTextCtrl * | agilityText |
wxTextCtrl * | intelligenceText |
wxTextCtrl * | vitalityText |
wxTextCtrl * | luckText |
wxTextCtrl * | experienceText |
wxTextCtrl * | damageText |
wxTextCtrl * | hitPercentText |
wxString | sramFile |
SaveSlot * | game |
char * | sram |
int | member |
bool | open |
Friends | |
class | FileDropTarget |
MainFrame::MainFrame | ( | ) |
void MainFrame::CreateControls | ( | ) | [private] |
bool ffse::MainFrame::isOpen | ( | ) | [inline, private] |
Checks if an SRAM file is currently open.
Definition at line 75 of file MainFrame.hh.
void MainFrame::setOpen | ( | bool | open | ) | [private] |
Sets whether an SRAM file is open or not.
open | true if open; false otherwise. |
Definition at line 238 of file MainFrame.cc.
void MainFrame::loadCharacterData | ( | int | member = 0 |
) | [private] |
Loads the data for a particular member.
member | The member whose data to load. |
Definition at line 250 of file MainFrame.cc.
void MainFrame::loadGameData | ( | ) | [private] |
void MainFrame::load | ( | wxString & | filename | ) | [private] |
Loads an SRAM file.
filename | The SRAM file to load. |
Definition at line 376 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 427 of file MainFrame.cc.
bool MainFrame::close | ( | ) | [private] |
Closes the currently open SRAM file.
Definition at line 440 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 471 of file MainFrame.cc.
bool MainFrame::isValidEquipment | ( | ) | [private] |
Checks if all party members have valid equipment.
Invalid equipment only refers to duplicate equipped items, not to invalid selections based on what a character's class can equip.
Definition at line 475 of file MainFrame.cc.
bool MainFrame::save | ( | wxString & | filename | ) | [private] |
Saves the current SRAM to file.
filename | The filename to save to. |
Definition at line 533 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 571 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 575 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 588 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 594 of file MainFrame.cc.
void MainFrame::memberChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when one of the character menu items is selected.
event | The associated command event. |
Definition at line 605 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 623 of file MainFrame.cc.
void MainFrame::goldChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when the amount of gold is changed.
event | The associated command event. |
Definition at line 632 of file MainFrame.cc.
void MainFrame::itemQuantityChange | ( | wxScrollEvent & | event | ) | [private] |
Callback triggered when an quantity item is changed.
event | The associated scroll event. |
Definition at line 640 of file MainFrame.cc.
void MainFrame::itemHaveChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when an item is changed.
event | The associated command event. |
Definition at line 663 of file MainFrame.cc.
void MainFrame::nameChange | ( | wxCommandEvent & | event | ) | [private] |
Callback when a member's name is changed.
event | The associated command event. |
Definition at line 716 of file MainFrame.cc.
void MainFrame::conditionChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when class or condition is changed.
event | The associated command event. |
Definition at line 725 of file MainFrame.cc.
void MainFrame::statChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when a stat change occurs.
event | The associated command event. |
Definition at line 739 of file MainFrame.cc.
void MainFrame::weaponChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when a weapon change occurs.
event | The associated command event. |
Definition at line 770 of file MainFrame.cc.
void MainFrame::weaponEquippedChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when an equipped weapon change occurs.
event | The associated command event. |
Definition at line 793 of file MainFrame.cc.
void MainFrame::armorChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when an armor change occurs.
event | The associated command event. |
Definition at line 816 of file MainFrame.cc.
void MainFrame::armorEquippedChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when an equipped armor change occurs.
event | The associated command event. |
Definition at line 839 of file MainFrame.cc.
void MainFrame::currentMagicChange | ( | wxScrollEvent & | event | ) | [private] |
Callback triggered when the current magic level is changed.
event | The associated scroll event. |
Definition at line 862 of file MainFrame.cc.
void MainFrame::maxMagicChange | ( | wxScrollEvent & | event | ) | [private] |
Callback triggered when the max magic level is changed.
event | The associated scroll event. |
Definition at line 879 of file MainFrame.cc.
void MainFrame::knownMagicChange | ( | wxCommandEvent & | event | ) | [private] |
Callback triggered when the known magic is changed.
event | The associated command event. |
Definition at line 896 of file MainFrame.cc.
friend class FileDropTarget [friend] |
Definition at line 38 of file MainFrame.hh.
wxCheckBox* ffse::MainFrame::weaponEquippedCheck[4] [private] |
Definition at line 41 of file MainFrame.hh.
wxCheckBox * ffse::MainFrame::armorEquippedCheck[4] [private] |
Definition at line 41 of file MainFrame.hh.
wxChoice* ffse::MainFrame::classChoice [private] |
Definition at line 43 of file MainFrame.hh.
wxChoice * ffse::MainFrame::conditionChoice [private] |
Definition at line 43 of file MainFrame.hh.
wxChoice* ffse::MainFrame::weaponChoice[4] [private] |
Definition at line 44 of file MainFrame.hh.
wxChoice * ffse::MainFrame::armorChoice[4] [private] |
Definition at line 44 of file MainFrame.hh.
wxChoice* ffse::MainFrame::knownMagicChoice[8][3] [private] |
Definition at line 45 of file MainFrame.hh.
wxMenuItem* ffse::MainFrame::fileCloseItem [private] |
Definition at line 47 of file MainFrame.hh.
wxMenuItem * ffse::MainFrame::fileSaveItem [private] |
Definition at line 47 of file MainFrame.hh.
wxMenuItem * ffse::MainFrame::fileSaveAsItem [private] |
Definition at line 47 of file MainFrame.hh.
wxMenuItem* ffse::MainFrame::memberItems[4] [private] |
Definition at line 48 of file MainFrame.hh.
wxSlider* ffse::MainFrame::healSlider [private] |
Definition at line 50 of file MainFrame.hh.
wxSlider * ffse::MainFrame::pureSlider [private] |
Definition at line 50 of file MainFrame.hh.
wxSlider * ffse::MainFrame::softSlider [private] |
Definition at line 50 of file MainFrame.hh.
wxSlider* ffse::MainFrame::tentSlider [private] |
Definition at line 51 of file MainFrame.hh.
wxSlider * ffse::MainFrame::cabinSlider [private] |
Definition at line 51 of file MainFrame.hh.
wxSlider * ffse::MainFrame::houseSlider [private] |
Definition at line 51 of file MainFrame.hh.
wxSlider* ffse::MainFrame::currentMagicSlider[8] [private] |
Definition at line 52 of file MainFrame.hh.
wxSlider * ffse::MainFrame::maxMagicSlider[8] [private] |
Definition at line 52 of file MainFrame.hh.
wxTextCtrl* ffse::MainFrame::goldText [private] |
Definition at line 54 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::nameText [private] |
Definition at line 54 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::currentHPText [private] |
Definition at line 54 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::maxHPText [private] |
Definition at line 54 of file MainFrame.hh.
wxTextCtrl* ffse::MainFrame::strengthText [private] |
Definition at line 55 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::agilityText [private] |
Definition at line 55 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::intelligenceText [private] |
Definition at line 55 of file MainFrame.hh.
wxTextCtrl* ffse::MainFrame::vitalityText [private] |
Definition at line 56 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::luckText [private] |
Definition at line 56 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::experienceText [private] |
Definition at line 56 of file MainFrame.hh.
wxTextCtrl* ffse::MainFrame::damageText [private] |
Definition at line 57 of file MainFrame.hh.
wxTextCtrl * ffse::MainFrame::hitPercentText [private] |
Definition at line 57 of file MainFrame.hh.
wxString ffse::MainFrame::sramFile [private] |
Definition at line 59 of file MainFrame.hh.
SaveSlot* ffse::MainFrame::game [private] |
Definition at line 60 of file MainFrame.hh.
char* ffse::MainFrame::sram [private] |
Definition at line 61 of file MainFrame.hh.
int ffse::MainFrame::member [private] |
Definition at line 62 of file MainFrame.hh.
bool ffse::MainFrame::open [private] |
Definition at line 63 of file MainFrame.hh.