]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/wizard.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: generic/wizard.h
3 // Purpose: declaration of generic wxWizard class
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9 // Licence: wxWindows license
10 ///////////////////////////////////////////////////////////////////////////////
12 // ----------------------------------------------------------------------------
14 // ----------------------------------------------------------------------------
16 class wxWizard
: public wxWizardBase
20 wxWizard(wxWindow
*parent
= NULL
,
22 const wxString
& title
= wxEmptyString
,
23 const wxBitmap
& bitmap
= wxNullBitmap
,
24 const wxPoint
& pos
= wxDefaultPosition
,
25 const wxSize
& size
= wxDefaultSize
);
27 // implement base class pure virtuals
28 virtual bool RunWizard(wxWizardPage
*firstPage
);
29 virtual wxWizardPage
*GetCurrentPage() const;
30 virtual wxSize
GetPageSize() const;
32 // implementation only from now on
33 // -------------------------------
35 // is the wizard running?
36 bool IsRunning() const { return m_page
!= NULL
; }
38 // show the prev/next page, but call TransferDataFromWindow on the current
39 // page first and return FALSE without changing the page if it returns
41 bool ShowPage(wxWizardPage
*page
, bool goingForward
= TRUE
);
45 void OnCancel(wxCommandEvent
& event
);
46 void OnBackOrNext(wxCommandEvent
& event
);
49 int m_x
, m_y
; // the origin for the pages
50 int m_width
, // the size of the page itself
51 m_height
; // (total width is m_width + m_x)
54 wxWizardPage
*m_page
; // the current page or NULL
57 wxButton
*m_btnPrev
, // the "<Back" button
58 *m_btnNext
; // the "Next>" or "Finish" button
60 DECLARE_DYNAMIC_CLASS(wxWizard
)