]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/db/listdb.h
changed format of wxFontMapper entries: facename_encoding instead of encoding as key
[wxWidgets.git] / samples / db / listdb.h
index 0d966c961ecb352a797b16e6514fe89d27b78542..fb64588a42fed9d82eb7bcdfa2e77645d0c48a0e 100644 (file)
@@ -9,15 +9,12 @@
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
+#ifdef __GNUG__
 #pragma interface "listdb.h"
+#endif
 
 /*
-/*
-// SYNOPSIS START
-
        Contains dialog class for creating a data table lookup listbox
-
-// SYNOPSIS STOP
 */
 
 #ifndef LISTDB_DOT_H
@@ -26,7 +23,7 @@
 
 #include <wx/dbtable.h>
 
-const LOOKUP_COL_LEN = 250;
+const int LOOKUP_COL_LEN = 250;
 
 // Global database connection
 extern wxDB *READONLY_DB;
@@ -54,7 +51,7 @@ class Clookup2 : public wxTable
 
 };  // Clookup2
 
-class ClookUpDlg : public wxDialogBox
+class ClookUpDlg : public wxDialog
 {
        private:
                bool                     widgetPtrsSet;
@@ -115,11 +112,20 @@ class ClookUpDlg : public wxDialogBox
                                          wxDB                  *pDb = READONLY_DB,             // Database connection pointer
                                          bool           allowOk                = TRUE);                // is the OK button enabled
 
+               void     OnButton( wxCommandEvent &event );
                void            OnCommand(wxWindow& win, wxCommandEvent& event);
-               bool            OnClose();
+               void            OnClose(wxCloseEvent& event);
                void            OnActivate(bool) {};  // necessary for hot keys
+
+DECLARE_EVENT_TABLE()
 };
 
+#define LOOKUP_DIALOG                   500
+
+#define LOOKUP_DIALOG_SELECT            501
+#define LOOKUP_DIALOG_OK                502
+#define LOOKUP_DIALOG_CANCEL            503
+
 #endif  // LISTDB_DOT_H
 
 // ************************************ listdb.h *********************************