]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/wizard.h
987113b877bea2cbb7c40c2b73d31bd4a9456b30
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;
31 // implementation only from now on
32 // -------------------------------
34 // is the wizard running?
35 bool IsRunning() const { return m_page
!= NULL
; }
37 // show the prev/next page, but call TransferDataFromWindow on the current
38 // page first and return FALSE without changing the page if it returns
40 bool ShowPage(wxWizardPage
*page
, bool goingForward
= TRUE
);
44 void OnCancel(wxCommandEvent
& event
);
45 void OnBackOrNext(wxCommandEvent
& event
);
48 int m_x
, m_y
; // the origin for the pages
49 int m_width
, // the size of the page itself
50 m_height
; // (total width is m_width + m_x)
53 wxWizardPage
*m_page
; // the current page or NULL
56 wxButton
*m_btnPrev
, // the "<Back" button
57 *m_btnNext
; // the "Next>" or "Finish" button
59 DECLARE_DYNAMIC_CLASS(wxWizard
)