00001 00014 #ifndef _cFileWidget_h 00015 #define _cFileWidget_h 00016 00017 00018 00019 #include "TypesDef.h" // Int 00020 00021 #include "cImagePanel.h" 00022 00023 #include <string> 00024 using std::string; 00025 00026 //************************************* 00027 // Number assigned has to be in ORDER. 00028 //************************************* 00029 //const Int YEAR = 0 ; // Defined in TypesDef.h 00030 //const Int MONTH = 1 ; 00031 //const Int DAY = 2 ; 00032 const Int CD_NUM = 3 ; 00033 const Int FILENAME = 4 ; 00034 const Int SIZE_F = 5 ; 00035 const Int MD4 = 6 ; 00036 const Int PRIORITY = 7 ; 00037 const Int AVAILABILITY = 8 ; 00038 const Int COMMENT = 9 ; 00039 00040 const Int NUM_OF_FILE_ENTRIES = 10; 00041 00042 const Int DONE = 0; // number assigned has to be in ORDER. 00043 const Int CATEGORY = 1; 00044 const Int STORING = 2; 00045 00046 const Int NUM_OF_CHOICE_LISTS = 3; 00047 00048 class cFileWidget: public wxPanel 00049 { 00050 public: 00052 cFileWidget(wxWindow *pParent); 00053 00055 ~cFileWidget(void); 00056 00057 wxBoxSizer *GetEmptyCategorySizer(void); 00058 00060 void CreateCommentWidget(wxWindow *pParent, wxBoxSizer *pParentBoxSizer); 00061 00062 protected: 00063 wxTextCtrl *m_pFileEntries[NUM_OF_FILE_ENTRIES]; 00064 wxChoice *m_pChoice[NUM_OF_CHOICE_LISTS]; 00065 wxBoxSizer *m_pEmptyCategoryVSizer; 00066 cImagePanel *m_pImagePanel; 00067 enum 00068 { 00069 FILE_DONE_ID, 00070 FILE_CATEGORY, 00071 FILE_STORING 00072 }; 00073 00074 private: 00075 void Init(); 00076 void DrawAll(); 00077 }; 00078 00079 #endif // _cFileWidget_h