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

« back to all changes in this revision

Viewing changes to clientgui/AccountManagerInfoPage.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_ACCOUNTMANAGERINFOPAGE_H_
21
 
#define _WIZ_ACCOUNTMANAGERINFOPAGE_H_
22
 
 
23
 
#if defined(__GNUG__) && !defined(__APPLE__)
24
 
#pragma interface "AccountManagerInfoPage.cpp"
25
 
#endif
26
 
 
27
 
/*!
28
 
 * CAccountManagerInfoPage class declaration
29
 
 */
30
 
 
31
 
class CAccountManagerInfoPage: public wxWizardPageEx
32
 
{    
33
 
    DECLARE_DYNAMIC_CLASS( CAccountManagerInfoPage )
34
 
    DECLARE_EVENT_TABLE()
35
 
 
36
 
public:
37
 
    /// Constructors
38
 
    CAccountManagerInfoPage( );
39
 
 
40
 
    CAccountManagerInfoPage( CBOINCBaseWizard* parent );
41
 
 
42
 
    /// Creation
43
 
    bool Create( CBOINCBaseWizard* parent );
44
 
 
45
 
    /// Creates the controls and sizers
46
 
    void CreateControls();
47
 
 
48
 
////@begin CAccountManagerInfoPage event handler declarations
49
 
 
50
 
    /// wxEVT_WIZARD_PAGE_CHANGED event handler for ID_ACCOUNTMANAGERINFOPAGE
51
 
    void OnPageChanged( wxWizardExEvent& event );
52
 
 
53
 
    /// wxEVT_WIZARD_PAGE_CHANGING event handler for ID_ACCOUNTMANAGERINFOPAGE
54
 
    void OnPageChanging( wxWizardExEvent& event );
55
 
 
56
 
    /// wxEVT_WIZARD_CANCEL event handler for ID_ACCOUNTMANAGERINFOPAGE
57
 
    void OnCancel( wxWizardExEvent& event );
58
 
 
59
 
////@end CAccountManagerInfoPage event handler declarations
60
 
 
61
 
////@begin CAccountManagerInfoPage member function declarations
62
 
 
63
 
    /// Gets the previous page.
64
 
    virtual wxWizardPageEx* GetPrev() const;
65
 
 
66
 
    /// Gets the next page.
67
 
    virtual wxWizardPageEx* GetNext() const;
68
 
 
69
 
    wxString GetProjectURL() const { return m_strProjectURL ; }
70
 
    void SetProjectURL(wxString value) { m_strProjectURL = value ; }
71
 
 
72
 
    /// Retrieves bitmap resources
73
 
    wxBitmap GetBitmapResource( const wxString& name );
74
 
 
75
 
    /// Retrieves icon resources
76
 
    wxIcon GetIconResource( const wxString& name );
77
 
////@end CAccountManagerInfoPage member function declarations
78
 
 
79
 
    /// Should we show tooltips?
80
 
    static bool ShowToolTips();
81
 
 
82
 
////@begin CAccountManagerInfoPage member variables
83
 
    wxStaticText* m_pTitleStaticCtrl;
84
 
    wxStaticText* m_pDescriptionStaticCtrl;
85
 
    wxStaticText* m_pDescription2StaticCtrl;
86
 
    wxStaticText* m_pProjectUrlStaticCtrl;
87
 
    wxTextCtrl* m_pProjectUrlCtrl;
88
 
    wxStaticText* m_pBOINCPromoStaticCtrl;
89
 
    wxHyperLink* m_pBOINCPromoUrlCtrl;
90
 
    wxString m_strProjectURL;
91
 
////@end CAccountManagerInfoPage member variables
92
 
};
93
 
 
94
 
#endif // _WIZ_ACCOUNTMANAGERINFOPAGE_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_ACCOUNTMANAGERINFOPAGE_H_
 
19
#define _WIZ_ACCOUNTMANAGERINFOPAGE_H_
 
