X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b53dc7d661f662f0ed09c938ae4c32a0accd6350..b5a98acdf25b3d2eae7858d30ac29f629d589703:/include/wx/generic/gridctrl.h diff --git a/include/wx/generic/gridctrl.h b/include/wx/generic/gridctrl.h index 1295d5d10b..b607c32607 100644 --- a/include/wx/generic/gridctrl.h +++ b/include/wx/generic/gridctrl.h @@ -12,11 +12,11 @@ #ifndef _WX_GENERIC_GRIDCTRL_H_ #define _WX_GENERIC_GRIDCTRL_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "gridctrl.h" #endif -#if wxUSE_GRID || wxUSE_NEW_GRID +#if wxUSE_GRID #include "wx/grid.h" #include "wx/string.h" @@ -25,6 +25,8 @@ #define wxGRID_VALUE_CHOICEINT _T("choiceint") #define wxGRID_VALUE_DATETIME _T("datetime") +#if wxUSE_DATETIME + // the default renderer for the cells containing Time and dates.. class WXDLLEXPORT wxGridCellDateTimeRenderer : public wxGridCellStringRenderer { @@ -59,6 +61,7 @@ protected: wxDateTime::TimeZone m_tz; }; +#endif // wxUSE_DATETIME // the default renderer for the cells containing Time and dates.. class WXDLLEXPORT wxGridCellEnumRenderer : public wxGridCellStringRenderer @@ -91,6 +94,8 @@ protected: }; +#if wxUSE_COMBOBOX + class WXDLLEXPORT wxGridCellEnumEditor : public wxGridCellChoiceEditor { public: @@ -106,8 +111,9 @@ private: long int m_startint; }; +#endif // wxUSE_COMBOBOX -class wxGridCellAutoWrapStringEditor : public wxGridCellTextEditor +class WXDLLEXPORT wxGridCellAutoWrapStringEditor : public wxGridCellTextEditor { public: wxGridCellAutoWrapStringEditor() : wxGridCellTextEditor() { } @@ -119,7 +125,7 @@ public: { return new wxGridCellAutoWrapStringEditor; } }; -class wxGridCellAutoWrapStringRenderer : public wxGridCellStringRenderer +class WXDLLEXPORT wxGridCellAutoWrapStringRenderer : public wxGridCellStringRenderer { public: wxGridCellAutoWrapStringRenderer() : wxGridCellStringRenderer() { } @@ -148,7 +154,7 @@ private: }; -#endif // #if wxUSE_GRID || wxUSE_NEW_GRID +#endif // #if wxUSE_GRID #endif //_WX_GENERIC_GRIDCTRL_H_