Add wxHAS_BITMAPTOGGLEBUTTON and test for it in the unit test.

Not all ports define wxBitmapToggleButton class currently, so add a special
symbol which is defined only if this class is indeed available and test for it
in the unit test for this class.

This fixes the tests compilation under wxX11.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-10-01 13:05:36 +00:00
parent e2032c2e21
commit 323d36e452
4 changed files with 20 additions and 4 deletions

View File

@@ -15,6 +15,10 @@
#pragma hdrstop
#endif
#include "wx/tglbtn.h"
#ifdef wxHAS_BITMAPTOGGLEBUTTON
#ifndef WX_PRECOMP
#include "wx/app.h"
#endif // WX_PRECOMP
@@ -22,7 +26,6 @@
#include "testableframe.h"
#include "wx/uiaction.h"
#include "wx/artprov.h"
#include "wx/tglbtn.h"
class BitmapToggleButtonTestCase : public CppUnit::TestCase
{
@@ -116,4 +119,6 @@ void BitmapToggleButtonTestCase::Value()
CPPUNIT_ASSERT_EQUAL( 0, frame->GetEventCount() );
}
#endif
#endif // wxHAS_BITMAPTOGGLEBUTTON
#endif // wxUSE_TOGGLEBTN