~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to clientgui/AccountInfoPage.h

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Berkeley Open Infrastructure for Network Computing
2
 
// http://boinc.berkeley.edu
3
 
// Copyright (C) 2005 University of California
4
 
//
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.
9
 
//
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.
14
 
//
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
19
 
//
20
 
#ifndef _WIZ_ACCOUNTINFOPAGE_H_
21
 
#define _WIZ_ACCOUNTINFOPAGE_H_
22
 
 
23
 
#if defined(__GNUG__) && !defined(__APPLE__)
24
 
#pragma interface "AccountInfoPage.cpp"
25
 
#endif
26
 
 
27
 
 
28
 
/*!
29
 
 * CAccountInfoPage class declaration
30
 
 */
31
 
 
32
 
class CAccountInfoPage: public wxWizardPageEx
33
 
{    
34
 
    DECLARE_DYNAMIC_CLASS( CAccountInfoPage )
35
 
    DECLARE_EVENT_TABLE()
36
 
 
37
 
public:
38
 
    /// Constructors
39
 
    CAccountInfoPage( );
40
 
 
41
 
    CAccountInfoPage( CBOINCBaseWizard* parent );
42
 
 
43
 
    /// Creation
44
 
    bool Create( CBOINCBaseWizard* parent );
45
 
 
46
 
    /// Creates the controls and sizers
47
 
    void CreateControls();
48
 
 
49
 
////@begin CAccountInfoPage event handler declarations
50
 
 
51
 
    /// wxEVT_WIZARD_PAGE_CHANGED event handler for ID_ACCOUNTINFOPAGE
52
 
    void OnPageChanged( wxWizardExEvent& event );
53
 
 
54
 
    /// wxEVT_WIZARD_PAGE_CHANGING event handler for ID_ACCOUNTINFOPAGE
55
 
    void OnPageChanging( wxWizardExEvent& event );
56
 
 
57
 
    /// wxEVT_WIZARD_CANCEL event handler for ID_ACCOUNTINFOPAGE
58
 
    void OnCancel( wxWizardExEvent& event );
59
 
 
60
 
    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTCREATECTRL
61
 
    void OnAccountCreateCtrlSelected( wxCommandEvent& event );
62
 
 
63
 
    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTUSEEXISTINGCTRL
64
 
    void OnAccountUseExistingCtrlSelected( wxCommandEvent& event );
65
 
 
66
 
////@end CAccountInfoPage event handler declarations
67
 
 
68
 
////@begin CAccountInfoPage member function declarations
69
 
 
70
 
    /// Gets the previous page.
71
 
    virtual wxWizardPageEx* GetPrev() const;
72
 
 
73
 
    /// Gets the next page.
74
 
    virtual wxWizardPageEx* GetNext() const;
75
 
 
76
 
    wxString GetAccountEmailAddress() const { return m_strAccountEmailAddress ; }
77
 
    void SetAccountEmailAddress(wxString value) { m_strAccountEmailAddress = value ; }
78
 
 
79
 
    wxString GetAccountPassword() const { return m_strAccountPassword ; }
80
 
    void SetAccountPassword(wxString value) { m_strAccountPassword = value ; }
81
 
 
82
 
    wxString GetAccountConfirmPassword() const { return m_strAccountConfirmPassword ; }
83
 
    void SetAccountConfirmPassword(wxString value) { m_strAccountConfirmPassword = value ; }
84
 
 
85
 
    /// Retrieves bitmap resources
86
 
    wxBitmap GetBitmapResource( const wxString& name );
87
 
 
88
 
    /// Retrieves icon resources
89
 
    wxIcon GetIconResource( const wxString& name );
90
 
////@end CAccountInfoPage member function declarations
91
 
 
92
 
    /// Should we show tooltips?
93
 
    static bool ShowToolTips();
94
 
 
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
113
 
};
114
 
 
115
 
#endif // _WIZ_ACCOUNTINFOPAGE_H_
 
1
// This file is part of BOINC.
 
2
// http://boinc.berkeley.edu
 
