void CTermsOfUsePage::OnTermsOfUseStatusChange( wxCommandEvent& event ) { wxLogTrace(wxT("Function Start/End"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - Function Begin")); if ((ID_TERMSOFUSEAGREECTRL == event.GetId()) && event.IsChecked()){ wxLogTrace(wxT("Function Status"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - SetUserAgrees(true)")); SetUserAgrees(true); } else { wxLogTrace(wxT("Function Status"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - SetUserAgrees(false)")); SetUserAgrees(false); } wxLogTrace(wxT("Function Start/End"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - Function End")); }
void CTermsOfUsePage::OnTermsOfUseStatusChange( wxCommandEvent& event ) { wxLogTrace(wxT("Function Start/End"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - Function Begin")); if ((ID_TERMSOFUSEAGREECTRL == event.GetId()) && event.IsChecked()){ wxLogTrace(wxT("Function Status"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - SetUserAgrees(true)")); SetUserAgrees(true); ((CWizardAttach*)GetParent())->EnableNextButton(); } else { wxLogTrace(wxT("Function Status"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - SetUserAgrees(false)")); SetUserAgrees(false); ((CWizardAttach*)GetParent())->DisableNextButton(); } wxLogTrace(wxT("Function Start/End"), wxT("CTermsOfUsePage::OnTermsOfUseStatusChange - Function End")); }
void CTermsOfUsePage::OnPageChanged( wxWizardExEvent& event ) { if (event.GetDirection() == false) return; PROJECT_CONFIG& pc = ((CBOINCBaseWizard*)GetParent())->project_config; wxASSERT(m_pTitleStaticCtrl); wxASSERT(m_pDirectionsStaticCtrl); m_pTitleStaticCtrl->SetLabel( _("Terms of Use") ); m_pDirectionsStaticCtrl->SetLabel( _("Please read the following terms of use:") ); m_pTermsOfUseCtrl->SetValue( wxString(pc.terms_of_use.c_str(), wxConvUTF8) ); m_pTermsOfUseCtrl->SetSelection(0,0); m_pAgreeCtrl->SetLabel( _("I agree to the terms of use.") ); m_pAgreeCtrl->SetValue(false); m_pDisagreeCtrl->SetLabel( _("I do not agree with the terms of use.") ); m_pDisagreeCtrl->SetValue(true); SetUserAgrees(false); Fit(); }