add if wxUSE_NOTEBOOK around notebook-only renderer methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-09-19 11:40:40 +00:00
parent 4eb8ef2d43
commit c403693947
3 changed files with 19 additions and 1 deletions

View File

@@ -186,6 +186,7 @@ public:
int tbarStyle = 0);
#endif // wxUSE_TOOLBAR
#if wxUSE_NOTEBOOK
virtual void DrawTab(wxDC& dc,
const wxRect& rect,
wxDirection dir,
@@ -193,6 +194,7 @@ public:
const wxBitmap& bitmap = wxNullBitmap,
int flags = 0,
int indexAccel = -1);
#endif // wxUSE_NOTEBOOK
#if wxUSE_SLIDER
virtual void DrawSliderShaft(wxDC& dc,
@@ -309,8 +311,10 @@ public:
wxCoord *extraSpaceBeyond) const;
#endif // wxUSE_TEXTCTRL
#if wxUSE_NOTEBOOK
virtual wxSize GetTabIndent() const { return wxSize(2, 2); }
virtual wxSize GetTabPadding() const { return wxSize(6, 5); }
#endif // wxUSE_NOTEBOOK
#if wxUSE_SLIDER
@@ -1840,6 +1844,8 @@ void wxWin32Renderer::DrawToolBarButton(wxDC& dc,
// notebook
// ----------------------------------------------------------------------------
#if wxUSE_NOTEBOOK
void wxWin32Renderer::DrawTab(wxDC& dc,
const wxRect& rectOrig,
wxDirection dir,
@@ -2022,6 +2028,8 @@ void wxWin32Renderer::DrawTab(wxDC& dc,
#undef REVERSE_FOR_VERTICAL
}
#endif // wxUSE_NOTEBOOK
#if wxUSE_SLIDER
// ----------------------------------------------------------------------------