3
// Copyright (C) 2008 University of California
 
4
//
 
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.
 
9
//
 
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.
 
14
//
 
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/>.
 
17
//
 
18
#ifndef _WIZ_ACCOUNTINFOPAGE_H_
 
19
#define _WIZ_ACCOUNTINFOPAGE_H_
 
20
 
 
21
#if defined(__GNUG__) && !defined(__APPLE__)
 
22
#pragma interface "AccountInfoPage.cpp"
 
23
#endif
 
24
 
 
25
 
 
26
/*!
 
27
 * CAccountInfoPage class declaration
 
28
 */
 
29
 
 
30
class CAccountInfoPage: public wxWizardPageEx
 
31
{    
 
32
    DECLARE_DYNAMIC_CLASS( CAccountInfoPage )
 
33
    DECLARE_EVENT_TABLE()
 
34
 
 
35
public:
 
36
    /// Constructors
 
37
    CAccountInfoPage( );
 
38
 
 
39
    CAccountInfoPage( CBOINCBaseWizard* parent );
 
40
 
 
41
    /// Creation
 
42
    bool Create( CBOINCBaseWizard* parent );
 
43
 
 
44
    /// Creates the controls and sizers
 
45
    void CreateControls();
 
46
 
 
47
////@begin CAccountInfoPage event handler declarations
 
48
 
 
49
    /// wxEVT_WIZARD_PAGE_CHANGED event handler for ID_ACCOUNTINFOPAGE
 
50
    void OnPageChanged( wxWizardExEvent& event );
 
51
 
 
52
    /// wxEVT_WIZARD_PAGE_CHANGING event handler for ID_ACCOUNTINFOPAGE
 
53
    void OnPageChanging( wxWizardExEvent& event );
 
54
 
 
55
    /// wxEVT_WIZARD_CANCEL event handler for ID_ACCOUNTINFOPAGE
 
56
    void OnCancel( wxWizardExEvent& event );
 
57
 
 
58
    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTCREATECTRL
 
59
    void OnAccountCreateCtrlSelected( wxCommandEvent& event );
 
60
 
 
61
    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_ACCOUNTUSEEXISTINGCTRL
 
62
    void OnAccountUseExistingCtrlSelected( wxCommandEvent& event );
 
63
 
 
64
////@end CAccountInfoPage event handler declarations
 
65
 
 
66
////@begin CAccountInfoPage member function declarations
 
67
 
 
68
    /// Gets the previous page.
 
69
    virtual wxWizardPageEx* GetPrev() const;
 
70
 
 
71
    /// Gets the next page.
 
72
    virtual wxWizardPageEx* GetNext() const;
 
73
 
 
74
    wxString GetAccountEmailAddress() const { return m_strAccountEmailAddress ; }
 
75
    void SetAccountEmailAddress(wxString value) { m_strAccountEmailAddress = value ; }
 
76
 
 
77
    wxString GetAccountPassword() const { return m_strAccountPassword ; }
 
78
    void SetAccountPassword(wxString value) { m_strAccountPassword = value ; }
 
79
 
 
80
    wxString GetAccountConfirmPassword() const { return m_strAccountConfirmPassword ; }
 
81
    void SetAccountConfirmPassword(wxString value) { m_strAccountConfirmPassword = value ; }
 
82
 
 
83
    wxString GetAccountUsername() const { return m_strAccountUsername ; }
 
84
    void SetAccountUsername(wxString value) { m_strAccountUsername = value ; }
 
85
 
 
86
    /// Retrieves bitmap resources
 
87
    wxBitmap GetBitmapResource( const wxString& name );
 
88
 
 
89
    /// Retrieves icon resources
 
90
    wxIcon GetIconResource( const wxString& name );
 
91
////@end CAccountInfoPage member function declarations
 
92
 
 
93
    /// Should we show tooltips?
 
94
    static bool ShowToolTips();
 
95
 
 
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
 
120
};
 
121
 
 
122
#endif // _WIZ_ACCOUNTINFOPAGE_H_