included in wx/sizer.h.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35333
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
14 files changed:
#include "wx/datetime.h"
#include "wx/image.h"
#include "wx/datetime.h"
#include "wx/image.h"
+#include "wx/bookctrl.h"
#if wxUSE_COLOURDLG
#include "wx/colordlg.h"
#if wxUSE_COLOURDLG
#include "wx/colordlg.h"
class ButtonWidgetsPage : public WidgetsPage
{
public:
class ButtonWidgetsPage : public WidgetsPage
{
public:
- ButtonWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ ButtonWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~ButtonWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_button; }
virtual ~ButtonWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_button; }
IMPLEMENT_WIDGETS_PAGE(ButtonWidgetsPage, _T("Button"));
IMPLEMENT_WIDGETS_PAGE(ButtonWidgetsPage, _T("Button"));
-ButtonWidgetsPage::ButtonWidgetsPage(wxBookCtrl *book,
+ButtonWidgetsPage::ButtonWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class CheckBoxWidgetsPage : public WidgetsPage
{
public:
class CheckBoxWidgetsPage : public WidgetsPage
{
public:
- CheckBoxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ CheckBoxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~CheckBoxWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_checkbox; }
virtual ~CheckBoxWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_checkbox; }
IMPLEMENT_WIDGETS_PAGE(CheckBoxWidgetsPage, wxT("CheckBox"));
IMPLEMENT_WIDGETS_PAGE(CheckBoxWidgetsPage, wxT("CheckBox"));
-CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxBookCtrl *book,
+CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class ComboboxWidgetsPage : public WidgetsPage
{
public:
class ComboboxWidgetsPage : public WidgetsPage
{
public:
- ComboboxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ ComboboxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual wxControl *GetWidget() const { return m_combobox; }
virtual wxControl *GetWidget() const { return m_combobox; }
IMPLEMENT_WIDGETS_PAGE(ComboboxWidgetsPage, _T("Combobox"));
IMPLEMENT_WIDGETS_PAGE(ComboboxWidgetsPage, _T("Combobox"));
-ComboboxWidgetsPage::ComboboxWidgetsPage(wxBookCtrl *book,
+ComboboxWidgetsPage::ComboboxWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class GaugeWidgetsPage : public WidgetsPage
{
public:
class GaugeWidgetsPage : public WidgetsPage
{
public:
- GaugeWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ GaugeWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~GaugeWidgetsPage();
virtual wxControl *GetWidget() const { return m_gauge; }
virtual ~GaugeWidgetsPage();
virtual wxControl *GetWidget() const { return m_gauge; }
IMPLEMENT_WIDGETS_PAGE(GaugeWidgetsPage, _T("Gauge"));
IMPLEMENT_WIDGETS_PAGE(GaugeWidgetsPage, _T("Gauge"));
-GaugeWidgetsPage::GaugeWidgetsPage(wxBookCtrl *book,
+GaugeWidgetsPage::GaugeWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
:WidgetsPage(book)
{
wxImageList *imaglist)
:WidgetsPage(book)
{
class ListboxWidgetsPage : public WidgetsPage
{
public:
class ListboxWidgetsPage : public WidgetsPage
{
public:
- ListboxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ ListboxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual wxControl *GetWidget() const { return m_lbox; }
virtual wxControl *GetWidget() const { return m_lbox; }
IMPLEMENT_WIDGETS_PAGE(ListboxWidgetsPage, _T("Listbox"));
IMPLEMENT_WIDGETS_PAGE(ListboxWidgetsPage, _T("Listbox"));
-ListboxWidgetsPage::ListboxWidgetsPage(wxBookCtrl *book,
+ListboxWidgetsPage::ListboxWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class NotebookWidgetsPage : public WidgetsPage
{
public:
class NotebookWidgetsPage : public WidgetsPage
{
public:
- NotebookWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ NotebookWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~NotebookWidgetsPage();
virtual wxControl *GetWidget() const { return m_notebook; }
virtual ~NotebookWidgetsPage();
virtual wxControl *GetWidget() const { return m_notebook; }
IMPLEMENT_WIDGETS_PAGE(NotebookWidgetsPage, _T("Notebook"));
IMPLEMENT_WIDGETS_PAGE(NotebookWidgetsPage, _T("Notebook"));
-NotebookWidgetsPage::NotebookWidgetsPage(wxBookCtrl *book,
+NotebookWidgetsPage::NotebookWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class RadioWidgetsPage : public WidgetsPage
{
public:
class RadioWidgetsPage : public WidgetsPage
{
public:
- RadioWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ RadioWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~RadioWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_radio; }
virtual ~RadioWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_radio; }
IMPLEMENT_WIDGETS_PAGE(RadioWidgetsPage, _T("Radio"));
IMPLEMENT_WIDGETS_PAGE(RadioWidgetsPage, _T("Radio"));
-RadioWidgetsPage::RadioWidgetsPage(wxBookCtrl *book,
+RadioWidgetsPage::RadioWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class SliderWidgetsPage : public WidgetsPage
{
public:
class SliderWidgetsPage : public WidgetsPage
{
public:
- SliderWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ SliderWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~SliderWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_slider; }
virtual ~SliderWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_slider; }
IMPLEMENT_WIDGETS_PAGE(SliderWidgetsPage, _T("Slider"));
IMPLEMENT_WIDGETS_PAGE(SliderWidgetsPage, _T("Slider"));
-SliderWidgetsPage::SliderWidgetsPage(wxBookCtrl *book,
+SliderWidgetsPage::SliderWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class SpinBtnWidgetsPage : public WidgetsPage
{
public:
class SpinBtnWidgetsPage : public WidgetsPage
{
public:
- SpinBtnWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ SpinBtnWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~SpinBtnWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_spinbtn; }
virtual ~SpinBtnWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_spinbtn; }
IMPLEMENT_WIDGETS_PAGE(SpinBtnWidgetsPage, _T("Spin"));
IMPLEMENT_WIDGETS_PAGE(SpinBtnWidgetsPage, _T("Spin"));
-SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxBookCtrl *book,
+SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
class StaticWidgetsPage : public WidgetsPage
{
public:
class StaticWidgetsPage : public WidgetsPage
{
public:
- StaticWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ StaticWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~StaticWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_statText; }
virtual ~StaticWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_statText; }
IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static"));
IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static"));
-StaticWidgetsPage::StaticWidgetsPage(wxBookCtrl *book,
+StaticWidgetsPage::StaticWidgetsPage(wxBookCtrlBase *book,
wxImageList *imaglist)
: WidgetsPage(book)
{
wxImageList *imaglist)
: WidgetsPage(book)
{
{
public:
// ctor(s) and dtor
{
public:
// ctor(s) and dtor
- TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
+ TextWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
virtual ~TextWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_text; }
virtual ~TextWidgetsPage(){};
virtual wxControl *GetWidget() const { return m_text; }
// TextWidgetsPage creation
// ----------------------------------------------------------------------------
// TextWidgetsPage creation
// ----------------------------------------------------------------------------
-TextWidgetsPage::TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist)
+TextWidgetsPage::TextWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist)
: WidgetsPage(book)
{
imaglist->Add(wxBitmap(text_xpm));
: WidgetsPage(book)
{
imaglist->Add(wxBitmap(text_xpm));
#endif // USE_LOG
// the book containing the test pages
#endif // USE_LOG
// the book containing the test pages
+ wxBookCtrlBase *m_book;
// and the image list for it
wxImageList *m_imaglist;
// and the image list for it
wxImageList *m_imaglist;
m_lboxLog = (wxListBox *)NULL;
m_logTarget = (wxLog *)NULL;
#endif // USE_LOG
m_lboxLog = (wxListBox *)NULL;
m_logTarget = (wxLog *)NULL;
#endif // USE_LOG
- m_book = (wxBookCtrl *)NULL;
+ m_book = (wxBookCtrlBase *)NULL;
m_imaglist = (wxImageList *)NULL;
#if wxUSE_MENUS
m_imaglist = (wxImageList *)NULL;
#if wxUSE_MENUS
// WidgetsPage
// ----------------------------------------------------------------------------
// WidgetsPage
// ----------------------------------------------------------------------------
-WidgetsPage::WidgetsPage(wxBookCtrl *book)
+WidgetsPage::WidgetsPage(wxBookCtrlBase *book)
: wxPanel(book, wxID_ANY,
wxDefaultPosition, wxDefaultSize,
wxNO_FULL_REPAINT_ON_RESIZE |
: wxPanel(book, wxID_ANY,
wxDefaultPosition, wxDefaultSize,
wxNO_FULL_REPAINT_ON_RESIZE |
#define _WX_SAMPLE_WIDGETS_H_
class WXDLLEXPORT wxCheckBox;
#define _WX_SAMPLE_WIDGETS_H_
class WXDLLEXPORT wxCheckBox;
-class WXDLLEXPORT wxBookCtrl;
+class WXDLLEXPORT wxBookCtrlBase;
class WXDLLEXPORT wxSizer;
class WXDLLEXPORT wxTextCtrl;
class WXDLLEXPORT wxSizer;
class WXDLLEXPORT wxTextCtrl;
class WidgetsPage : public wxPanel
{
public:
class WidgetsPage : public wxPanel
{
public:
- WidgetsPage(wxBookCtrl *book);
+ WidgetsPage(wxBookCtrlBase *book);
// return the control shown by this page
virtual wxControl *GetWidget() const = 0;
// return the control shown by this page
virtual wxControl *GetWidget() const = 0;
class WidgetsPageInfo
{
public:
class WidgetsPageInfo
{
public:
- typedef WidgetsPage *(*Constructor)(wxBookCtrl *book,
+ typedef WidgetsPage *(*Constructor)(wxBookCtrlBase *book,
wxImageList *imaglist);
// our ctor
wxImageList *imaglist);
// our ctor
// and this one must be inserted somewhere in the source file
#define IMPLEMENT_WIDGETS_PAGE(classname, label) \
// and this one must be inserted somewhere in the source file
#define IMPLEMENT_WIDGETS_PAGE(classname, label) \
- WidgetsPage *wxCtorFor##classname(wxBookCtrl *book, \
+ WidgetsPage *wxCtorFor##classname(wxBookCtrlBase *book, \
wxImageList *imaglist) \
{ return new classname(book, imaglist); } \
WidgetsPageInfo classname:: \
wxImageList *imaglist) \
{ return new classname(book, imaglist); } \
WidgetsPageInfo classname:: \