No significant changes. Remove reliance on wx/bookctrl.h being
included in wx/sizer.h. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
|
||||
#include "wx/datetime.h"
|
||||
#include "wx/image.h"
|
||||
#include "wx/bookctrl.h"
|
||||
|
||||
#if wxUSE_COLOURDLG
|
||||
#include "wx/colordlg.h"
|
||||
|
@@ -77,7 +77,7 @@ enum
|
||||
class ButtonWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
ButtonWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
ButtonWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~ButtonWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_button; }
|
||||
@@ -139,7 +139,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(ButtonWidgetsPage, _T("Button"));
|
||||
|
||||
ButtonWidgetsPage::ButtonWidgetsPage(wxBookCtrl *book,
|
||||
ButtonWidgetsPage::ButtonWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -73,7 +73,7 @@ enum
|
||||
class CheckBoxWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
CheckBoxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
CheckBoxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~CheckBoxWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_checkbox; }
|
||||
@@ -149,7 +149,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(CheckBoxWidgetsPage, wxT("CheckBox"));
|
||||
|
||||
CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxBookCtrl *book,
|
||||
CheckBoxWidgetsPage::CheckBoxWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -84,7 +84,7 @@ enum
|
||||
class ComboboxWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
ComboboxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
ComboboxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_combobox; }
|
||||
|
||||
@@ -190,7 +190,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(ComboboxWidgetsPage, _T("Combobox"));
|
||||
|
||||
ComboboxWidgetsPage::ComboboxWidgetsPage(wxBookCtrl *book,
|
||||
ComboboxWidgetsPage::ComboboxWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -71,7 +71,7 @@ enum
|
||||
class GaugeWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
GaugeWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
GaugeWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~GaugeWidgetsPage();
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_gauge; }
|
||||
@@ -158,7 +158,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(GaugeWidgetsPage, _T("Gauge"));
|
||||
|
||||
GaugeWidgetsPage::GaugeWidgetsPage(wxBookCtrl *book,
|
||||
GaugeWidgetsPage::GaugeWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
:WidgetsPage(book)
|
||||
{
|
||||
|
@@ -76,7 +76,7 @@ enum
|
||||
class ListboxWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
ListboxWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
ListboxWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_lbox; }
|
||||
|
||||
@@ -194,7 +194,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(ListboxWidgetsPage, _T("Listbox"));
|
||||
|
||||
ListboxWidgetsPage::ListboxWidgetsPage(wxBookCtrl *book,
|
||||
ListboxWidgetsPage::ListboxWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -86,7 +86,7 @@ enum Orient
|
||||
class NotebookWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
NotebookWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
NotebookWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~NotebookWidgetsPage();
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_notebook; }
|
||||
@@ -192,7 +192,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(NotebookWidgetsPage, _T("Notebook"));
|
||||
|
||||
NotebookWidgetsPage::NotebookWidgetsPage(wxBookCtrl *book,
|
||||
NotebookWidgetsPage::NotebookWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -80,7 +80,7 @@ static const unsigned int DEFAULT_MAJOR_DIM = 3;
|
||||
class RadioWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
RadioWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
RadioWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~RadioWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_radio; }
|
||||
@@ -160,7 +160,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(RadioWidgetsPage, _T("Radio"));
|
||||
|
||||
RadioWidgetsPage::RadioWidgetsPage(wxBookCtrl *book,
|
||||
RadioWidgetsPage::RadioWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -89,7 +89,7 @@ enum
|
||||
class SliderWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
SliderWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
SliderWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~SliderWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_slider; }
|
||||
@@ -199,7 +199,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(SliderWidgetsPage, _T("Slider"));
|
||||
|
||||
SliderWidgetsPage::SliderWidgetsPage(wxBookCtrl *book,
|
||||
SliderWidgetsPage::SliderWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -73,7 +73,7 @@ enum
|
||||
class SpinBtnWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
SpinBtnWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
SpinBtnWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~SpinBtnWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_spinbtn; }
|
||||
@@ -167,7 +167,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(SpinBtnWidgetsPage, _T("Spin"));
|
||||
|
||||
SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxBookCtrl *book,
|
||||
SpinBtnWidgetsPage::SpinBtnWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -139,7 +139,7 @@ END_EVENT_TABLE()
|
||||
class StaticWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
StaticWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
StaticWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~StaticWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_statText; }
|
||||
@@ -205,7 +205,7 @@ END_EVENT_TABLE()
|
||||
|
||||
IMPLEMENT_WIDGETS_PAGE(StaticWidgetsPage, _T("Static"));
|
||||
|
||||
StaticWidgetsPage::StaticWidgetsPage(wxBookCtrl *book,
|
||||
StaticWidgetsPage::StaticWidgetsPage(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
|
@@ -132,7 +132,7 @@ class TextWidgetsPage : public WidgetsPage
|
||||
{
|
||||
public:
|
||||
// ctor(s) and dtor
|
||||
TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist);
|
||||
TextWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist);
|
||||
virtual ~TextWidgetsPage(){};
|
||||
|
||||
virtual wxControl *GetWidget() const { return m_text; }
|
||||
@@ -334,7 +334,7 @@ IMPLEMENT_WIDGETS_PAGE(TextWidgetsPage, _T("Text"));
|
||||
// TextWidgetsPage creation
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
TextWidgetsPage::TextWidgetsPage(wxBookCtrl *book, wxImageList *imaglist)
|
||||
TextWidgetsPage::TextWidgetsPage(wxBookCtrlBase *book, wxImageList *imaglist)
|
||||
: WidgetsPage(book)
|
||||
{
|
||||
imaglist->Add(wxBitmap(text_xpm));
|
||||
|
@@ -125,7 +125,7 @@ private:
|
||||
#endif // USE_LOG
|
||||
|
||||
// the book containing the test pages
|
||||
wxBookCtrl *m_book;
|
||||
wxBookCtrlBase *m_book;
|
||||
|
||||
// and the image list for it
|
||||
wxImageList *m_imaglist;
|
||||
@@ -290,7 +290,7 @@ WidgetsFrame::WidgetsFrame(const wxString& title)
|
||||
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
|
||||
@@ -644,7 +644,7 @@ WidgetsPageInfo::WidgetsPageInfo(Constructor ctor, const wxChar *label)
|
||||
// WidgetsPage
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
WidgetsPage::WidgetsPage(wxBookCtrl *book)
|
||||
WidgetsPage::WidgetsPage(wxBookCtrlBase *book)
|
||||
: wxPanel(book, wxID_ANY,
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
wxNO_FULL_REPAINT_ON_RESIZE |
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#define _WX_SAMPLE_WIDGETS_H_
|
||||
|
||||
class WXDLLEXPORT wxCheckBox;
|
||||
class WXDLLEXPORT wxBookCtrl;
|
||||
class WXDLLEXPORT wxBookCtrlBase;
|
||||
class WXDLLEXPORT wxSizer;
|
||||
class WXDLLEXPORT wxTextCtrl;
|
||||
|
||||
@@ -37,7 +37,7 @@ class WidgetsPageInfo;
|
||||
class WidgetsPage : public wxPanel
|
||||
{
|
||||
public:
|
||||
WidgetsPage(wxBookCtrl *book);
|
||||
WidgetsPage(wxBookCtrlBase *book);
|
||||
|
||||
// return the control shown by this page
|
||||
virtual wxControl *GetWidget() const = 0;
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
class WidgetsPageInfo
|
||||
{
|
||||
public:
|
||||
typedef WidgetsPage *(*Constructor)(wxBookCtrl *book,
|
||||
typedef WidgetsPage *(*Constructor)(wxBookCtrlBase *book,
|
||||
wxImageList *imaglist);
|
||||
|
||||
// our ctor
|
||||
@@ -117,7 +117,7 @@ private:
|
||||
|
||||
// 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:: \
|
||||
|
Reference in New Issue
Block a user