- MGR: fix the terms of use wizard page.

clientgui/
        TermsOfUsePage.cpp

svn path=/trunk/boinc/; revision=16657
This commit is contained in:
Rom Walton 2008-12-09 15:25:47 +00:00
parent 2d76d20359
commit 208a6ec120
2 changed files with 23 additions and 6 deletions

View File

@ -9985,3 +9985,9 @@ Charlie 9 Dec 2008
sg_ViewTabPage.cpp sg_ViewTabPage.cpp
common/ common/
wxFlatNotebook.cpp wxFlatNotebook.cpp
Rom 9 Dec 2008
- MGR: fix the terms of use wizard page.
clientgui/
TermsOfUsePage.cpp

View File

@ -82,6 +82,7 @@ bool CTermsOfUsePage::Create( CBOINCBaseWizard* parent )
m_pTermsOfUseCtrl = NULL; m_pTermsOfUseCtrl = NULL;
m_pAgreeCtrl = NULL; m_pAgreeCtrl = NULL;
m_pDisagreeCtrl = NULL; m_pDisagreeCtrl = NULL;
m_bUserAgrees = false;
////@end CTermsOfUsePage member initialisation ////@end CTermsOfUsePage member initialisation
////@begin CTermsOfUsePage creation ////@begin CTermsOfUsePage creation
@ -219,15 +220,19 @@ void CTermsOfUsePage::OnPageChanged( wxWizardExEvent& event ) {
m_pTermsOfUseCtrl->SetValue( m_pTermsOfUseCtrl->SetValue(
wxString(pc.terms_of_use.c_str(), wxConvUTF8) wxString(pc.terms_of_use.c_str(), wxConvUTF8)
); );
m_pTermsOfUseCtrl->SetSelection(0, 0); m_pTermsOfUseCtrl->SetSelection(0,0);
m_pAgreeCtrl->SetLabel( m_pAgreeCtrl->SetLabel(
_("I agree to the terms of use.") _("I agree to the terms of use.")
); );
m_pAgreeCtrl->SetValue(false);
m_pDisagreeCtrl->SetLabel( m_pDisagreeCtrl->SetLabel(
_("I do not agree to the terms of use.") _("I do not agree with the terms of use.")
); );
m_pDisagreeCtrl->SetValue(true);
SetUserAgrees(false);
Fit(); Fit();
} }
@ -244,15 +249,21 @@ void CTermsOfUsePage::OnCancel( wxWizardExEvent& event ) {
* wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_TERMSOFUSEAGREECTRL * wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_TERMSOFUSEAGREECTRL
*/ */
void CTermsOfUsePage::OnAgree( wxCommandEvent& /* event */ ) { void CTermsOfUsePage::OnAgree( wxCommandEvent& event ) {
if (event.IsChecked()){
wxLogTrace(wxT("Function Status"), wxT("CTermsOfUsePage::OnAgree - SetUserAgrees(true)"));
SetUserAgrees(true); SetUserAgrees(true);
}
} }
/*! /*!
* wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_TERMSOFUSEDISAGREECTRL * wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_TERMSOFUSEDISAGREECTRL
*/ */
void CTermsOfUsePage::OnDisagree( wxCommandEvent& /* event */ ) { void CTermsOfUsePage::OnDisagree( wxCommandEvent& event ) {
if (event.IsChecked()) {
wxLogTrace(wxT("Function Status"), wxT("CTermsOfUsePage::OnDisagree - SetUserAgrees(false)"));
SetUserAgrees(false); SetUserAgrees(false);
}
} }