X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/108106cfe7af7b582fcaae8f5fe0ac05c545259d..62ea506eafa485756b6bdb2f3cbb0d1fcb91b6d2:/samples/db/listdb.h diff --git a/samples/db/listdb.h b/samples/db/listdb.h index 0d966c961e..fb64588a42 100644 --- a/samples/db/listdb.h +++ b/samples/db/listdb.h @@ -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 -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 *********************************