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

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 39 of file MainFrame.hh.

Public Member Functions

 MainFrame ()
 Constructor for a MainFrame.
void CreateControls ()
 Creates the controls used by this MainFrame.

Private Member Functions

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

wxString sramFile
char * sram
SaveSlotgame
int member
bool open
wxNotebook * notebook
wxMenuItem * fileCloseItem
wxMenuItem * fileSaveItem
wxMenuItem * fileSaveAsItem
wxMenuItem * memberItems [4]
wxTextCtrl * goldText
wxSlider * healSlider
wxSlider * pureSlider
wxSlider * softSlider
wxSlider * tentSlider
wxSlider * cabinSlider
wxSlider * houseSlider
wxCheckBox * luteCheck
wxCheckBox * crownCheck
wxCheckBox * crystalCheck
wxCheckBox * herbCheck
wxCheckBox * keyCheck
wxCheckBox * tntCheck
wxCheckBox * adamentCheck
wxCheckBox * slabCheck
wxCheckBox * rubyCheck
wxCheckBox * rodCheck
wxCheckBox * floaterCheck
wxCheckBox * chimeCheck
wxCheckBox * tailCheck
wxCheckBox * cubeCheck
wxCheckBox * bottleCheck
wxCheckBox * oxyaleCheck
wxCheckBox * canoeCheck
wxCheckBox * fireOrbCheck
wxCheckBox * waterOrbCheck
wxCheckBox * windOrbCheck
wxCheckBox * earthOrbCheck
wxTextCtrl * nameText
wxChoice * classChoice
wxChoice * conditionChoice
wxTextCtrl * currentHPText
wxTextCtrl * maxHPText
wxTextCtrl * strengthText
wxTextCtrl * agilityText
wxTextCtrl * intelligenceText
wxTextCtrl * vitalityText
wxTextCtrl * luckText
wxTextCtrl * experienceText
wxTextCtrl * damageText
wxTextCtrl * hitPercentText
wxChoice * weaponChoice [4]
wxCheckBox * weaponEquippedCheck [4]
wxChoice * armorChoice [4]
wxCheckBox * armorEquippedCheck [4]
wxSlider * currentMagicSlider [8]
wxSlider * maxMagicSlider [8]
wxChoice * knownMagicChoice [8][3]
wxStatusBar * statusbar

Static Private Attributes

const char * ICON []
 XPM icon used for the Frame icon.

Friends

class FileDropTarget


Constructor & Destructor Documentation

ffse::MainFrame::MainFrame  ) 
 

Constructor for a MainFrame.


Member Function Documentation

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

Callback triggered when an armor change occurs.

Parameters:
event The associated command event.

Definition at line 939 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 962 of file MainFrame.cc.

bool MainFrame::close  )  [private]
 

Closes the currently open SRAM file.

Returns:
true if closed; false otherwise.

Definition at line 564 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 848 of file MainFrame.cc.

void MainFrame::CreateControls  ) 
 

Creates the controls used by this MainFrame.

Definition at line 201 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 985 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 595 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 711 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 551 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 694 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 698 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 755 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 746 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 62 of file MainFrame.hh.

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 599 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 786 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 763 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 1019 of file MainFrame.cc.

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

Loads an SRAM file.

Parameters:
filename The SRAM file to load.

Definition at line 500 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 395 of file MainFrame.cc.

void MainFrame::loadGameData  )  [private]
 

Loads the game data into the frame controls.

Definition at line 459 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 1002 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 728 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 839 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 657 of file MainFrame.cc.

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 383 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 862 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 893 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 916 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 717 of file MainFrame.cc.


Friends And Related Function Documentation

friend class FileDropTarget [friend]
 

Definition at line 51 of file MainFrame.hh.


Member Data Documentation

wxCheckBox* ffse::MainFrame::adamentCheck [private]
 

Definition at line 292 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::agilityText [private]
 

Definition at line 315 of file MainFrame.hh.

wxChoice* ffse::MainFrame::armorChoice[4] [private]
 

Definition at line 326 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::armorEquippedCheck[4] [private]
 

Definition at line 327 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::bottleCheck [private]
 

Definition at line 300 of file MainFrame.hh.

wxSlider* ffse::MainFrame::cabinSlider [private]
 

Definition at line 283 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::canoeCheck [private]
 

Definition at line 302 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::chimeCheck [private]
 

Definition at line 297 of file MainFrame.hh.

wxChoice* ffse::MainFrame::classChoice [private]
 

Definition at line 309 of file MainFrame.hh.

wxChoice* ffse::MainFrame::conditionChoice [private]
 

Definition at line 310 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::crownCheck [private]
 

Definition at line 287 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::crystalCheck [private]
 

Definition at line 288 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::cubeCheck [private]
 

Definition at line 299 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::currentHPText [private]
 

Definition at line 312 of file MainFrame.hh.

wxSlider* ffse::MainFrame::currentMagicSlider[8] [private]
 

Definition at line 329 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::damageText [private]
 

