put remaining toolbars-related methods into #if wxUSE_TOOLBAR
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 21 Sep 2006 17:30:07 +0000 (17:30 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 21 Sep 2006 17:30:07 +0000 (17:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/univ/renderer.h
src/univ/themes/gtk.cpp
src/univ/themes/win32.cpp

index cc0951a31cd195a747c08ae8c8401b321b614cc3..c9e33d84ca3adfab3462cd491d85839d619e74b3 100644 (file)
@@ -414,12 +414,14 @@ public:
     virtual wxSize GetRadioBitmapSize() const = 0;
     virtual wxCoord GetCheckItemMargin() const = 0;
 
+#if wxUSE_TOOLBAR
     // get the standard size of a toolbar button and also return the size of
     // a toolbar separator in the provided pointer
     virtual wxSize GetToolBarButtonSize(wxCoord *separator) const = 0;
 
     // get the margins between/around the toolbar buttons
     virtual wxSize GetToolBarMargin() const = 0;
+#endif // wxUSE_TOOLBAR
 
 #if wxUSE_TEXTCTRL
     // convert between text rectangle and client rectangle for text controls:
@@ -803,10 +805,12 @@ public:
     virtual wxCoord GetCheckItemMargin() const
         { return m_renderer->GetCheckItemMargin(); }
 
+#if wxUSE_TOOLBAR
     virtual wxSize GetToolBarButtonSize(wxCoord *separator) const
         { return m_renderer->GetToolBarButtonSize(separator); }
     virtual wxSize GetToolBarMargin() const
         { return m_renderer->GetToolBarMargin(); }
+#endif // wxUSE_TOOLBAR
 
 #if wxUSE_TEXTCTRL
     virtual wxRect GetTextTotalArea(const wxTextCtrl *text,
index 65443dcff67659b6dafef2fbdad3cca261455634..5715566f5b228407f3f4bb731ca72ccecf7ea45a 100644 (file)
@@ -209,10 +209,12 @@ public:
     virtual wxCoord GetCheckItemMargin() const
         { return 2; }
 
+#if wxUSE_TOOLBAR
     virtual wxSize GetToolBarButtonSize(wxCoord *separator) const
         { if ( separator ) *separator = 5; return wxSize(16, 15); }
     virtual wxSize GetToolBarMargin() const
         { return wxSize(6, 6); }
+#endif // wxUSE_TOOLBAR
 
 #if wxUSE_TEXTCTRL
     virtual wxRect GetTextClientArea(const wxTextCtrl *text,
index 6e5d9661c2d829cf1a68b7f5c25f2becac653677..0e3ffe146fe4abe8cc0a0309f86b776e966fbe24 100644 (file)
@@ -213,10 +213,12 @@ public:
     virtual wxCoord GetCheckItemMargin() const
         { return 0; }
 
+#if wxUSE_TOOLBAR
     virtual wxSize GetToolBarButtonSize(wxCoord *separator) const
         { if ( separator ) *separator = 5; return wxSize(16, 15); }
     virtual wxSize GetToolBarMargin() const
         { return wxSize(4, 4); }
+#endif // wxUSE_TOOLBAR
 
 #if wxUSE_TEXTCTRL
     virtual wxRect GetTextTotalArea(const wxTextCtrl *text,