#include <uiutils/scrollingwizard.h>
Public Member Functions | |
wxScrollingWizard () | |
wxScrollingWizard (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxBitmap &bitmap=wxNullBitmap, const wxPoint &pos=wxDefaultPosition, long style=wxDEFAULT_DIALOG_STYLE) | |
bool | Create (wxWindow *parent, int id=wxID_ANY, const wxString &title=wxEmptyString, const wxBitmap &bitmap=wxNullBitmap, const wxPoint &pos=wxDefaultPosition, long style=wxDEFAULT_DIALOG_STYLE) |
void | Init () |
virtual | ~wxScrollingWizard () |
virtual bool | RunWizard (wxWizardPage *firstPage) |
virtual wxWizardPage * | GetCurrentPage () const |
virtual void | SetPageSize (const wxSize &size) |
virtual wxSize | GetPageSize () const |
virtual void | FitToPage (const wxWizardPage *firstPage) |
virtual wxSizer * | GetPageAreaSizer () const |
virtual void | SetBorder (int border) |
const wxBitmap & | GetBitmap () const |
set/get bitmap | |
void | SetBitmap (const wxBitmap &bitmap) |
bool | IsRunning () const |
bool | ShowPage (wxWizardPage *page, bool goingForward=true) |
virtual void | DoCreateControls () |
virtual bool | DoLayoutAdaptation () |
Do the adaptation. | |
void | SetBitmapBackgroundColour (const wxColour &colour) |
Set/get bitmap background colour. | |
const wxColour & | GetBitmapBackgroundColour () const |
void | SetBitmapPlacement (int placement) |
Set/get bitmap placement (centred, tiled etc.). | |
int | GetBitmapPlacement () const |
void | SetMinimumBitmapWidth (int w) |
Set/get minimum bitmap width. | |
int | GetMinimumBitmapWidth () const |
Static Public Member Functions | |
static bool | TileBitmap (const wxRect &rect, wxDC &dc, const wxBitmap &bitmap) |
Tile bitmap. | |
Protected Member Functions | |
void | FinishLayout () |
virtual void | DoWizardLayout () |
Do fit, and adjust to screen size if necessary. | |
virtual bool | ResizeBitmap (wxBitmap &bmp) |
Resize bitmap if necessary. | |
bool | WasCreated () const |
void | OnCancel (wxCommandEvent &event) |
void | OnBackOrNext (wxCommandEvent &event) |
void | OnHelp (wxCommandEvent &event) |
void | OnWizEvent (wxWizardEvent &event) |
void | AddBitmapRow (wxBoxSizer *mainColumn) |
void | AddStaticLine (wxBoxSizer *mainColumn) |
void | AddBackNextPair (wxBoxSizer *buttonRow) |
void | AddButtonRow (wxBoxSizer *mainColumn) |
Protected Attributes | |
wxSize | m_sizePage |
wxPoint | m_posWizard |
wxWizardPage * | m_page |
wxBitmap | m_bitmap |
wxButton * | m_btnPrev |
wxButton * | m_btnNext |
wxStaticBitmap * | m_statbmp |
int | m_border |
bool | m_started |
bool | m_wasModal |
bool | m_usingSizer |
wxBoxSizer * | m_sizerBmpAndPage |
wxScrollingWizardSizer * | m_sizerPage |
wxColour | m_bitmapBackgroundColour |
int | m_bitmapPlacement |
int | m_bitmapMinimumWidth |
Friends | |
class | wxScrollingWizardSizer |
wxScrollingWizard::wxScrollingWizard | ( | ) | [inline] |
wxScrollingWizard::wxScrollingWizard | ( | wxWindow * | parent, | |
int | id = wxID_ANY , |
|||
const wxString & | title = wxEmptyString , |
|||
const wxBitmap & | bitmap = wxNullBitmap , |
|||
const wxPoint & | pos = wxDefaultPosition , |
|||
long | style = wxDEFAULT_DIALOG_STYLE | |||
) | [inline] |
virtual wxScrollingWizard::~wxScrollingWizard | ( | ) | [virtual] |
void wxScrollingWizard::AddBackNextPair | ( | wxBoxSizer * | buttonRow | ) | [protected] |
void wxScrollingWizard::AddBitmapRow | ( | wxBoxSizer * | mainColumn | ) | [protected] |
void wxScrollingWizard::AddButtonRow | ( | wxBoxSizer * | mainColumn | ) | [protected] |
void wxScrollingWizard::AddStaticLine | ( | wxBoxSizer * | mainColumn | ) | [protected] |
bool wxScrollingWizard::Create | ( | wxWindow * | parent, | |
int | id = wxID_ANY , |
|||
const wxString & | title = wxEmptyString , |
|||
const wxBitmap & | bitmap = wxNullBitmap , |
|||
const wxPoint & | pos = wxDefaultPosition , |
|||
long | style = wxDEFAULT_DIALOG_STYLE | |||
) |
virtual void wxScrollingWizard::DoCreateControls | ( | ) | [virtual] |
virtual bool wxScrollingWizard::DoLayoutAdaptation | ( | ) | [virtual] |
virtual void wxScrollingWizard::DoWizardLayout | ( | ) | [protected, virtual] |
Do fit, and adjust to screen size if necessary.
void wxScrollingWizard::FinishLayout | ( | ) | [inline, protected] |
virtual void wxScrollingWizard::FitToPage | ( | const wxWizardPage * | firstPage | ) | [virtual] |
const wxBitmap& wxScrollingWizard::GetBitmap | ( | ) | const [inline] |
set/get bitmap
const wxColour& wxScrollingWizard::GetBitmapBackgroundColour | ( | ) | const [inline] |
int wxScrollingWizard::GetBitmapPlacement | ( | ) | const [inline] |
virtual wxWizardPage* wxScrollingWizard::GetCurrentPage | ( | ) | const [virtual] |
int wxScrollingWizard::GetMinimumBitmapWidth | ( | ) | const [inline] |
virtual wxSizer* wxScrollingWizard::GetPageAreaSizer | ( | ) | const [virtual] |
virtual wxSize wxScrollingWizard::GetPageSize | ( | ) | const [virtual] |
void wxScrollingWizard::Init | ( | ) |
Reimplemented from wxDialogHelper.
bool wxScrollingWizard::IsRunning | ( | ) | const [inline] |
void wxScrollingWizard::OnBackOrNext | ( | wxCommandEvent & | event | ) | [protected] |
void wxScrollingWizard::OnCancel | ( | wxCommandEvent & | event | ) | [protected] |
void wxScrollingWizard::OnHelp | ( | wxCommandEvent & | event | ) | [protected] |
void wxScrollingWizard::OnWizEvent | ( | wxWizardEvent & | event | ) | [protected] |
virtual bool wxScrollingWizard::ResizeBitmap | ( | wxBitmap & | bmp | ) | [protected, virtual] |
Resize bitmap if necessary.
virtual bool wxScrollingWizard::RunWizard | ( | wxWizardPage * | firstPage | ) | [virtual] |
void wxScrollingWizard::SetBitmap | ( | const wxBitmap & | bitmap | ) |
void wxScrollingWizard::SetBitmapBackgroundColour | ( | const wxColour & | colour | ) | [inline] |
Set/get bitmap background colour.
void wxScrollingWizard::SetBitmapPlacement | ( | int | placement | ) | [inline] |
Set/get bitmap placement (centred, tiled etc.).
virtual void wxScrollingWizard::SetBorder | ( | int | border | ) | [virtual] |
void wxScrollingWizard::SetMinimumBitmapWidth | ( | int | w | ) | [inline] |
Set/get minimum bitmap width.
virtual void wxScrollingWizard::SetPageSize | ( | const wxSize & | size | ) | [virtual] |
bool wxScrollingWizard::ShowPage | ( | wxWizardPage * | page, | |
bool | goingForward = true | |||
) |
static bool wxScrollingWizard::TileBitmap | ( | const wxRect & | rect, | |
wxDC & | dc, | |||
const wxBitmap & | bitmap | |||
) | [static] |
Tile bitmap.
bool wxScrollingWizard::WasCreated | ( | ) | const [inline, protected] |
friend class wxScrollingWizardSizer [friend] |
wxBitmap wxScrollingWizard::m_bitmap [protected] |
wxColour wxScrollingWizard::m_bitmapBackgroundColour [protected] |
int wxScrollingWizard::m_bitmapMinimumWidth [protected] |
int wxScrollingWizard::m_bitmapPlacement [protected] |
int wxScrollingWizard::m_border [protected] |
wxButton * wxScrollingWizard::m_btnNext [protected] |
wxButton* wxScrollingWizard::m_btnPrev [protected] |
wxWizardPage* wxScrollingWizard::m_page [protected] |
wxPoint wxScrollingWizard::m_posWizard [protected] |
wxSize wxScrollingWizard::m_sizePage [protected] |
wxBoxSizer* wxScrollingWizard::m_sizerBmpAndPage [protected] |
wxScrollingWizardSizer* wxScrollingWizard::m_sizerPage [protected] |
bool wxScrollingWizard::m_started [protected] |
wxStaticBitmap* wxScrollingWizard::m_statbmp [protected] |
bool wxScrollingWizard::m_usingSizer [protected] |
bool wxScrollingWizard::m_wasModal [protected] |