#pragma hdrstop
#endif
+#if wxUSE_SLIDER
+
// for all others, include the necessary headers
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/sizer.h"
#include "widgets.h"
-#if wxUSE_SLIDER
+
#include "icons/slider.xpm"
// ----------------------------------------------------------------------------
class SliderWidgetsPage : public WidgetsPage
{
public:
- SliderWidgetsPage(wxNotebook *notebook, wxImageList *imaglist);
- virtual ~SliderWidgetsPage();
+ SliderWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ virtual ~SliderWidgetsPage(){};
+
+ virtual wxControl *GetWidget() const { return m_slider; }
protected:
// event handlers
IMPLEMENT_WIDGETS_PAGE(SliderWidgetsPage, _T("Slider"));
-SliderWidgetsPage::SliderWidgetsPage(wxNotebook *notebook,
- wxImageList *imaglist)
- : WidgetsPage(notebook)
+SliderWidgetsPage::SliderWidgetsPage(wxBookCtrl *book,
+ wxImageList *imaglist)
+ : WidgetsPage(book)
{
imaglist->Add(wxBitmap(slider_xpm));
sizerTop->Fit(this);
}
-SliderWidgetsPage::~SliderWidgetsPage()
-{
-}
-
// ----------------------------------------------------------------------------
// operations
// ----------------------------------------------------------------------------
event.GetPosition());
}
-#endif
- // wxUSE_SLIDER
+#endif // wxUSE_SLIDER