]> git.saurik.com Git - wxWidgets.git/commitdiff
Added SetBitmap, GetBitmap to wxWizard
authorJulian Smart <julian@anthemion.co.uk>
Mon, 2 Jul 2007 08:00:48 +0000 (08:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 2 Jul 2007 08:00:48 +0000 (08:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/wizard.tex
include/wx/generic/wizard.h
src/generic/wizard.cpp

index 0d26b0ec7fa234d36d630358cb112e05274a276c..19ff6221b3e01d244916fceae45cfed39b824582 100644 (file)
@@ -157,6 +157,11 @@ This is useful if the decision about which pages to show is taken during
 run-time, as in this case, the wizard won't be able to get to all pages starting
 from a single one and you should call {\it Fit} separately for the others.
 
+\membersection{wxWizard::GetBitmap}\label{wxwizardgetbitmap}
+
+\constfunc{const wxBitmap\&}{GetBitmap}{\void}
+
+Returns the bitmap used for the wizard.
 
 \membersection{wxWizard::GetCurrentPage}\label{wxwizardgetcurrentpage}
 
@@ -241,6 +246,11 @@ Executes the wizard starting from the given page, returning {\tt true} if it was
 successfully finished or {\tt false} if user cancelled it. The {\it firstPage} 
 can not be {\tt NULL}.
 
+\membersection{wxWizard::SetBitmap}\label{wxwizardsetbitmap}
+
+\func{void}{SetBitmap}{\param{const wxBitmap\& }{bitmap}}
+
+Sets the bitmap used for the wizard.
 
 \membersection{wxWizard::SetPageSize}\label{wxwizardsetpagesize}
 
index 0b0f5bed6faf69a206b5a867e2b681a08eeb9e12..798d7f91b3931f8c8d229ba8dfe2aef6553ece5a 100644 (file)
@@ -55,6 +55,10 @@ public:
     virtual wxSizer *GetPageAreaSizer() const;
     virtual void SetBorder(int border);
 
+    /// set/get bitmap
+    const wxBitmap& GetBitmap() const { return m_bitmap; }
+    void SetBitmap(const wxBitmap& bitmap);
+
     // implementation only from now on
     // -------------------------------
 
index c6581d6d390962a420067f66ee550b5a066f45b5..c3d603509ed8f57dc2c804e26aabefa785eba192 100644 (file)
@@ -843,6 +843,13 @@ void wxWizard::OnWizEvent(wxWizardEvent& event)
     }
 }
 
+void wxWizard::SetBitmap(const wxBitmap& bitmap)
+{
+    m_bitmap = bitmap;
+    if (m_statbmp)
+        m_statbmp->SetBitmap(m_bitmap);
+}
+
 // ----------------------------------------------------------------------------
 // wxWizardEvent
 // ----------------------------------------------------------------------------