]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/wizard.h
Removed unnecessary code from utilsunx.cpp
[wxWidgets.git] / include / wx / generic / wizard.h
CommitLineData
74b31181
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: generic/wizard.h
3// Purpose: declaration of generic wxWizard class
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 28.09.99
7// RCS-ID: $Id$
8// Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
9// Licence: wxWindows license
10///////////////////////////////////////////////////////////////////////////////
11
12// ----------------------------------------------------------------------------
13// wxWizard
14// ----------------------------------------------------------------------------
15
f1df0927
VZ
16class WXDLLEXPORT wxButton;
17class WXDLLEXPORT wxStaticBitmap;
18
19class WXDLLEXPORT wxWizard : public wxWizardBase
74b31181
VZ
20{
21public:
22 // ctor
23 wxWizard(wxWindow *parent = NULL,
24 int id = -1,
25 const wxString& title = wxEmptyString,
26 const wxBitmap& bitmap = wxNullBitmap,
27 const wxPoint& pos = wxDefaultPosition,
28 const wxSize& size = wxDefaultSize);
29
30 // implement base class pure virtuals
31 virtual bool RunWizard(wxWizardPage *firstPage);
32 virtual wxWizardPage *GetCurrentPage() const;
4fe5383d 33 virtual wxSize GetPageSize() const;
74b31181
VZ
34
35 // implementation only from now on
36 // -------------------------------
37
38 // is the wizard running?
39 bool IsRunning() const { return m_page != NULL; }
40
41 // show the prev/next page, but call TransferDataFromWindow on the current
42 // page first and return FALSE without changing the page if it returns
43 // FALSE
44 bool ShowPage(wxWizardPage *page, bool goingForward = TRUE);
45
46private:
47 // event handlers
48 void OnCancel(wxCommandEvent& event);
49 void OnBackOrNext(wxCommandEvent& event);
50
51 // wizard dimensions
52 int m_x, m_y; // the origin for the pages
53 int m_width, // the size of the page itself
54 m_height; // (total width is m_width + m_x)
55
56 // wizard state
57 wxWizardPage *m_page; // the current page or NULL
f1df0927 58 wxBitmap m_bitmap; // the default bitmap to show
74b31181
VZ
59
60 // wizard controls
61 wxButton *m_btnPrev, // the "<Back" button
62 *m_btnNext; // the "Next>" or "Finish" button
f1df0927 63 wxStaticBitmap *m_statbmp; // the control for the bitmap
74b31181
VZ
64
65 DECLARE_DYNAMIC_CLASS(wxWizard)
66 DECLARE_EVENT_TABLE()
67};
68