Skip to content

Commit

Permalink
- MGR: Wait until there is valid data in the list box before processing
Browse files Browse the repository at this point in the history
        the OnProjectSelected() event.
        
    clientgui/
        ProjectInfoPage.cpp


svn path=/branches/boinc_core_release_7_0a/; revision=25810
  • Loading branch information
romw committed Jun 27, 2012
1 parent 3d61248 commit a02bc43
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 60 deletions.
28 changes: 18 additions & 10 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -3601,16 +3601,6 @@ Charlie 13 June 2012
client/
coproc_detect.cpp

David 14 June 2012
- client:
- added the definitions for the new Windows 7/2008r2 preSP1
and Windows 8/2012 SKUs based on the winnt.h
from the Windows 8 RC SKD (also added as proof)
- added the detection for some more Windows SKU

client/
hostinfo_win.cpp

Charlie 16 June 2012
- Mac installer: Fix bugs I introduced on May 3 and May 6.

Expand All @@ -3634,6 +3624,23 @@ Charlie 18 June 2012
configure.ac
version.h

Rom 30 May 2012
- MGR: Wait until there is valid data in the list box before processing
the OnProjectSelected() event.

clientgui/
ProjectInfoPage.cpp

David 14 June 2012
- client:
- added the definitions for the new Windows 7/2008r2 preSP1
and Windows 8/2012 SKUs based on the winnt.h
from the Windows 8 RC SKD (also added as proof)
- added the detection for some more Windows SKU

client/
hostinfo_win.cpp

David 18 June 2012
- client: split GPU detection code into separate files

Expand Down Expand Up @@ -3724,6 +3731,7 @@ Charlie 22 June 2012
mac_installer/
release_boinc.sh

<<<<<<< .working
Charlie 26 June 2012
- Mac client: Upgrade to curl 7.26.60 and c-ares 1.9.1.

