2004-09-21 01:30:29 +00:00
|
|
|
// $Id$
|
|
|
|
//
|
|
|
|
// The contents of this file are subject to the BOINC Public License
|
|
|
|
// Version 1.0 (the "License"); you may not use this file except in
|
|
|
|
// compliance with the License. You may obtain a copy of the License at
|
|
|
|
// http://boinc.berkeley.edu/license_1.0.txt
|
|
|
|
//
|
|
|
|
// Software distributed under the License is distributed on an "AS IS"
|
|
|
|
// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
|
|
|
// License for the specific language governing rights and limitations
|
|
|
|
// under the License.
|
|
|
|
//
|
|
|
|
// The Original Code is the Berkeley Open Infrastructure for Network Computing.
|
|
|
|
//
|
|
|
|
// The Initial Developer of the Original Code is the SETI@home project.
|
|
|
|
// Portions created by the SETI@home project are Copyright (C) 2002
|
|
|
|
// University of California at Berkeley. All Rights Reserved.
|
|
|
|
//
|
|
|
|
// Contributor(s):
|
|
|
|
//
|
|
|
|
// Revision History:
|
|
|
|
//
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
|
|
#pragma implementation "BOINCBaseView.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "stdwx.h"
|
2004-10-26 01:59:44 +00:00
|
|
|
#include "BOINCGUIApp.h"
|
|
|
|
#include "MainDocument.h"
|
2004-09-21 01:30:29 +00:00
|
|
|
#include "BOINCBaseView.h"
|
|
|
|
#include "BOINCTaskCtrl.h"
|
|
|
|
#include "BOINCListCtrl.h"
|
2004-09-22 21:53:07 +00:00
|
|
|
|
2004-09-21 01:30:29 +00:00
|
|
|
#include "res/boinc.xpm"
|
|
|
|
|
|
|
|
|
2004-10-26 01:59:44 +00:00
|
|
|
const wxString LINK_DEFAULT = wxT("default");
|
|
|
|
|
|
|
|
|
2004-09-21 01:30:29 +00:00
|
|
|
IMPLEMENT_DYNAMIC_CLASS(CBOINCBaseView, wxPanel)
|
|
|
|
|
|
|
|
|
|
|
|
CBOINCBaseView::CBOINCBaseView()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-27 21:10:22 +00:00
|
|
|
CBOINCBaseView::CBOINCBaseView( wxNotebook* pNotebook, wxWindowID iHtmlWindowID, wxInt32 iHtmlWindowFlags, wxWindowID iListWindowID, wxInt32 iListWindowFlags ) :
|
|
|
|
wxPanel( pNotebook, -1, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL )
|
2004-09-21 01:30:29 +00:00
|
|
|
{
|
|
|
|
wxASSERT(NULL != pNotebook);
|
|
|
|
|
2004-10-21 21:19:49 +00:00
|
|
|
m_bProcessingTaskRenderEvent = false;
|
|
|
|
m_bProcessingListRenderEvent = false;
|
2004-10-26 01:59:44 +00:00
|
|
|
|
|
|
|
m_bItemSelected = false;
|
|
|
|
|
2004-10-21 21:19:49 +00:00
|
|
|
m_strQuickTip = wxEmptyString;
|
|
|
|
m_strQuickTipText = wxEmptyString;
|
|
|
|
|
|
|
|
m_pTaskPane = NULL;
|
|
|
|
m_pListPane = NULL;
|
|
|
|
|
2004-09-21 01:30:29 +00:00
|
|
|
wxFlexGridSizer* itemFlexGridSizer = new wxFlexGridSizer(2, 0, 0);
|
|
|
|
wxASSERT(NULL != itemFlexGridSizer);
|
|
|
|
|
|
|
|
itemFlexGridSizer->AddGrowableRow(0);
|
|
|
|
itemFlexGridSizer->AddGrowableCol(1);
|
|
|
|
|
|
|
|
SetSizer(itemFlexGridSizer);
|
|
|
|
SetAutoLayout(TRUE);
|
|
|
|
|
2004-10-27 21:10:22 +00:00
|
|
|
m_pTaskPane = new CBOINCTaskCtrl( this, iHtmlWindowID, iHtmlWindowFlags );
|
2004-09-21 01:30:29 +00:00
|
|
|
wxASSERT(NULL != m_pTaskPane);
|
|
|
|
|
2004-10-27 21:10:22 +00:00
|
|
|
m_pListPane = new CBOINCListCtrl( this, iListWindowID, iListWindowFlags );
|
2004-09-21 01:30:29 +00:00
|
|
|
wxASSERT(NULL != m_pListPane);
|
|
|
|
|
|
|
|
itemFlexGridSizer->Add(m_pTaskPane, 0, wxGROW|wxGROW|wxALL, 1);
|
|
|
|
itemFlexGridSizer->Add(m_pListPane, 0, wxGROW|wxGROW|wxALL, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CBOINCBaseView::~CBOINCBaseView()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// The user friendly name of the view.
|
|
|
|
// If it has not been defined by the view "Undefined" is returned.
|
|
|
|
//
|
|
|
|
wxString CBOINCBaseView::GetViewName()
|
|
|
|
{
|
|
|
|
return wxString(_T("Undefined"));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// The user friendly icon of the view.
|
|
|
|
// If it has not been defined by the view the BOINC icon is returned.
|
|
|
|
//
|
|
|
|
char** CBOINCBaseView::GetViewIcon()
|
|
|
|
{
|
|
|
|
wxASSERT(NULL != boinc_xpm);
|
|
|
|
return boinc_xpm;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-26 08:41:02 +00:00
|
|
|
wxInt32 CBOINCBaseView::GetListRowCount()
|
|
|
|
{
|
2004-12-02 07:43:47 +00:00
|
|
|
wxASSERT(NULL != m_pListPane);
|
|
|
|
return m_pListPane->GetItemCount();
|
2004-10-26 08:41:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
void CBOINCBaseView::FireOnTaskRender ( wxTimerEvent& event )
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
|
|
|
OnTaskRender( event );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
void CBOINCBaseView::FireOnListRender ( wxTimerEvent& event )
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
|
|
|
OnListRender( event );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-02 07:43:47 +00:00
|
|
|
bool CBOINCBaseView::FireOnSaveState( wxConfigBase* pConfig )
|
|
|
|
{
|
|
|
|
return OnSaveState( pConfig );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool CBOINCBaseView::FireOnRestoreState( wxConfigBase* pConfig )
|
|
|
|
{
|
|
|
|
return OnRestoreState( pConfig );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::FireOnChar( wxKeyEvent& event )
|
|
|
|
{
|
|
|
|
OnChar( event );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::FireOnListSelected( wxListEvent& event )
|
|
|
|
{
|
|
|
|
OnListSelected( event );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::FireOnListDeselected( wxListEvent& event )
|
|
|
|
{
|
|
|
|
OnListDeselected( event );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxString CBOINCBaseView::FireOnListGetItemText( long item, long column ) const
|
|
|
|
{
|
|
|
|
return OnListGetItemText( item, column );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int CBOINCBaseView::FireOnListGetItemImage( long item ) const
|
|
|
|
{
|
|
|
|
return OnListGetItemImage( item );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxListItemAttr* CBOINCBaseView::FireOnListGetItemAttr( long item ) const
|
|
|
|
{
|
|
|
|
return OnListGetItemAttr( item );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::FireOnTaskLinkClicked( const wxHtmlLinkInfo& link )
|
|
|
|
{
|
|
|
|
OnTaskLinkClicked( link );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::FireOnTaskCellMouseHover( wxHtmlCell* cell, wxCoord x, wxCoord y )
|
|
|
|
{
|
|
|
|
OnTaskCellMouseHover( cell, x, y );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxInt32 CBOINCBaseView::GetDocCount()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
void CBOINCBaseView::OnTaskRender ( wxTimerEvent& event )
|
2004-09-25 21:33:24 +00:00
|
|
|
{
|
2004-10-26 01:59:44 +00:00
|
|
|
if (!m_bProcessingTaskRenderEvent)
|
|
|
|
{
|
|
|
|
m_bProcessingTaskRenderEvent = true;
|
|
|
|
|
|
|
|
wxASSERT(NULL != m_pListPane);
|
|
|
|
|
|
|
|
if ( ( 0 == m_pListPane->GetSelectedItemCount() ) && m_bItemSelected )
|
|
|
|
{
|
|
|
|
UpdateSelection();
|
|
|
|
}
|
|
|
|
|
|
|
|
m_bProcessingTaskRenderEvent = false;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
event.Skip();
|
|
|
|
}
|
2004-09-25 21:33:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
void CBOINCBaseView::OnListRender ( wxTimerEvent& event )
|
2004-09-21 01:30:29 +00:00
|
|
|
{
|
2004-10-26 01:59:44 +00:00
|
|
|
if (!m_bProcessingListRenderEvent)
|
|
|
|
{
|
|
|
|
m_bProcessingListRenderEvent = true;
|
|
|
|
|
|
|
|
wxASSERT(NULL != m_pListPane);
|
|
|
|
|
2004-12-08 23:48:12 +00:00
|
|
|
m_pListPane->Freeze();
|
|
|
|
|
2004-12-02 07:43:47 +00:00
|
|
|
wxInt32 iDocCount = GetDocCount();
|
|
|
|
wxInt32 iCacheCount = GetCacheCount();
|
|
|
|
if ( iDocCount != iCacheCount )
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
2004-12-02 07:43:47 +00:00
|
|
|
if ( 0 >= iDocCount )
|
2004-11-21 20:58:52 +00:00
|
|
|
{
|
2004-12-02 07:43:47 +00:00
|
|
|
EmptyCache();
|
2004-10-26 01:59:44 +00:00
|
|
|
m_pListPane->DeleteAllItems();
|
2004-11-21 20:58:52 +00:00
|
|
|
}
|
2004-10-26 01:59:44 +00:00
|
|
|
else
|
|
|
|
{
|
2004-12-08 23:48:12 +00:00
|
|
|
if ( !(iDocCount == iCacheCount) )
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
2004-12-08 23:48:12 +00:00
|
|
|
if ( iDocCount > iCacheCount )
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
2004-12-08 23:48:12 +00:00
|
|
|
wxInt32 iIndex = 0;
|
|
|
|
wxInt32 iReturnValue = -1;
|
|
|
|
for ( iIndex = iCacheCount; iIndex <= iDocCount; iIndex++ )
|
|
|
|
{
|
|
|
|
iReturnValue = AddCacheElement();
|
|
|
|
wxASSERT( 0 == iReturnValue );
|
|
|
|
}
|
2004-10-26 01:59:44 +00:00
|
|
|
}
|
2004-12-08 23:48:12 +00:00
|
|
|
else
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
2004-12-08 23:48:12 +00:00
|
|
|
wxInt32 iIndex = 0;
|
|
|
|
wxInt32 iReturnValue = -1;
|
|
|
|
for ( iIndex = iDocCount; iIndex >= iCacheCount; iIndex-- )
|
|
|
|
{
|
|
|
|
iReturnValue = RemoveCacheElement();
|
|
|
|
wxASSERT( 0 == iReturnValue );
|
|
|
|
}
|
2004-10-26 01:59:44 +00:00
|
|
|
}
|
2004-12-08 23:48:12 +00:00
|
|
|
|
|
|
|
m_pListPane->SetItemCount(iDocCount);
|
2004-10-26 01:59:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2004-12-02 21:43:44 +00:00
|
|
|
|
|
|
|
SyncronizeCache();
|
|
|
|
|
|
|
|
if (EnsureLastItemVisible())
|
|
|
|
m_pListPane->EnsureVisible(iCacheCount);
|
2004-10-26 01:59:44 +00:00
|
|
|
|
2004-12-08 23:13:20 +00:00
|
|
|
m_pListPane->Thaw();
|
|
|
|
|
2004-10-26 01:59:44 +00:00
|
|
|
m_bProcessingListRenderEvent = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
event.Skip();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-09-21 01:30:29 +00:00
|
|
|
bool CBOINCBaseView::OnSaveState( wxConfigBase* pConfig )
|
|
|
|
{
|
|
|
|
bool bReturnValue = true;
|
|
|
|
|
|
|
|
wxASSERT(NULL != pConfig);
|
|
|
|
wxASSERT(NULL != m_pTaskPane);
|
|
|
|
wxASSERT(NULL != m_pListPane);
|
|
|
|
|
|
|
|
if (!m_pTaskPane->OnSaveState( pConfig ))
|
|
|
|
bReturnValue = false;
|
|
|
|
|
|
|
|
if (!m_pListPane->OnSaveState( pConfig ))
|
|
|
|
bReturnValue = false;
|
|
|
|
|
|
|
|
return bReturnValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-05 02:55:26 +00:00
|
|
|
bool CBOINCBaseView::OnRestoreState( wxConfigBase* pConfig )
|
|
|
|
{
|
2004-09-21 01:30:29 +00:00
|
|
|
bool bReturnValue = true;
|
|
|
|
|
|
|
|
wxASSERT(NULL != pConfig);
|
|
|
|
wxASSERT(NULL != m_pTaskPane);
|
|
|
|
wxASSERT(NULL != m_pListPane);
|
|
|
|
|
|
|
|
if (!m_pTaskPane->OnRestoreState( pConfig ))
|
|
|
|
bReturnValue = false;
|
|
|
|
|
|
|
|
if (!m_pListPane->OnRestoreState( pConfig ))
|
|
|
|
bReturnValue = false;
|
|
|
|
|
|
|
|
return bReturnValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-02 07:43:47 +00:00
|
|
|
void CBOINCBaseView::OnChar( wxKeyEvent& event )
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
2004-12-08 18:53:50 +00:00
|
|
|
event.Skip();
|
2004-09-21 01:30:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-26 01:59:44 +00:00
|
|
|
void CBOINCBaseView::OnListSelected( wxListEvent& event )
|
2004-09-24 02:01:53 +00:00
|
|
|
{
|
2004-10-26 01:59:44 +00:00
|
|
|
SetCurrentQuickTip(
|
|
|
|
LINK_DEFAULT,
|
|
|
|
wxT("")
|
|
|
|
);
|
|
|
|
|
2004-09-24 02:01:53 +00:00
|
|
|
UpdateSelection();
|
|
|
|
event.Skip();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-26 01:59:44 +00:00
|
|
|
void CBOINCBaseView::OnListDeselected( wxListEvent& event )
|
2004-09-24 02:01:53 +00:00
|
|
|
{
|
2004-10-26 01:59:44 +00:00
|
|
|
SetCurrentQuickTip(
|
|
|
|
LINK_DEFAULT,
|
|
|
|
wxT("")
|
|
|
|
);
|
|
|
|
|
2004-09-24 02:01:53 +00:00
|
|
|
UpdateSelection();
|
|
|
|
event.Skip();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
wxString CBOINCBaseView::OnListGetItemText( long WXUNUSED(item), long WXUNUSED(column) ) const
|
2004-09-21 01:30:29 +00:00
|
|
|
{
|
|
|
|
return wxString("Undefined");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
int CBOINCBaseView::OnListGetItemImage( long WXUNUSED(item) ) const
|
2004-09-21 01:30:29 +00:00
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
wxListItemAttr* CBOINCBaseView::OnListGetItemAttr( long WXUNUSED(item) ) const
|
2004-09-21 01:30:29 +00:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-02 07:43:47 +00:00
|
|
|
wxString CBOINCBaseView::OnDocGetItemText( long WXUNUSED(item), long WXUNUSED(column) ) const
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
2004-12-02 07:43:47 +00:00
|
|
|
return wxString("Undefined");
|
2004-10-26 01:59:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-02 07:43:47 +00:00
|
|
|
wxString CBOINCBaseView::OnDocGetItemImage( long WXUNUSED(item) ) const
|
2004-10-26 01:59:44 +00:00
|
|
|
{
|
2004-12-02 07:43:47 +00:00
|
|
|
return wxString("Undefined");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxString CBOINCBaseView::OnDocGetItemAttr( long WXUNUSED(item) ) const
|
|
|
|
{
|
|
|
|
return wxString("Undefined");
|
2004-10-26 01:59:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
void CBOINCBaseView::OnTaskLinkClicked( const wxHtmlLinkInfo& WXUNUSED(link) )
|
2004-09-24 02:01:53 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-11-19 08:11:49 +00:00
|
|
|
void CBOINCBaseView::OnTaskCellMouseHover( wxHtmlCell* WXUNUSED(cell), wxCoord WXUNUSED(x) , wxCoord WXUNUSED(y) )
|
2004-09-24 02:01:53 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxString CBOINCBaseView::GetCurrentQuickTip()
|
|
|
|
{
|
|
|
|
return m_strQuickTip;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxString CBOINCBaseView::GetCurrentQuickTipText()
|
|
|
|
{
|
|
|
|
return m_strQuickTipText;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CBOINCBaseView::SetCurrentQuickTip( const wxString& strQuickTip, const wxString& strQuickTipText )
|
|
|
|
{
|
|
|
|
m_strQuickTip = strQuickTip;
|
|
|
|
m_strQuickTipText = strQuickTipText;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-02 07:43:47 +00:00
|
|
|
wxInt32 CBOINCBaseView::AddCacheElement()
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxInt32 CBOINCBaseView::EmptyCache()
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxInt32 CBOINCBaseView::GetCacheCount()
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxInt32 CBOINCBaseView::RemoveCacheElement()
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wxInt32 CBOINCBaseView::SyncronizeCache()
|
|
|
|
{
|
|
|
|
wxInt32 iRowIndex = 0;
|
|
|
|
wxInt32 iRowTotal = 0;
|
|
|
|
wxInt32 iColumnIndex = 0;
|
|
|
|
wxInt32 iColumnTotal = 0;
|
|
|
|
wxString strDocumentText = wxEmptyString;
|
|
|
|
wxString strListPaneText = wxEmptyString;
|
|
|
|
wxInt32 iReturnValue = -1;
|
|
|
|
bool bNeedRefreshData = false;
|
|
|
|
|
|
|
|
iRowTotal = GetDocCount();
|
|
|
|
iColumnTotal = m_pListPane->GetColumnCount();
|
|
|
|
|
|
|
|
for ( iRowIndex = 0; iRowIndex < iRowTotal; iRowIndex++ )
|
|
|
|
{
|
|
|
|
bNeedRefreshData = false;
|
|
|
|
|
|
|
|
for ( iColumnIndex = 0; iColumnIndex < iColumnTotal; iColumnIndex++ )
|
|
|
|
{
|
|
|
|
strDocumentText.Empty();
|
|
|
|
strListPaneText.Empty();
|
|
|
|
|
|
|
|
strDocumentText = OnDocGetItemText( iRowIndex, iColumnIndex );
|
|
|
|
strListPaneText = OnListGetItemText( iRowIndex, iColumnIndex );
|
|
|
|
|
|
|
|
if ( !strDocumentText.IsSameAs(strListPaneText) )
|
|
|
|
{
|
|
|
|
iReturnValue = UpdateCache( iRowIndex, iColumnIndex, strDocumentText );
|
|
|
|
wxASSERT( 0 == iReturnValue );
|
|
|
|
bNeedRefreshData = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( bNeedRefreshData )
|
|
|
|
{
|
|
|
|
m_pListPane->RefreshItem( iRowIndex );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-12-08 18:53:50 +00:00
|
|
|
wxInt32 CBOINCBaseView::UpdateCache( long WXUNUSED(item), long WXUNUSED(column), wxString& WXUNUSED(strNewData) )
|
2004-12-02 07:43:47 +00:00
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool CBOINCBaseView::EnsureLastItemVisible()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-05 02:55:26 +00:00
|
|
|
bool CBOINCBaseView::UpdateQuickTip( const wxString& strCurrentLink, const wxString& strQuickTip, const wxString& strQuickTipText )
|
|
|
|
{
|
|
|
|
bool bRetVal;
|
|
|
|
|
|
|
|
bRetVal = false;
|
|
|
|
|
|
|
|
if ( (strCurrentLink == strQuickTip) && (strQuickTip != GetCurrentQuickTip()) )
|
|
|
|
{
|
|
|
|
SetCurrentQuickTip( strQuickTip, strQuickTipText );
|
|
|
|
bRetVal = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return bRetVal;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-09-24 02:01:53 +00:00
|
|
|
void CBOINCBaseView::UpdateSelection()
|
2004-09-21 01:30:29 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2004-09-23 08:28:50 +00:00
|
|
|
|
2004-09-24 02:01:53 +00:00
|
|
|
void CBOINCBaseView::UpdateTaskPane()
|
2004-09-23 08:28:50 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2004-12-08 00:40:19 +00:00
|
|
|
|
|
|
|
#ifdef __GNUC__
|
|
|
|
static volatile const char __attribute__((unused)) *BOINCrcsid="$Id$";
|
|
|
|
#else
|
|
|
|
static volatile const char *BOINCrcsid="$Id$";
|
|
|
|
#endif
|