*** empty log message ***

svn path=/trunk/boinc/; revision=4486
This commit is contained in:
Rom Walton 2004-11-04 06:13:22 +00:00
parent 3bfa5f54b2
commit 2847e116ff
1 changed files with 26 additions and 6 deletions

View File

@ -207,6 +207,7 @@ void CViewWork::OnTaskLinkClicked( const wxHtmlLinkInfo& link )
wxInt32 iProjectIndex = 0;
wxString strProjectURL = wxEmptyString;
wxString strResultName = wxEmptyString;
wxString strMachineName = wxEmptyString;
wxString strMessage = wxEmptyString;
CMainDocument* pDoc = wxGetApp().GetDocument();
@ -236,12 +237,30 @@ void CViewWork::OnTaskLinkClicked( const wxHtmlLinkInfo& link )
else if ( link.GetHref() == LINK_TASKSHOWGRAPHICS )
{
iProjectIndex = m_pListPane->GetFirstSelected();
pDoc->GetConnectedComputerName( strMachineName );
if ( !strMachineName.empty() )
{
iAnswer = wxMessageBox(
_("Are you sure you wish to display graphics on a remote machine?"),
_("Show Graphics"),
wxYES_NO | wxICON_QUESTION,
this
);
}
else
{
iAnswer = wxYES;
}
if ( wxYES == iAnswer )
{
pDoc->WorkShowGraphics(
iProjectIndex,
false
);
}
}
else if ( link.GetHref() == LINK_TASKABORT )
{
iProjectIndex = m_pListPane->GetFirstSelected();
@ -344,6 +363,7 @@ void CViewWork::UpdateSelection()
else
{
iSelectedRow = m_pListPane->GetFirstSelected();
m_bTaskHeaderHidden = false;
if ( pDoc->IsWorkSuspended( iSelectedRow ) )
{
@ -355,7 +375,7 @@ void CViewWork::UpdateSelection()
m_bTaskSuspendHidden = false;
m_bTaskResumeHidden = true;
}
if ( pDoc->IsWorkGraphicsSupported( iSelectedRow ) )
if ( pDoc->IsWorkGraphicsSupported( iSelectedRow ) && !pDoc->IsWorkSuspended( iSelectedRow ) )
m_bTaskShowGraphicsHidden = false;
else
m_bTaskShowGraphicsHidden = true;