extcmddlg.h

00001 
00002 // Name:        extcmddlg.h
00003 // Purpose:     wxExtCmdWizard definition
00004 // Author:      Julian Smart, Francesco Montorsi
00005 // Modified by: 
00006 // Created:     15/06/2006 21:23:11
00007 // RCS-ID:      $Id: extcmddlg.h,v 1.2 2007/01/01 20:06:20 frm Exp $
00008 // Copyright:   (c) 2006 Francesco Montorsi
00009 // Licence:     wxWidgets license
00011 
00012 #ifndef _PMEXTCMDDLG2_H_
00013 #define _PMEXTCMDDLG2_H_
00014 
00019 #include "wx/wizard.h"
00020 #include "wxp/package.h"
00021 #include "guipm/extcmdoptionspanel.h"
00022 #include "guipm/extcmdprogresspanel.h"
00023 
00024 
00029 class wxExtCmdWizardPage1;
00030 class wxExtCmdWizardPage2;
00031 
00032 
00037 #define ID_EXTCMD_WIZARD 10020
00038 #define SYMBOL_WXEXTCMDWIZARD_IDNAME ID_EXTCMD_WIZARD
00039 #define ID_EXTCMD_PAGE1 10026
00040 #define ID_EXTCMD_PAGE2 10031
00041 
00042 #define ID_EXTCMD_STARTLABEL          wxT("Start")
00043 #define ID_EXTCMD_STOPLABEL           wxT("Stop")
00044 
00045 
00046 
00047 // ----------------------------------------------------------------------------
00048 // wxExtCmdWizard
00049 // ----------------------------------------------------------------------------
00050 
00051 class wxExtCmdWizard: public wxWizard
00052 {    
00053     DECLARE_DYNAMIC_CLASS( wxExtCmdWizard )
00054     DECLARE_EVENT_TABLE()
00055 
00056 public:
00058     wxExtCmdWizard( );
00059     wxExtCmdWizard( wxWindow* parent, wxWindowID id = SYMBOL_WXEXTCMDWIZARD_IDNAME, 
00060                     const wxString &title = wxEmptyString,
00061                     const wxPoint& pos = wxDefaultPosition );
00062 
00064     bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXEXTCMDWIZARD_IDNAME, 
00065                  const wxString &title = wxEmptyString,
00066                  const wxPoint& pos = wxDefaultPosition );
00067 
00069     void CreateControls();
00070 
00072     bool Run();
00073 
00074 
00075 public:     // event handlers
00076 
00077     void OnNext(wxCommandEvent &);
00078     void OnPageChanged(wxWizardEvent &);
00079     void OnProgressPanelEnd(wxCommandEvent &);
00080 
00081 public:
00082 
00083     void Set(const wxPackage &p, wxPackageBuildSystemStage stage);
00084 
00085     void Start();
00086     void Stop();
00087 
00088 protected:
00089     wxExtCmdWizardPage1* m_pPage1;
00090     wxExtCmdWizardPage2* m_pPage2;
00091 };
00092 
00093 
00094 // ----------------------------------------------------------------------------
00095 // wxExtCmdWizardPage1
00096 // ----------------------------------------------------------------------------
00097 
00098 class wxExtCmdWizardPage1: public wxWizardPageSimple
00099 {    
00100     DECLARE_DYNAMIC_CLASS( wxExtCmdWizardPage1 )
00101     DECLARE_EVENT_TABLE()
00102 
00103 public:
00105     wxExtCmdWizardPage1( );
00106 
00107     wxExtCmdWizardPage1( wxWizard* parent, const wxString &name );
00108 
00110     bool Create( wxWizard* parent, const wxString &name );
00111 
00113     void CreateControls();
00114 
00115     wxExtCmdOptionsPanel *GetPanel()
00116         { return m_pPanel; }
00117 
00118 protected:
00119 
00120     wxExtCmdOptionsPanel *m_pPanel;
00121 };
00122 
00123 
00124 
00125 // ----------------------------------------------------------------------------
00126 // wxExtCmdWizardPage2
00127 // ----------------------------------------------------------------------------
00128 
00129 class wxExtCmdWizardPage2: public wxWizardPageSimple
00130 {    
00131     DECLARE_DYNAMIC_CLASS( wxExtCmdWizardPage2 )
00132     DECLARE_EVENT_TABLE()
00133 
00134 public:
00136     wxExtCmdWizardPage2( );
00137 
00138     wxExtCmdWizardPage2( wxWizard* parent, const wxString &name );
00139 
00141     bool Create( wxWizard* parent, const wxString &name );
00142 
00144     void CreateControls();
00145 
00146     wxExtCmdProgressPanel *GetPanel()
00147         { return m_pPanel; }
00148 
00149 protected:
00150 
00151     wxExtCmdProgressPanel *m_pPanel;
00152 };
00153 
00154 #endif
00155     // _PMEXTCMDDLG2_H_

Generated on Thu Feb 1 22:14:30 2007 for wxWidgets Package Manager by  doxygen 1.5.1-p1