ffse::MainFrame Class Reference

#include <MainFrame.hh>

List of all members.


Detailed Description

The main frame and primary view for the application.

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
SaveSlotgame
char * sram
int member
bool open

Friends

class FileDropTarget


Constructor & Destructor Documentation

MainFrame::MainFrame (  ) 

Constructor for a MainFrame.

Definition at line 48 of file MainFrame.cc.


Member Function Documentation

void MainFrame::CreateControls (  )  [private]

Creates the controls used by this MainFrame.

Definition at line 59 of file MainFrame.cc.

bool ffse::MainFrame::isOpen (  )  [inline, private]

Checks if an SRAM file is currently open.

Returns:
true if open; false otherwise.

Definition at line 75 of file MainFrame.hh.

void MainFrame::setOpen ( bool  open  )  [private]

Sets whether an SRAM file is open or not.

Parameters:
open true if open; false otherwise.

Definition at line 227 of file MainFrame.cc.

void MainFrame::loadCharacterData ( int  member = 0  )  [private]

Loads the data for a particular member.

Parameters:
member The member whose data to load.

Definition at line 239 of file MainFrame.cc.

void MainFrame::loadGameData (  )  [private]

Loads the game data into the frame controls.

Definition at line 303 of file MainFrame.cc.

void MainFrame::load ( wxString &  filename  )  [private]

Loads an SRAM file.

Parameters:
filename The SRAM file to load.

Definition at line 365 of file MainFrame.cc.

void MainFrame::fileOpen ( wxCommandEvent &  event  )  [private]

Callback triggered when open is selected from the file menu.

Parameters:
event The associated command event.

Definition at line 416 of file MainFrame.cc.

bool MainFrame::close (  )  [private]

Closes the currently open SRAM file.

Returns:
true if closed; false otherwise.

Definition at line 429 of file MainFrame.cc.

void MainFrame::fileClose ( wxCommandEvent &  event  )  [private]

Callback triggered when close is selected from the file menu.

Parameters:
event The associated command event.

Definition at line 460 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.

Returns:
true if valid; false otherwise.

Definition at line 464 of file MainFrame.cc.

bool MainFrame::save ( wxString &  filename  )  [private]

Saves the current SRAM to file.

Parameters:
filename The filename to save to.
Returns:
true if the SRAM was saved; false otherwise.

Definition at line 522 of file MainFrame.cc.

void MainFrame::fileSave ( wxCommandEvent &  event  )  [private]

Callback triggered when save is selected from the file menu.

Parameters:
event The associated command event.

Definition at line 560 of file MainFrame.cc.

void MainFrame::fileSaveAs ( wxCommandEvent &  event  )  [private]

Callback triggered when "save as" is selected from the file menu.

Parameters:
event The associated command event.

Definition at line 564 of file MainFrame.cc.

void MainFrame::fileExit ( wxCommandEvent &  event  )  [private]

Callback triggered when exit is selected from the file menu.

Parameters:
event The associated command event.

Definition at line 577 of file MainFrame.cc.

void MainFrame::windowClosing ( wxCloseEvent &  event  )  [private]

Callback triggered when the window is being closed.

Parameters:
event The associated command event.

Definition at line 583 of file MainFrame.cc.

void MainFrame::memberChange ( wxCommandEvent &  event  )  [private]

Callback triggered when one of the character menu items is selected.

Parameters:
event The associated command event.

Definition at line 594 of file MainFrame.cc.

void MainFrame::helpAbout ( wxCommandEvent &  event  )  [private]

Callback triggered when about is selected from the help menu.

Parameters:
event The associated command event.

Definition at line 612 of file MainFrame.cc.

void MainFrame::goldChange ( wxCommandEvent &  event  )  [private]

Callback triggered when the amount of gold is changed.

Parameters:
event The associated command event.

Definition at line 622 of file MainFrame.cc.

void MainFrame::itemQuantityChange ( wxScrollEvent &  event  )  [private]

Callback triggered when an quantity item is changed.

Parameters:
event The associated scroll event.

Definition at line 630 of file MainFrame.cc.

void MainFrame::itemHaveChange ( wxCommandEvent &  event  )  [private]

Callback triggered when an item is changed.

Parameters:
event The associated command event.

Definition at line 653 of file MainFrame.cc.

void MainFrame::nameChange ( wxCommandEvent &  event  )  [private]

Callback when a member's name is changed.

Parameters:
event The associated command event.

Definition at line 706 of file MainFrame.cc.

void MainFrame::conditionChange ( wxCommandEvent &  event  )  [private]

Callback triggered when class or condition is changed.

Parameters:
event The associated command event.

Definition at line 715 of file MainFrame.cc.

void MainFrame::statChange ( wxCommandEvent &  event  )  [private]

Callback triggered when a stat change occurs.

Parameters:
event The associated command event.

Definition at line 729 of file MainFrame.cc.

void MainFrame::weaponChange ( wxCommandEvent &  event  )  [private]

Callback triggered when a weapon change occurs.

Parameters:
event The associated command event.

Definition at line 760 of file MainFrame.cc.

void MainFrame::weaponEquippedChange ( wxCommandEvent &  event  )  [private]

Callback triggered when an equipped weapon change occurs.

Parameters:
event The associated command event.

Definition at line 783 of file MainFrame.cc.

void MainFrame::armorChange ( wxCommandEvent &  event  )  [private]

Callback triggered when an armor change occurs.

Parameters:
event The associated command event.

Definition at line 806 of file MainFrame.cc.

void MainFrame::armorEquippedChange ( wxCommandEvent &  event  )  [private]

Callback triggered when an equipped armor change occurs.

Parameters:
event The associated command event.

Definition at line 829 of file MainFrame.cc.

void MainFrame::currentMagicChange ( wxScrollEvent &  event  )  [private]

Callback triggered when the current magic level is changed.

Parameters:
event The associated scroll event.

Definition at line 852 of file MainFrame.cc.

void MainFrame::maxMagicChange ( wxScrollEvent &  event  )  [private]

Callback triggered when the max magic level is changed.

Parameters:
event The associated scroll event.

Definition at line 869 of file MainFrame.cc.

void MainFrame::knownMagicChange ( wxCommandEvent &  event  )  [private]

Callback triggered when the known magic is changed.

Parameters:
event The associated command event.

Definition at line 886 of file MainFrame.cc.


Friends And Related Function Documentation

friend class FileDropTarget [friend]

Definition at line 38 of file MainFrame.hh.


Member Data Documentation

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.


Generated on Sun Feb 25 07:02:52 2007 for ffse by  doxygen 1.5.1-p1