X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d10f4bf950c4ad064b982fe8fe07d5ca5e3af7ba..9bf41e06ca6ebfb45694ba350c2435c79c91effb:/include/wx/generic/gridctrl.h diff --git a/include/wx/generic/gridctrl.h b/include/wx/generic/gridctrl.h index 9a87f635ff..b607c32607 100644 --- a/include/wx/generic/gridctrl.h +++ b/include/wx/generic/gridctrl.h @@ -12,10 +12,12 @@ #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 + #include "wx/grid.h" #include "wx/string.h" #include "wx/datetime.h" @@ -23,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 { @@ -57,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 @@ -89,6 +94,8 @@ protected: }; +#if wxUSE_COMBOBOX + class WXDLLEXPORT wxGridCellEnumEditor : public wxGridCellChoiceEditor { public: @@ -104,8 +111,9 @@ private: long int m_startint; }; +#endif // wxUSE_COMBOBOX -class wxGridCellAutoWrapStringEditor : public wxGridCellTextEditor +class WXDLLEXPORT wxGridCellAutoWrapStringEditor : public wxGridCellTextEditor { public: wxGridCellAutoWrapStringEditor() : wxGridCellTextEditor() { } @@ -117,7 +125,7 @@ public: { return new wxGridCellAutoWrapStringEditor; } }; -class wxGridCellAutoWrapStringRenderer : public wxGridCellStringRenderer +class WXDLLEXPORT wxGridCellAutoWrapStringRenderer : public wxGridCellStringRenderer { public: wxGridCellAutoWrapStringRenderer() : wxGridCellStringRenderer() { } @@ -146,5 +154,7 @@ private: }; +#endif // #if wxUSE_GRID + #endif //_WX_GENERIC_GRIDCTRL_H_