1 // $Id: gc_panel.h,v 1.1 2011/06/22 18:22:22 jmcgill Exp $ 2 3 /* 4 Copyright 2002 Mary Kuhner, Jon Yamato, and Joseph Felsenstein 5 6 This software is distributed free of charge for non-commercial use 7 and is copyrighted. Of course, we do not guarantee that the software 8 works, and are not responsible for any damage you may cause or have. 9 */ 10 11 #ifndef GC_PANEL_H 12 #define GC_PANEL_H 13 14 #include "wx/string.h" 15 #include "gc_creation_info.h" 16 #include "gc_phase.h" 17 #include "gc_quantum.h" 18 #include "gc_types.h" 19 20 class GCStructures; 21 22 class gcPanel : public GCQuantum 23 { 24 friend class GCStructures; 25 26 private: 27 bool m_blessed; // true if user has edited m_nPanels 28 29 bool m_hasRegion; 30 size_t m_regionId; 31 32 bool m_hasPop; 33 size_t m_popId; 34 35 long m_nPanels; 36 37 gcCreationInfo m_creationInfo; //JRM this doing anything? 38 39 void SetCreationInfo(const gcCreationInfo &); 40 41 public: 42 43 gcPanel(); 44 ~gcPanel(); 45 46 void SetBlessed(bool blessed); 47 bool GetBlessed() const; 48 49 bool HasRegion() const; 50 void SetRegionId(size_t id); 51 void UnsetRegionId(); 52 size_t GetRegionId() const; 53 wxString GetRegionIdString() const; 54 55 bool HasPop() const; 56 void SetPopId(size_t id); 57 void UnsetPopId(); 58 size_t GetPopId() const; 59 wxString GetPopIdString() const; 60 61 void SetNumPanels(long val); 62 long GetNumPanels() const; 63 wxString GetNumPanelsString() const; 64 65 66 void DebugDump(wxString prefix=wxEmptyString) const; 67 68 }; 69 70 #endif // GC_PANEL_H 71 72 //____________________________________________________________________________________ 73