00001 00014 #ifndef _cDatabaseGui_h 00015 #define _cDatabaseGui_h 00016 00017 #include "TypesDef.h" 00018 #include <wx/listctrl.h> 00019 #include "cWindowFrame.h" 00020 00021 class cDatabaseGui: public wxDialog 00022 { 00023 public: 00025 cDatabaseGui(cWindowFrame *pParent); 00026 00028 ~cDatabaseGui(void); 00029 00030 protected: 00031 wxBoxSizer *m_pListVSizer; 00032 wxListCtrl *m_pDBListCtrl; 00033 wxTextCtrl *m_pDatabaseName; 00034 00035 // ID of Database. 00036 enum 00037 { 00038 DB_LIST_CTRL_ID, 00039 DB_OPEN_ID, 00040 DB_ADD_ID, 00041 DB_DELETE_ID 00042 }; 00043 00044 private: 00045 void Init(void); 00046 void DrawAll(void); 00047 void DrawDatabaseList(wxBoxSizer *pBoxVSizer); 00048 }; 00049 00050 #endif // _cDatabaseGui_h