1 #ifndef PAGELOCATIONS_H 2 #define PAGELOCATIONS_H 3 4 #include "page.h" 5 6 /** Forward Declarations **/ 7 class DFLocations; 8 class Location; 9 class wxWindow; 10 class wxTextCtrl; 11 class wxSpinCtrl; 12 class wxComboBox; 13 class wxCheckBox; 14 class wxString; 15 class wxMouseEvent; 16 17 class PageLocations : public Page 18 { 19 protected: 20 std::string types[7]; 21 22 public: 23 DFLocations *dfLocations; 24 25 public: 26 PageLocations(); 27 virtual ~PageLocations(); 28 29 void Init(wxNotebook*, DF*); 30 31 void UpdatePage(); 32 33 /* void LoadAll();*/ 34 /* void SaveAll();*/ 35 void GetCurrent(); 36 void SetCurrent(); 37 void ClearCurrent(); 38 39 wxString GetType(Location*); 40 41 void UpdateMap(int=-1,int=-1); 42 43 void OnPaint(); 44 void OnClick(wxMouseEvent& event); 45 46 protected: 47 // List of editable controls 48 wxTextCtrl *nameEdit; 49 wxSpinCtrl *xSpin; 50 wxSpinCtrl *ySpin; 51 wxComboBox *typeCombo; 52 wxCheckBox *randomCheck; 53 54 }; 55 56 #endif // PAGELOCATIONS_H 57