00001 00014 #ifndef _cConnectGui_h 00015 #define _cConnectGui_h 00016 00017 #include "TypesDef.h" 00018 #include "cWindowFrame.h" 00019 00020 #include <wx/combobox.h> 00021 00022 const Int C_USERNAME = 0; 00023 const Int C_PASSWORD = 1; 00024 00025 const Int CONNECT_ENTRIES = 2; 00026 00027 class cConnectGui: public wxDialog 00028 { 00029 public: 00031 cConnectGui(cWindowFrame *pParent); 00032 00034 ~cConnectGui(void); 00035 00036 void DrawAll(void); 00037 00038 protected: 00039 wxTextCtrl *m_pConnectEntries[CONNECT_ENTRIES]; 00040 wxChoice *m_pRdmsChoice; 00041 wxComboBox *m_pHostComboBox; 00042 00043 wxStaticText *pErrorMsg; 00044 00045 // ID of Connect. 00046 enum 00047 { 00048 CONNECT_DATABASE, 00049 CONNECT_CONNECT 00050 }; 00051 00052 void ClearEntries(void); 00053 00054 private: 00055 void Init(void); 00056 }; 00057 00058 #endif // _cConnectGui_h