From: Julian Smart <julian@anthemion.co.uk> Date: Wed, 11 Jun 2003 10:03:57 +0000 (+0000) Subject: Removing vestiges of wxUSE_NEW_GRID X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dd74a7ad6787f028629ba32211ebf1e2aeb34dbd Removing vestiges of wxUSE_NEW_GRID git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/chkconf.h b/include/wx/chkconf.h index 644c7c7ada..631c99b1af 100644 --- a/include/wx/chkconf.h +++ b/include/wx/chkconf.h @@ -475,14 +475,6 @@ # endif #endif /* !defined(wxUSE_MSGDLG) */ -#ifndef wxUSE_NEW_GRID -# ifdef wxABORT_ON_CONFIG_ERROR -# error "wxUSE_NEW_GRID must be defined." -# else -# define wxUSE_NEW_GRID 0 -# endif -#endif /* !defined(wxUSE_NEW_GRID) */ - #ifndef wxUSE_NOTEBOOK # ifdef wxABORT_ON_CONFIG_ERROR # error "wxUSE_NOTEBOOK must be defined." @@ -834,7 +826,6 @@ wxUSE_CHOICE || \ wxUSE_GAUGE || \ wxUSE_GRID || \ - wxUSE_NEW_GRID || \ wxUSE_LISTBOX || \ wxUSE_LISTCTRL || \ wxUSE_NOTEBOOK || \ diff --git a/include/wx/dbgrid.h b/include/wx/dbgrid.h index e5c9fa6b08..dd10c6c39b 100644 --- a/include/wx/dbgrid.h +++ b/include/wx/dbgrid.h @@ -19,7 +19,7 @@ #endif #if wxUSE_ODBC -#if wxUSE_NEW_GRID +#if wxUSE_GRID #include "wx/log.h" #include "wx/dbtable.h" @@ -175,7 +175,7 @@ private: bool m_rowmodified; }; -#endif // #if wxUSE_NEW_GRID +#endif // #if wxUSE_GRID #endif // #if wxUSE_ODBC #endif // _WX_GENERIC_DBGRID_H_ diff --git a/include/wx/mac/setup0.h b/include/wx/mac/setup0.h index f2bae0b7b7..fc96743177 100644 --- a/include/wx/mac/setup0.h +++ b/include/wx/mac/setup0.h @@ -546,20 +546,12 @@ // Recommended setting: 0 (use wxNotebook) #define wxUSE_TAB_DIALOG 0 -// wxGrid class comes in two flavours: the original (pre wxWin 2.2) one and -// the new, much imporved and enhanced version. The new version is backwards -// compatible with the old one and should be used whenever possible, i.e. if -// you set wxUSE_GRID to 1, set wxUSE_NEW_GRID to 1 too. +// wxGrid class // -// Default is 1 for both options. -// -// Recommended setting: 1 for wxUSE_NEW_GRID, 0 if you have an old code using -// wxGrid and 100% backwards compatibality (with all old wxGrid quirks) is -// essential. +// Default is 1 // -// WIN16/BC++ resets wxUSE_NEW_GRID to 0 because it exceeds the data limit. +// Recommended setting: 1 #define wxUSE_GRID 1 -#define wxUSE_NEW_GRID 1 // wxProperty[Value/Form/List] classes, used by Dialog Editor #define wxUSE_PROPSHEET 0 @@ -1102,10 +1094,6 @@ #undef wxUSE_ODBC #define wxUSE_ODBC 0 -#undef wxUSE_NEW_GRID -#define wxUSE_NEW_GRID 0 -#endif - #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500) // BC++ 4.0 can't compile JPEG library #undef wxUSE_LIBJPEG diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index 761624b7d1..5e3f78835c 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -545,20 +545,13 @@ // Recommended setting: 0 (use wxNotebook) #define wxUSE_TAB_DIALOG 0 -// wxGrid class comes in two flavours: the original (pre wxWin 2.2) one and -// the new, much imporved and enhanced version. The new version is backwards -// compatible with the old one and should be used whenever possible, i.e. if -// you set wxUSE_GRID to 1, set wxUSE_NEW_GRID to 1 too. +// wxGrid class // // Default is 1 for both options. // -// Recommended setting: 1 for wxUSE_NEW_GRID, 0 if you have an old code using -// wxGrid and 100% backwards compatibality (with all old wxGrid quirks) is -// essential. +// Recommended setting: 1 // -// WIN16/BC++ resets wxUSE_NEW_GRID to 0 because it exceeds the data limit. #define wxUSE_GRID 1 -#define wxUSE_NEW_GRID 1 // ---------------------------------------------------------------------------- // Miscellaneous GUI stuff @@ -1151,10 +1144,6 @@ #undef wxUSE_ODBC #define wxUSE_ODBC 0 -#undef wxUSE_NEW_GRID -#define wxUSE_NEW_GRID 0 -#endif - #if defined(__BORLANDC__) && (__BORLANDC__ < 0x500) // BC++ 4.0 can't compile JPEG library #undef wxUSE_LIBJPEG diff --git a/include/wx/os2/setup0.h b/include/wx/os2/setup0.h index 59a5b1b189..55898472b7 100644 --- a/include/wx/os2/setup0.h +++ b/include/wx/os2/setup0.h @@ -338,9 +338,6 @@ #define wxUSE_OWNER_DRAWN 1 // Owner-drawn menus and listboxes -#define wxUSE_NEW_GRID 1 - // Define 1 to use the new drid classes - /* * Any platform *