1
// Berkeley Open Infrastructure for Network Computing
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2005 University of California
5
// This is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation;
8
// either version 2.1 of the License, or (at your option) any later version.
10
// This software is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
// See the GNU Lesser General Public License for more details.
15
// To view the GNU Lesser General Public License visit
16
// http://www.gnu.org/copyleft/lesser.html
17
// or write to the Free Software Foundation, Inc.,
18
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef _WIZ_ACCOUNTINFOPAGE_H_
21
#define _WIZ_ACCOUNTINFOPAGE_H_
23
#if defined(__GNUG__) && !defined(__APPLE__)
24
#pragma interface "AccountInfoPage.cpp"
29
* CAccountInfoPage class declaration
32
class CAccountInfoPage: public wxWizardPageEx
34
DECLARE_DYNAMIC_CLASS( CAccountInfoPage )
41
CAccountInfoPage( CBOINCBaseWizard* parent );
44
bool Create( CBOINCBaseWizard* parent );
46
/// Creates the controls and sizers
47
void CreateControls();
49
////@begin CAccountInfoPage event handler declarations
51
/// wxEVT_WIZARD_PAGE_CHANGED event handler for ID_ACCOUNTINFOPAGE
52
void OnPageChanged( wxWizardExEvent& event );
54
/// wxEVT_WIZARD_PAGE_CHANGING event handler for ID_ACCOUNTINFOPAGE
55
void OnPageChanging( wxWizardExEvent& event );
57
/// wxEVT_WIZARD_CANCEL event handler for ID_ACCOUNTINFOPAGE
58
void OnCancel( wxWizardExEvent& event );
60
/// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTCREATECTRL
61
void OnAccountCreateCtrlSelected( wxCommandEvent& event );
63
/// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTUSEEXISTINGCTRL
64
void OnAccountUseExistingCtrlSelected( wxCommandEvent& event );
66
////@end CAccountInfoPage event handler declarations
68
////@begin CAccountInfoPage member function declarations
70
/// Gets the previous page.
71
virtual wxWizardPageEx* GetPrev() const;
73
/// Gets the next page.
74
virtual wxWizardPageEx* GetNext() const;
76
wxString GetAccountEmailAddress() const { return m_strAccountEmailAddress ; }
77
void SetAccountEmailAddress(wxString value) { m_strAccountEmailAddress = value ; }
79
wxString GetAccountPassword() const { return m_strAccountPassword ; }
80
void SetAccountPassword(wxString value) { m_strAccountPassword = value ; }
82
wxString GetAccountConfirmPassword() const { return m_strAccountConfirmPassword ; }
83
void SetAccountConfirmPassword(wxString value) { m_strAccountConfirmPassword = value ; }
85
/// Retrieves bitmap resources
86
wxBitmap GetBitmapResource( const wxString& name );
88
/// Retrieves icon resources
89
wxIcon GetIconResource( const wxString& name );
90
////@end CAccountInfoPage member function declarations
92
/// Should we show tooltips?
93
static bool ShowToolTips();
95
////@begin CAccountInfoPage member variables
96
wxStaticText* m_pTitleStaticCtrl;
97
wxStaticText* m_pAccountQuestionStaticCtrl;
98
wxRadioButton* m_pAccountCreateCtrl;
99
wxRadioButton* m_pAccountUseExistingCtrl;
100
wxStaticText* m_pAccountInformationStaticCtrl;
101
wxStaticText* m_pAccountEmailAddressStaticCtrl;
102
wxTextCtrl* m_pAccountEmailAddressCtrl;
103
wxStaticText* m_pAccountPasswordStaticCtrl;
104
wxTextCtrl* m_pAccountPasswordCtrl;
105
wxStaticText* m_pAccountConfirmPasswordStaticCtrl;
106
wxTextCtrl* m_pAccountConfirmPasswordCtrl;
107
wxStaticText* m_pAccountPasswordRequirmentsStaticCtrl;
108
wxString m_strAccountEmailAddress;
109
wxString m_strAccountPassword;
110
wxString m_strAccountConfirmPassword;
111
wxHyperLink* m_pAccountForgotPasswordCtrl;
112
////@end CAccountInfoPage member variables
115
#endif // _WIZ_ACCOUNTINFOPAGE_H_
1
// This file is part of BOINC.
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2008 University of California
5
// BOINC is free software; you can redistribute it and/or modify it
6
// under the terms of the GNU Lesser General Public License
7
// as published by the Free Software Foundation,
8
// either version 3 of the License, or (at your option) any later version.
10
// BOINC is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
// See the GNU Lesser General Public License for more details.
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
18
#ifndef _WIZ_ACCOUNTINFOPAGE_H_
19
#define _WIZ_ACCOUNTINFOPAGE_H_
21
#if defined(__GNUG__) && !defined(__APPLE__)
22
#pragma interface "AccountInfoPage.cpp"
27
* CAccountInfoPage class declaration
30
class CAccountInfoPage: public wxWizardPageEx
32
DECLARE_DYNAMIC_CLASS( CAccountInfoPage )
39
CAccountInfoPage( CBOINCBaseWizard* parent );
42
bool Create( CBOINCBaseWizard* parent );
44
/// Creates the controls and sizers
45
void CreateControls();
47
////@begin CAccountInfoPage event handler declarations
49
/// wxEVT_WIZARD_PAGE_CHANGED event handler for ID_ACCOUNTINFOPAGE
50
void OnPageChanged( wxWizardExEvent& event );
52
/// wxEVT_WIZARD_PAGE_CHANGING event handler for ID_ACCOUNTINFOPAGE
53
void OnPageChanging( wxWizardExEvent& event );
55
/// wxEVT_WIZARD_CANCEL event handler for ID_ACCOUNTINFOPAGE
56
void OnCancel( wxWizardExEvent& event );
58
/// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTCREATECTRL
59
void OnAccountCreateCtrlSelected( wxCommandEvent& event );
61
/// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTUSEEXISTINGCTRL
62
void OnAccountUseExistingCtrlSelected( wxCommandEvent& event );
64
////@end CAccountInfoPage event handler declarations
66
////@begin CAccountInfoPage member function declarations
68
/// Gets the previous page.
69
virtual wxWizardPageEx* GetPrev() const;
71
/// Gets the next page.
72
virtual wxWizardPageEx* GetNext() const;
74
wxString GetAccountEmailAddress() const { return m_strAccountEmailAddress ; }
75
void SetAccountEmailAddress(wxString value) { m_strAccountEmailAddress = value ; }
77
wxString GetAccountPassword() const { return m_strAccountPassword ; }
78
void SetAccountPassword(wxString value) { m_strAccountPassword = value ; }
80
wxString GetAccountConfirmPassword() const { return m_strAccountConfirmPassword ; }
81
void SetAccountConfirmPassword(wxString value) { m_strAccountConfirmPassword = value ; }
83
wxString GetAccountUsername() const { return m_strAccountUsername ; }
84
void SetAccountUsername(wxString value) { m_strAccountUsername = value ; }
86
/// Retrieves bitmap resources
87
wxBitmap GetBitmapResource( const wxString& name );
89
/// Retrieves icon resources
90
wxIcon GetIconResource( const wxString& name );
91
////@end CAccountInfoPage member function declarations
93
/// Should we show tooltips?
94
static bool ShowToolTips();
96
////@begin CAccountInfoPage member variables
97
wxStaticText* m_pTitleStaticCtrl;
98
wxStaticText* m_pCookieDetectionFailedStaticCtrl;
99
wxHyperlinkCtrl* m_pCookieDetectionFailedCtrl;
100
wxStaticText* m_pAccountQuestionStaticCtrl;
101
wxRadioButton* m_pAccountCreateCtrl;
102
wxRadioButton* m_pAccountUseExistingCtrl;
103
wxStaticText* m_pAccountInformationStaticCtrl;
104
wxStaticText* m_pAccountEmailAddressStaticCtrl;
105
wxTextCtrl* m_pAccountEmailAddressCtrl;
106
wxStaticText* m_pAccountUsernameStaticCtrl;
107
wxTextCtrl* m_pAccountUsernameCtrl;
108
wxStaticText* m_pAccountPasswordStaticCtrl;
109
wxTextCtrl* m_pAccountPasswordCtrl;
110
wxStaticText* m_pAccountConfirmPasswordStaticCtrl;
111
wxTextCtrl* m_pAccountConfirmPasswordCtrl;
112
wxStaticText* m_pAccountPasswordRequirmentsStaticCtrl;
113
wxStaticText* m_pAccountManagerLinkLabelStaticCtrl;
114
wxHyperlinkCtrl* m_pAccountForgotPasswordCtrl;
115
wxString m_strAccountEmailAddress;
116
wxString m_strAccountUsername;
117
wxString m_strAccountPassword;
118
wxString m_strAccountConfirmPassword;
119
////@end CAccountInfoPage member variables
122
#endif // _WIZ_ACCOUNTINFOPAGE_H_