20
 
 
21
#if defined(__GNUG__) && !defined(__APPLE__)
 
22
#pragma interface "AccountManagerInfoPage.cpp"
 
23
#endif
 
24
 
 
25
class CProjectListCtrl;
 
26
class ProjectListCtrlEvent;
 
27
 
 
28
/*!
 
29
 * CAccountManagerInfoPage class declaration
 
30
 */
 
31
 
 
32
class CAccountManagerInfoPage: public wxWizardPageEx
 
33
{    
 
34
    DECLARE_DYNAMIC_CLASS( CAccountManagerInfoPage )
 
35
    DECLARE_EVENT_TABLE()
 
36
 
 
37
public:
 
38
    /// Constructors
 
39
    CAccountManagerInfoPage( );
 
40
 
 
41
    CAccountManagerInfoPage( CBOINCBaseWizard* parent );
 
42
 
 
43
    /// Creation
 
44
    bool Create( CBOINCBaseWizard* parent );
 
45
 
 
46
    /// Creates the controls and sizers
 
47
    void CreateControls();
 
48
 
 
49
////@begin CAccountManagerInfoPage event handler declarations
 
50
 
 
51
    /// wxEVT_WIZARD_PAGE_CHANGED event handler for ID_ACCOUNTMANAGERINFOPAGE
 
52
    void OnPageChanged( wxWizardExEvent& event );
 
53
 
 
54
    /// wxEVT_WIZARD_PAGE_CHANGING event handler for ID_ACCOUNTMANAGERINFOPAGE
 
55
    void OnPageChanging( wxWizardExEvent& event );
 
56
 
 
57
    /// wxEVT_PROJECTLIST_ITEM_CHANGE event handler for ID_PROJECTSELECTIONCTRL
 
58
    void OnProjectItemChange( ProjectListCtrlEvent& event );
 
59
 
 
60
    /// wxEVT_PROJECTLIST_ITEM_DISPLAY event handler for ID_PROJECTSELECTIONCTRL
 
61
    void OnProjectItemDisplay( ProjectListCtrlEvent& event );
 
62
 
 
63
    /// wxEVT_WIZARD_CANCEL event handler for ID_ACCOUNTMANAGERINFOPAGE
 
64
    void OnCancel( wxWizardExEvent& event );
 
65
 
 
66
////@end CAccountManagerInfoPage event handler declarations
 
67
 
 
68
////@begin CAccountManagerInfoPage 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 GetProjectURL() const { return m_strProjectURL ; }
 
77
    void SetProjectURL(wxString value) { m_strProjectURL = value ; }
 
78
 
 
79
    bool GetProjectSupported() const { return m_bProjectSupported ; }
 
80
    void SetProjectSupported(bool value) { m_bProjectSupported = value ; }
 
81
 
 
82
    /// Retrieves bitmap resources
 
83
    wxBitmap GetBitmapResource( const wxString& name );
 
84
 
 
85
    /// Retrieves icon resources
 
86
    wxIcon GetIconResource( const wxString& name );
 
87
////@end CAccountManagerInfoPage member function declarations
 
88
 
 
89
    /// Should we show tooltips?
 
90
    static bool ShowToolTips();
 
91
 
 
92
////@begin CAccountManagerInfoPage member variables
 
93
    wxStaticText* m_pTitleStaticCtrl;
 
94
    wxStaticText* m_pDescriptionStaticCtrl;
 
95
    CProjectListCtrl* m_pProjectListCtrl;
 
96
    wxStaticText* m_pProjectUrlStaticCtrl;
 
97
    wxTextCtrl* m_pProjectUrlCtrl;
 
98
////@end CAccountManagerInfoPage member variables
 
99
    wxString m_strProjectURL;
 
100
    bool m_bProjectSupported;
 
101
    bool m_bAccountManagerListPopulated;
 
102
};
 
103
 
 
104
#endif // _WIZ_ACCOUNTMANAGERINFOPAGE_H_