Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

plucker_wizard_base.h

Go to the documentation of this file.
      00001 //----------------------------------------------------------------------------------------
      00011 // RCS-ID:      $Id: plucker_wizard_base.h,v 1.3 2002/08/30 21:42:35 robertoconnor Exp $
      00012 //----------------------------------------------------------------------------------------
      00013 
      00014 //----------------------------------------------------------------------------------------
      00015 // Begin single inclusion of this .h file condition
      00016 //----------------------------------------------------------------------------------------
      00017 
      00018 #ifndef _PLUCKER_WIZARD_BASE_H_
      00019 #define _PLUCKER_WIZARD_BASE_H_
      00020 
      00021 //----------------------------------------------------------------------------------------
      00022 // GCC interface
      00023 //----------------------------------------------------------------------------------------
      00024 
      00025 #if defined(__GNUG__) && ! defined(__APPLE__)
      00026     #pragma interface "plucker_wizard_base.h"
      00027 #endif
      00028 
      00029 //----------------------------------------------------------------------------------------
      00030 // Shared defines
      00031 //----------------------------------------------------------------------------------------
      00032 
      00033 #include "plucker_defines.h"
      00034 
      00035 //----------------------------------------------------------------------------------------
      00036 // Begin feature removal condition
      00037 //----------------------------------------------------------------------------------------
      00038 
      00039 #if ( setupUSE_WIZARDS )
      00040 
      00041 //----------------------------------------------------------------------------------------
      00042 // Headers
      00043 //----------------------------------------------------------------------------------------
      00044 
      00045 #include "wx/wizard.h"
      00046 
      00047 // ----------------------------------------------------------------------------------------
      00048 // Define an array type for our class (an array of pointers only). Note that 
      00049 // WX_DEFINE_ARRAY is only for ints/pointers, not objects. This is just an array of the 
      00050 // child wizardpages that were added, so that we can loop through them to chain them,
      00051 // set which is the first page, and set the overall wizard size.
      00052 // ----------------------------------------------------------------------------------------
      00053 
      00054 WX_DEFINE_ARRAY( wxWizardPageSimple*, wizardpage_array_type );
      00055 
      00056 //----------------------------------------------------------------------------------------
      00057 // Class definition: plucker_wizard_base
      00058 //----------------------------------------------------------------------------------------
      00059 
      00061 
      00064 class plucker_wizard_base : public wxWizard
00065 {
00066     DECLARE_ABSTRACT_CLASS( plucker_wizard_base );
00067 
00068 public:      
00070 
00077     plucker_wizard_base( wxWindow* parent = NULL,
00078                          int id = -1, 
00079                          const wxString& title = wxEmptyString,
00080                          const wxBitmap& bitmap = wxNullBitmap, 
00081                          const wxString& cancel_message = _( "Abort the wizard?" ) 
00082                        );
00083                   
00085     virtual ~plucker_wizard_base();
00086     
00088 
00091     void                    add_wizardpage_to_wizard( wxWizardPageSimple* wizardpage );
00092        
00094 
00097     bool                    run_wizard();    
00098         
00100     virtual void            on_finish_button()  = 0; 
00101     
00103 
00107     virtual void            on_help_button( wxWizardEvent& event )    = 0; 
00108   
00109 private: 
00110 
00111     void                    on_cancel_button( wxWizardEvent& event );
00112    
00113     wxWizardPageSimple*     m_first_wizardpage;
00114         
00115     wxWindow*               m_parent;
00116     wxString                m_cancel_message; 
00117     
00118     wizardpage_array_type   m_wizardpages_array;
00119     
00120     void                    chain_wizardpages();
00121     void                    set_best_wizard_size();  
00122     
00123     DECLARE_EVENT_TABLE()
00124     
00125 };
00126 
00127 //----------------------------------------------------------------------------------------
00128 // End feature removal condition
00129 //----------------------------------------------------------------------------------------
00130 
00131 #endif  // setupUSE_WIZARDS
00132 
00133 //----------------------------------------------------------------------------------------
00134 // End single inclusion of this .h file condition
00135 //----------------------------------------------------------------------------------------
00136 
00137 #endif  //_PLUCKER_WIZARD_BASE_H_