mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=8225
This commit is contained in:
parent
941d7e21d8
commit
8efb4fe5bd
|
@ -18,7 +18,7 @@
|
|||
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
//
|
||||
#if defined(__GNUG__) && !defined(__APPLE__)
|
||||
#pragma implementation "AlreadyExistsPage.h"
|
||||
#pragma implementation "BOINCBaseWizard.h"
|
||||
#endif
|
||||
|
||||
#include "stdwx.h"
|
||||
|
@ -103,6 +103,11 @@ wxWizardPageEx* CBOINCBaseWizard::_PushPageTransition( wxWizardPageEx* pCurrentP
|
|||
/*!
|
||||
* Process Cancel Event
|
||||
*/
|
||||
bool CBOINCBaseWizard::IsCancelInProgress() const
|
||||
{
|
||||
return m_bCancelInProgress;
|
||||
}
|
||||
|
||||
void CBOINCBaseWizard::ProcessCancelEvent( wxWizardExEvent& event )
|
||||
{
|
||||
_ProcessCancelEvent( event );
|
||||
|
@ -116,6 +121,10 @@ void CBOINCBaseWizard::_ProcessCancelEvent( wxWizardExEvent& event )
|
|||
* Button Controls
|
||||
*/
|
||||
|
||||
wxButton* CBOINCBaseWizard::GetNextButton() const {
|
||||
return m_btnNext;
|
||||
}
|
||||
|
||||
void CBOINCBaseWizard::SimulateNextButton() {
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_btnNext->GetId());
|
||||
event.SetEventObject(GetNextButton());
|
||||
|
@ -130,6 +139,10 @@ void CBOINCBaseWizard::DisableNextButton() {
|
|||
m_btnNext->Disable();
|
||||
}
|
||||
|
||||
wxButton* CBOINCBaseWizard::GetBackButton() const {
|
||||
return m_btnPrev;
|
||||
}
|
||||
|
||||
void CBOINCBaseWizard::SimulateBackButton() {
|
||||
wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, m_btnPrev->GetId());
|
||||
event.SetEventObject(GetNextButton());
|
||||
|
|
|
@ -55,17 +55,17 @@ public:
|
|||
std::stack<wxWizardPageEx*> m_PageTransition;
|
||||
|
||||
/// Cancel Event Infrastructure
|
||||
bool IsCancelInProgress() const { return m_bCancelInProgress ; }
|
||||
bool IsCancelInProgress() const;
|
||||
void ProcessCancelEvent( wxWizardExEvent& event );
|
||||
virtual void _ProcessCancelEvent( wxWizardExEvent& event );
|
||||
bool m_bCancelInProgress;
|
||||
|
||||
/// Button State Infrastructure
|
||||
wxButton* GetNextButton() const { return m_btnNext ; }
|
||||
wxButton* GetNextButton() const;
|
||||
void SimulateNextButton();
|
||||
void EnableNextButton();
|
||||
void DisableNextButton();
|
||||
wxButton* GetBackButton() const { return m_btnPrev ; }
|
||||
wxButton* GetBackButton() const;
|
||||
void SimulateBackButton();
|
||||
void EnableBackButton();
|
||||
void DisableBackButton();
|
||||
|
|
|
@ -67,11 +67,13 @@ END_EVENT_TABLE()
|
|||
* CWizardAccountManager constructors
|
||||
*/
|
||||
|
||||
CWizardAccountManager::CWizardAccountManager( )
|
||||
CWizardAccountManager::CWizardAccountManager() :
|
||||
CBOINCBaseWizard()
|
||||
{
|
||||
}
|
||||
|
||||
CWizardAccountManager::CWizardAccountManager( wxWindow* parent, wxWindowID id, const wxPoint& pos )
|
||||
CWizardAccountManager::CWizardAccountManager( wxWindow* parent, wxWindowID id, const wxPoint& pos ) :
|
||||
CBOINCBaseWizard(parent, id, wxEmptyString, wxNullBitmap, pos, wxDEFAULT_DIALOG_STYLE)
|
||||
{
|
||||
Create(parent, id, pos);
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
const wxBitmap& bitmap = wxNullBitmap,
|
||||
const wxChar* resource = NULL);
|
||||
|
||||
bool Create(wxWizardEx *parent,
|
||||
virtual bool Create(wxWizardEx *parent,
|
||||
const wxBitmap& bitmap = wxNullBitmap,
|
||||
const wxChar* resource = NULL);
|
||||
|
||||
|
@ -176,6 +176,7 @@ public:
|
|||
Init();
|
||||
Create(parent, id, title, bitmap, pos, style);
|
||||
}
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
int id = wxID_ANY,
|
||||
const wxString& title = wxEmptyString,
|
||||
|
|
Loading…
Reference in New Issue