// Name of the table to be created/opened
-const char CONTACT_TABLE_NAME[] = "CONTACTS";
+const char CONTACT_TABLE_NAME[] = "contacts";
// Nuber of columns in the above table
const int CONTACT_NO_COLS = 12; // 0-11
class CeditorDlg;
class CparameterDlg;
-#ifdef __WXGTK__
-const char paramFilename[] = "../database.cfg";
+#ifdef __UNIX__
+const char paramFilename[] = "../dbtest.cfg";
#else
-const char paramFilename[] = "database.cfg";
+const char paramFilename[] = "dbtest.cfg";
#endif
char ODBCSource[100+1];
char UserName[25+1];
char Password[25+1];
+ char DirPath[MAX_PATH+1];
} Cparameters;
Ccontact *Contact; // this is the table object that will be being manipulated
CeditorDlg(wxWindow *parent);
- bool OnClose(void);
+ void OnCloseWindow(wxCloseEvent& event);
void OnButton( wxCommandEvent &event );
void OnCommand(wxWindow& win, wxCommandEvent& event);
void OnActivate(bool) {}; // necessary for hot keys
// Pointers to all widgets on the dialog
wxStaticText *pParamODBCSourceMsg;
- wxListBox *pParamODBCSourceList;
- wxStaticText *pParamUserNameMsg, *pParamPasswordMsg;
- wxTextCtrl *pParamUserNameTxt, *pParamPasswordTxt;
- wxButton *pParamSaveBtn, *pParamCancelBtn;
+ wxListBox *pParamODBCSourceList;
+ wxStaticText *pParamUserNameMsg, *pParamPasswordMsg, *pParamDirPathMsg;
+ wxTextCtrl *pParamUserNameTxt, *pParamPasswordTxt, *pParamDirPathTxt;
+ wxButton *pParamSaveBtn, *pParamCancelBtn;
public:
CparameterDlg(wxWindow *parent);
- bool OnClose(void);
+ void OnCloseWindow(wxCloseEvent& event);
+ void OnButton( wxCommandEvent &event );
void OnCommand(wxWindow& win, wxCommandEvent& event);
void OnActivate(bool) {}; // necessary for hot keys
bool Save();
void FillDataSourceList();
+DECLARE_EVENT_TABLE()
}; // CparameterDlg
#define PARAMETER_DIALOG 400
#define PARAMETER_DIALOG_NAME_TEXT 404
#define PARAMETER_DIALOG_PASSWORD_MSG 405
#define PARAMETER_DIALOG_PASSWORD_TEXT 406
-#define PARAMETER_DIALOG_SAVE 407
-#define PARAMETER_DIALOG_CANCEL 408
+#define PARAMETER_DIALOG_DIRPATH_MSG 407
+#define PARAMETER_DIALOG_DIRPATH_TEXT 408
+#define PARAMETER_DIALOG_SAVE 409
+#define PARAMETER_DIALOG_CANCEL 410
// *************************** CqueryDlg ***************************
void OnButton( wxCommandEvent &event );
void OnCommand(wxWindow& win, wxCommandEvent& event);
- bool OnClose();
+ void OnCloseWindow(wxCloseEvent& event);
void OnActivate(bool) {}; // necessary for hot keys
// bool SetWidgetPtrs();