1 #############################################################################
3 ## Purpose: XS for Wx::Wizard and related classes
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: Wizard.xs 2315 2008-01-18 21:47:17Z mbarbon $
8 ## Copyright: (c) 2002-2004, 2006-2008 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
14 #include <wx/bitmap.h>
16 #include <wx/dialog.h>
18 #include <wx/wizard.h>
20 #include "cpp/overload.h"
21 #include "cpp/wizard.h"
23 MODULE=Wx PACKAGE=Wx::Wizard
29 MATCH_VOIDM_REDISP( newEmpty )
30 MATCH_ANY_REDISP( newFull )
31 END_OVERLOAD( Wx::Wizard::new )
37 RETVAL = new wxPliWizard( CLASS );
42 newFull( CLASS, parent, id = wxID_ANY, title = wxEmptyString, bitmap = (wxBitmap*)&wxNullBitmap, pos = wxDefaultPosition )
50 RETVAL = new wxPliWizard( CLASS, parent, id, title, *bitmap, pos );
55 wxWizard::Create( parent, id = wxID_ANY, title = wxEmptyString, bitmap = (wxBitmap*)&wxNullBitmap, pos = wxDefaultPosition )
61 C_ARGS: parent, id, title, *bitmap, pos
64 wxWizard::RunWizard( page )
68 wxWizard::GetCurrentPage()
71 wxWizard::GetPageSize()
73 RETVAL = new wxSize( THIS->GetPageSize() );
78 wxWizard::SetPageSize( size )
81 #if WXPERL_W_VERSION_GE( 2, 5, 1 )
84 wxWizard::GetPageAreaSizer()
88 #if WXPERL_W_VERSION_GE( 2, 8, 5 )
93 RETVAL = new wxBitmap( THIS->GetBitmap() );
97 wxWizard::SetBitmap( bitmap )
104 wxWizard::FitToPage( firstPage )
105 wxWizardPage* firstPage
108 wxWizard::SetBorder( border )
112 wxWizard::HasNextPage( page )
116 wxWizard::HasPrevPage( page )
119 #if WXPERL_W_VERSION_GE( 2, 9, 0 )
122 wxWizard::SetBitmapBackgroundColour( colour )
126 wxWizard::GetBitmapBackgroundColour()
128 RETVAL = new wxColour( THIS->GetBitmapBackgroundColour() );
132 wxWizard::SetBitmapPlacement( placement )
136 wxWizard::GetBitmapPlacement()
139 wxWizard::SetMinimumBitmapWidth( w )
143 wxWizard::GetMinimumBitmapWidth()
147 MODULE=Wx PACKAGE=Wx::WizardPage
150 wxWizardPage::new( ... )
153 MATCH_VOIDM_REDISP( newEmpty )
154 MATCH_ANY_REDISP( newFull )
155 END_OVERLOAD( Wx::WizardPage::new )
161 RETVAL = new wxPliWizardPage( CLASS );
166 newFull( CLASS, parent, bitmap = (wxBitmap*)&wxNullBitmap )
171 RETVAL = new wxPliWizardPage( CLASS, parent, *bitmap );
176 wxWizardPage::Create( parent, bitmap = (wxBitmap*)&wxNullBitmap )
179 C_ARGS: parent, *bitmap
182 wxWizardPage::GetBitmap()
184 RETVAL = new wxBitmap( THIS->GetBitmap() );
189 wxWizardPageSimple::GetPrev()
192 wxWizardPageSimple::GetNext()
194 MODULE=Wx PACKAGE=Wx::WizardPageSimple
197 wxWizardPageSimple::new( parent, prev = 0, next = 0 )
203 wxWizardPageSimple::SetPrev( prev )
207 wxWizardPageSimple::SetNext( next )
211 Chain( first, second )
212 wxWizardPageSimple* first
213 wxWizardPageSimple* second
215 wxWizardPageSimple::Chain( first, second );
217 MODULE=Wx PACKAGE=Wx::WizardEvent
220 wxWizardEvent::GetDirection()
223 wxWizardEvent::GetPage()