X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/69a2b59d535d798cc5fe85bda43acdfcf33adccd..8916d00747c8e7b704ad549afcd8d0f88b6d861e:/samples/db/dbtest.h?ds=sidebyside diff --git a/samples/db/dbtest.h b/samples/db/dbtest.h index d6bde8d91d..4e19c5a3db 100644 --- a/samples/db/dbtest.h +++ b/samples/db/dbtest.h @@ -22,6 +22,9 @@ enum DialogModes {mView,mCreate,mEdit,mSearch}; #define FILE_CREATE 100 #define FILE_RECREATE_TABLE 110 #define FILE_RECREATE_INDEXES 120 +#if wxUSE_NEW_GRID +#define FILE_DBGRID_TABLE 130 +#endif #define FILE_EXIT 199 #define EDIT_PARAMETERS 200 #define HELP_ABOUT 300 @@ -166,7 +169,10 @@ class DatabaseDemoFrame: public wxFrame void OnExit(wxCommandEvent& event); void OnEditParameters(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); - +#if wxUSE_NEW_GRID + void OnDbGridTable( wxCommandEvent& ); +#endif + void CreateDataTable(bool recreate); void BuildEditorDialog(); void BuildParameterDialog(wxWindow *parent); @@ -174,6 +180,25 @@ DECLARE_EVENT_TABLE() }; // DatabaseDemoFrame +#if wxUSE_NEW_GRID + +// *************************** DBGridFrame *************************** + +class DbGridFrame : public wxFrame +{ +public: + bool initialized; + + DbGridFrame(wxWindow *parent); + + void OnCloseWindow(wxCloseEvent& event); + bool Initialize(); + + DECLARE_EVENT_TABLE() +}; + +#endif + // Define a new application type class DatabaseDemoApp: public wxApp {