~blueyed/boinc/pkg-boinc

« back to all changes in this revision

Viewing changes to clientgui/WelcomePage.h

  • Committer: Gianfranco Costamagna
  • Date: 2015-06-01 08:25:44 UTC
  • mfrom: (427.2.59)
  • Revision ID: git-v1:c1f6d27b3ed47811d2c36f9f221a23a222ed0cbd
Merge tag 'upstream/7.6.2+dfsg'

Upstream version 7.6.2+dfsg

Conflicts:
        .gitignore

Show diffs side-by-side

added added

removed removed

Lines of Context:
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_WELCOMEPAGE_H_
19
 
#define _WIZ_WELCOMEPAGE_H_
20
 
 
21
 
#if defined(__GNUG__) && !defined(__APPLE__)
22
 
#pragma interface "WelcomePage.cpp"
23
 
#endif
24
 
 
25
 
/*!
26
 
 * CWelcomePage class declaration
27
 
 */
28
 
 
29
 
class CWelcomePage: public wxWizardPageEx
30
 
{    
31
 
    DECLARE_DYNAMIC_CLASS( CWelcomePage )
32
 
    DECLARE_EVENT_TABLE()
33
 
 
34
 
public:
35
 
    /// Constructors
36
 
    CWelcomePage( );
37
 
 
38
 
    CWelcomePage( CBOINCBaseWizard* parent );
39
 
 
40
 
    /// Creation
41
 
    bool Create( CBOINCBaseWizard* parent );
42
 
 
43
 
    /// Creates the controls and sizers
44
 
    void CreateControls();
45
 
 
46
 
////@begin CWelcomePage event handler declarations
47
 
 
48
 
    /// wxEVT_WIZARD_PAGE_CHANGED event handler for ID_WELCOMEPAGE
49
 
    void OnPageChanged( wxWizardExEvent& event );
50
 
 
51
 
    /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for
52
 
    ///   ID_WELCOMESELECTWIZARDPROJECT or ID_WELCOMESELECTWIZARDACCOUNTMGR
53
 
    void OnWizardSelectionChanged( wxCommandEvent& event );
54
 
 
55
 
    /// wxEVT_WIZARD_CANCEL event handler for ID_WELCOMEPAGE
56
 
    void OnCancel( wxWizardExEvent& event );
57
 
 
58
 
////@end CWelcomePage event handler declarations
59
 
 
60
 
////@begin CWelcomePage member function declarations
61
 
 
62
 
    /// Logic to handle when the user chooses to change World Community Grid projects selected
63
 
    void OpenWorldCommunityGridProjectsPage() const;
64
 
 
65
 
    /// Gets the previous page.
66
 
    virtual wxWizardPageEx* GetPrev() const;
67
 
 
68
 
    /// Gets the next page.
69
 
    virtual wxWizardPageEx* GetNext() const;
70
 
 
71
 
    /// Retrieves bitmap resources
72
 
    wxBitmap GetBitmapResource( const wxString& name );
73
 
 
74
 
    /// Retrieves icon resources
75
 
    wxIcon GetIconResource( const wxString& name );
76
 
 
77
 
////@end CWelcomePage member function declarations
78
 
 
79
 
    /// Should we show tooltips?
80
 
    static bool ShowToolTips();
81
 
 
82
 
    // Determine if this the WCG branded version of the client
83
 
    // and connected to WCG.
84
 
    bool isWCGClient();
85
 
 
86
 
////@begin CWelcomePage member variables
87
 
    wxStaticText* m_pTitleStaticCtrl;
88
 
    wxStaticText* m_pDescriptionStaticCtrl;
89
 
    wxStaticText* m_pDirectionsStaticCtrl;
90
 
    wxRadioButton* m_pAttachToProjectCtrl;
91
 
    wxRadioButton* m_pAttachToAccountManagerCtrl;
92
 
        wxRadioButton* m_pChangeApplicationsCtrl;
93
 
////@end CWelcomePage member variables
94
 
};
95
 
 
96
 
#endif // _WIZ_WELCOMEPAGE_H_