1 #ifndef SUBPAGESPELLS_H 2 #define SUBPAGESPELLS_H 3 4 #include "page.h" 5 #include <vector> 6 #include <map> 7 #include <string> 8 9 /** Forward Declarations **/ 10 class DFSpells; 11 struct School; 12 struct Spell; 13 class wxTextCtrl; 14 class wxStaticText; 15 class wxScrollBar; 16 class wxComboBox; 17 class wxSlider; 18 class wxWindow; 19 class wxListBox; 20 class wxArrayString; 21 class wxCheckListBox; 22 class PageSpells; 23 24 class subPageSpells : public Page 25 { 26 protected: 27 28 public: 29 PageSpells *parent; 30 DFSpells *dfSpells; 31 School *currentSchool; 32 std::vector<Spell*>::iterator spellItr; 33 Spell *currentSpell; 34 unsigned int spellNumber; 35 36 public: 37 subPageSpells(); 38 virtual ~subPageSpells(); 39 Init(wxNotebook *,DF *)40 void Init(wxNotebook*, DF*) {} // DO NOT USE 41 void Init(wxNotebook*, DF*, PageSpells*); 42 43 void UpdatePage(); 44 45 void Prev(unsigned int=1); 46 void Next(unsigned int=1); 47 void New(); 48 void Del(); 49 50 void UpdatePageNumber(); 51 52 void GetCurrent(); 53 void SetCurrent(); 54 void ClearCurrent(); 55 56 School* GetSelectedSchool(); 57 58 /*void GetSchool(); 59 void SetSchool();*/ 60 61 void OnSchoolChange(); 62 void OnIconXChange(); 63 void OnIconYChange(); 64 void UpdateIcon(); 65 66 void OnPaint(); 67 68 protected: 69 // List of editable controls 70 wxListBox *schoolList; 71 wxArrayString *schoolStrArray; 72 wxStaticText *schoolNameText; 73 74 wxTextCtrl *nameEdit; 75 wxTextCtrl *symbolEdit; 76 wxTextCtrl *levelEdit; 77 wxTextCtrl *manaEdit; 78 wxTextCtrl *expEdit; 79 wxTextCtrl *failureRateEdit; 80 wxTextCtrl *actionEdit; 81 wxTextCtrl *distanceEdit; 82 wxComboBox *areaCombo; 83 wxCheckListBox *clipCheckList; 84 wxTextCtrl *speedEdit; 85 wxTextCtrl *effectEdit; 86 87 wxScrollBar *iconXScroll; 88 wxScrollBar *iconYScroll; 89 wxTextCtrl *iconXEdit; 90 wxTextCtrl *iconYEdit; 91 92 wxComboBox *dispositionCombo; 93 wxComboBox *prereqCombo; 94 wxTextCtrl *soundEdit; 95 wxTextCtrl *notesEdit; 96 }; 97 98 99 #endif // SUBPAGESPELLS_H 100