Definition at line 320 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::earthOrbCheck [private]
 

Definition at line 306 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::experienceText [private]
 

Definition at line 319 of file MainFrame.hh.

wxMenuItem* ffse::MainFrame::fileCloseItem [private]
 

Definition at line 272 of file MainFrame.hh.

wxMenuItem* ffse::MainFrame::fileSaveAsItem [private]
 

Definition at line 274 of file MainFrame.hh.

wxMenuItem* ffse::MainFrame::fileSaveItem [private]
 

Definition at line 273 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::fireOrbCheck [private]
 

Definition at line 303 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::floaterCheck [private]
 

Definition at line 296 of file MainFrame.hh.

SaveSlot* ffse::MainFrame::game [private]
 

Definition at line 265 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::goldText [private]
 

Definition at line 277 of file MainFrame.hh.

wxSlider* ffse::MainFrame::healSlider [private]
 

Definition at line 279 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::herbCheck [private]
 

Definition at line 289 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::hitPercentText [private]
 

Definition at line 321 of file MainFrame.hh.

wxSlider* ffse::MainFrame::houseSlider [private]
 

Definition at line 284 of file MainFrame.hh.

const char * MainFrame::ICON [static, private]
 

Initial value:

 {
    "16 16 4 1",
    "   c None",
    "!  c #24188C",
    "#  c #FCFCFC",
    "$  c #5C94FC",
    "!!!!!!!!!#!!!!!!",
    "!!!!!!$$$#!!!!!!",
    "!!!!$$#$###$#!#!",
    "!!!$$$$$$#$$$!!!",
    "!!$$$###$#$$$$!!",
    "!!$$###$$#$$$$!!",
    "!$$###$$$#$$$$$!",
    "!$$##$$$$$$$$$$!",
    "!$$#$$$$$$$$$$$!",
    "!$$$$$$$$$$$$$$!",
    "!!$$$$$$$$$$$$!!",
    "!!$$$$$$$$$$$$!!",
    "!#!$$$$$$$$$$!#!",
    "#!#!$$$$$$$$!#!#",
    "!###!!$$$$!!###!",
    "!!!!##!!!!##!!!!"
}
XPM icon used for the Frame icon.

Definition at line 40 of file MainFrame.cc.

wxTextCtrl* ffse::MainFrame::intelligenceText [private]
 

Definition at line 316 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::keyCheck [private]
 

Definition at line 290 of file MainFrame.hh.

wxChoice* ffse::MainFrame::knownMagicChoice[8][3] [private]
 

Definition at line 332 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::luckText [private]
 

Definition at line 318 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::luteCheck [private]
 

Definition at line 286 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::maxHPText [private]
 

Definition at line 313 of file MainFrame.hh.

wxSlider* ffse::MainFrame::maxMagicSlider[8] [private]
 

Definition at line 330 of file MainFrame.hh.

int ffse::MainFrame::member [private]
 

Definition at line 266 of file MainFrame.hh.

wxMenuItem* ffse::MainFrame::memberItems[4] [private]
 

Definition at line 275 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::nameText [private]
 

Definition at line 308 of file MainFrame.hh.

wxNotebook* ffse::MainFrame::notebook [private]
 

Definition at line 270 of file MainFrame.hh.

bool ffse::MainFrame::open [private]
 

Definition at line 268 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::oxyaleCheck [private]
 

Definition at line 301 of file MainFrame.hh.

wxSlider* ffse::MainFrame::pureSlider [private]
 

Definition at line 280 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::rodCheck [private]
 

Definition at line 295 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::rubyCheck [private]
 

Definition at line 294 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::slabCheck [private]
 

Definition at line 293 of file MainFrame.hh.

wxSlider* ffse::MainFrame::softSlider [private]
 

Definition at line 281 of file MainFrame.hh.

char* ffse::MainFrame::sram [private]
 

Definition at line 264 of file MainFrame.hh.

wxString ffse::MainFrame::sramFile [private]
 

Definition at line 263 of file MainFrame.hh.

wxStatusBar* ffse::MainFrame::statusbar [private]
 

Definition at line 334 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::strengthText [private]
 

Definition at line 314 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::tailCheck [private]
 

Definition at line 298 of file MainFrame.hh.

wxSlider* ffse::MainFrame::tentSlider [private]
 

Definition at line 282 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::tntCheck [private]
 

Definition at line 291 of file MainFrame.hh.

wxTextCtrl* ffse::MainFrame::vitalityText [private]
 

Definition at line 317 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::waterOrbCheck [private]
 

Definition at line 304 of file MainFrame.hh.

wxChoice* ffse::MainFrame::weaponChoice[4] [private]
 

Definition at line 323 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::weaponEquippedCheck[4] [private]
 

Definition at line 324 of file MainFrame.hh.

wxCheckBox* ffse::MainFrame::windOrbCheck [private]
 

Definition at line 305 of file MainFrame.hh.


Generated on Wed Dec 8 03:21:45 2004 for Final Fantasy SRAM Editor by  doxygen 1.3.9.1