]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/db/dbtest.h
allow 8bit chars in the group names in wxFileConfig
[wxWidgets.git] / samples / db / dbtest.h
index 6689d522eac73fa6f15fb443cd2328134a20b7f5..516204e3897aeea72a468c422f208f005f3ac6b6 100644 (file)
@@ -26,7 +26,7 @@ enum          DialogModes {mView,mCreate,mEdit,mSearch};
 
 
 // Name of the table to be created/opened
 
 
 // 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
 
 // Nuber of columns in the above table
 const int      CONTACT_NO_COLS                 = 12;           // 0-11
@@ -40,7 +40,11 @@ enum Language {langENGLISH, langFRENCH, langGERMAN, langSPANISH, langOTHER};
 class CeditorDlg;
 class CparameterDlg;
 
 class CeditorDlg;
 class CparameterDlg;
 
+#ifdef __WXGTK__
+const char paramFilename[] = "../database.cfg";
+#else
 const char paramFilename[] = "database.cfg";
 const char paramFilename[] = "database.cfg";
+#endif
 
 
 /*
 
 
 /*
@@ -162,6 +166,7 @@ class CeditorDlg : public wxPanel
 
                CeditorDlg(wxWindow *parent);
                bool    OnClose(void);
 
                CeditorDlg(wxWindow *parent);
                bool    OnClose(void);
+               void    OnButton( wxCommandEvent &event );
                void    OnCommand(wxWindow& win, wxCommandEvent& event);
                void    OnActivate(bool) {};  // necessary for hot keys
 
                void    OnCommand(wxWindow& win, wxCommandEvent& event);
                void    OnActivate(bool) {};  // necessary for hot keys
 
@@ -173,6 +178,8 @@ class CeditorDlg : public wxPanel
                bool    GetNextRec();
                bool    GetPrevRec();
                bool    GetRec(char *whereStr);
                bool    GetNextRec();
                bool    GetPrevRec();
                bool    GetRec(char *whereStr);
+               
+DECLARE_EVENT_TABLE()
 };  // CeditorDlg
 
 #define EDITOR_DIALOG                   199
 };  // CeditorDlg
 
 #define EDITOR_DIALOG                   199
@@ -332,6 +339,7 @@ class CqueryDlg : public wxDialog
 
                CqueryDlg(wxWindow *parent, wxDB *pDb, char *tblName[], char *pWhereArg);
 
 
                CqueryDlg(wxWindow *parent, wxDB *pDb, char *tblName[], char *pWhereArg);
 
+               void    OnButton( wxCommandEvent &event );
                void            OnCommand(wxWindow& win, wxCommandEvent& event);
                bool            OnClose();
                void            OnActivate(bool) {};  // necessary for hot keys
                void            OnCommand(wxWindow& win, wxCommandEvent& event);
                bool            OnClose();
                void            OnActivate(bool) {};  // necessary for hot keys
@@ -342,6 +350,7 @@ class CqueryDlg : public wxDialog
                void            ProcessCountBtn();
                bool            ValidateWhereClause();
 
                void            ProcessCountBtn();
                bool            ValidateWhereClause();
 
+DECLARE_EVENT_TABLE()
 };  // CqueryDlg
 
 #define QUERY_DIALOG                    300
 };  // CqueryDlg
 
 #define QUERY_DIALOG                    300