Expand Down
101 changes: 51 additions & 50 deletions clientgui/ProjectInfoPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,56 +488,57 @@ void CProjectInfoPage::OnProjectCategorySelected( wxCommandEvent& WXUNUSED(event
void CProjectInfoPage::OnProjectSelected( wxCommandEvent& WXUNUSED(event) ) {
wxLogTrace(wxT("Function Start/End"), wxT("CProjectInfoPage::OnProjectSelected - Function Begin"));

CProjectInfo* pProjectInfo = (CProjectInfo*)m_pProjectsCtrl->GetClientData(m_pProjectsCtrl->GetSelection());

wxString strURL = pProjectInfo->m_strURL;
EllipseStringIfNeeded(strURL, m_pProjectDetailsURLCtrl);

// Populate the project details area
wxString desc = pProjectInfo->m_strDescription;
// Change all occurrences of "<sup>n</sup>" to "^n"
desc.Replace(wxT("<sup>"), wxT("^"), true);
desc.Replace(wxT("</sup>"), wxT(""), true);

m_pProjectDetailsDescriptionCtrl->SetValue(desc);
m_pProjectDetailsURLCtrl->SetLabel(strURL);
m_pProjectDetailsURLCtrl->SetURL(pProjectInfo->m_strURL);
// Set tooltip to full text in case ellipsed
m_pProjectDetailsURLCtrl->SetToolTip(pProjectInfo->m_strURL);

m_pProjectDetailsSupportedPlatformWindowsCtrl->Hide();
m_pProjectDetailsSupportedPlatformMacCtrl->Hide();
m_pProjectDetailsSupportedPlatformLinuxCtrl->Hide();
m_pProjectDetailsSupportedPlatformATICtrl->Hide();
m_pProjectDetailsSupportedPlatformNvidiaCtrl->Hide();
m_pProjectDetailsSupportedPlatformOpenCLCtrl->Hide();
m_pProjectDetailsSupportedPlatformMultiCoreCtrl->Hide();
if (pProjectInfo->m_bProjectSupportsWindows) m_pProjectDetailsSupportedPlatformWindowsCtrl->Show();
if (pProjectInfo->m_bProjectSupportsMac) m_pProjectDetailsSupportedPlatformMacCtrl->Show();
if (pProjectInfo->m_bProjectSupportsLinux) m_pProjectDetailsSupportedPlatformLinuxCtrl->Show();
if (pProjectInfo->m_bProjectSupportsCAL) m_pProjectDetailsSupportedPlatformATICtrl->Show();
if (pProjectInfo->m_bProjectSupportsCUDA) m_pProjectDetailsSupportedPlatformNvidiaCtrl->Show();
if (pProjectInfo->m_bProjectSupportsOpenCL) m_pProjectDetailsSupportedPlatformOpenCLCtrl->Show();
if (pProjectInfo->m_bProjectSupportsMulticore) m_pProjectDetailsSupportedPlatformMultiCoreCtrl->Show();

// Populate non-control data for use in other places of the wizard
SetProjectURL( pProjectInfo->m_strURL );
SetProjectSupported( pProjectInfo->m_bSupportedPlatformFound );

TransferDataToWindow();
Layout();

wxString strResearchArea = pProjectInfo->m_strSpecificArea;
EllipseStringIfNeeded(strResearchArea, m_pProjectDetailsResearchAreaCtrl);
m_pProjectDetailsResearchAreaCtrl->SetLabel(strResearchArea);
// Set tooltip to full text in case ellipsed
m_pProjectDetailsResearchAreaCtrl->SetToolTip(pProjectInfo->m_strSpecificArea);

wxString strOrganization = pProjectInfo->m_strOrganization;
EllipseStringIfNeeded(strOrganization, m_pProjectDetailsOrganizationCtrl);
m_pProjectDetailsOrganizationCtrl->SetLabel(strOrganization);
// Set tooltip to full text in case ellipsed
m_pProjectDetailsOrganizationCtrl->SetToolTip(pProjectInfo->m_strOrganization);
if (m_pProjectsCtrl->GetSelection() != wxNOT_FOUND) {

CProjectInfo* pProjectInfo = (CProjectInfo*)m_pProjectsCtrl->GetClientData(m_pProjectsCtrl->GetSelection());

// Populate the project details area
wxString desc = pProjectInfo->m_strDescription;
// Change all occurrences of "<sup>n</sup>" to "^n"
desc.Replace(wxT("<sup>"), wxT("^"), true);
desc.Replace(wxT("</sup>"), wxT(""), true);

m_pProjectDetailsDescriptionCtrl->SetValue(desc);
m_pProjectDetailsURLCtrl->SetLabel(strURL);
m_pProjectDetailsURLCtrl->SetURL(pProjectInfo->m_strURL);
// Set tooltip to full text in case ellipsed
m_pProjectDetailsURLCtrl->SetToolTip(pProjectInfo->m_strURL);

m_pProjectDetailsSupportedPlatformWindowsCtrl->Hide();
m_pProjectDetailsSupportedPlatformMacCtrl->Hide();
m_pProjectDetailsSupportedPlatformLinuxCtrl->Hide();
m_pProjectDetailsSupportedPlatformATICtrl->Hide();
m_pProjectDetailsSupportedPlatformNvidiaCtrl->Hide();
m_pProjectDetailsSupportedPlatformOpenCLCtrl->Hide();
m_pProjectDetailsSupportedPlatformMultiCoreCtrl->Hide();
if (pProjectInfo->m_bProjectSupportsWindows) m_pProjectDetailsSupportedPlatformWindowsCtrl->Show();
if (pProjectInfo->m_bProjectSupportsMac) m_pProjectDetailsSupportedPlatformMacCtrl->Show();
if (pProjectInfo->m_bProjectSupportsLinux) m_pProjectDetailsSupportedPlatformLinuxCtrl->Show();
if (pProjectInfo->m_bProjectSupportsCAL) m_pProjectDetailsSupportedPlatformATICtrl->Show();
if (pProjectInfo->m_bProjectSupportsCUDA) m_pProjectDetailsSupportedPlatformNvidiaCtrl->Show();
if (pProjectInfo->m_bProjectSupportsOpenCL) m_pProjectDetailsSupportedPlatformOpenCLCtrl->Show();
if (pProjectInfo->m_bProjectSupportsMulticore) m_pProjectDetailsSupportedPlatformMultiCoreCtrl->Show();

// Populate non-control data for use in other places of the wizard
SetProjectURL( pProjectInfo->m_strURL );
SetProjectSupported( pProjectInfo->m_bSupportedPlatformFound );

TransferDataToWindow();
Layout();

wxString strResearchArea = pProjectInfo->m_strSpecificArea;
EllipseStringIfNeeded(strResearchArea, m_pProjectDetailsResearchAreaCtrl);
m_pProjectDetailsResearchAreaCtrl->SetLabel(strResearchArea);
// Set tooltip to full text in case ellipsed
m_pProjectDetailsResearchAreaCtrl->SetToolTip(pProjectInfo->m_strSpecificArea);

wxString strOrganization = pProjectInfo->m_strOrganization;
EllipseStringIfNeeded(strOrganization, m_pProjectDetailsOrganizationCtrl);
m_pProjectDetailsOrganizationCtrl->SetLabel(strOrganization);
// Set tooltip to full text in case ellipsed
m_pProjectDetailsOrganizationCtrl->SetToolTip(pProjectInfo->m_strOrganization);

}

wxLogTrace(wxT("Function Start/End"), wxT("CProjectInfoPage::OnProjectSelected - Function End"));
}
Expand Down

0 comments on commit a02bc43

Please sign in to comment.