mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4428
This commit is contained in:
parent
29b9da56b2
commit
6b2f236aa0
|
@ -111,6 +111,18 @@ char** CBOINCBaseView::GetViewIcon()
|
|||
}
|
||||
|
||||
|
||||
wxInt32 CBOINCBaseView::_GetListRowCount()
|
||||
{
|
||||
return GetListRowCount();
|
||||
}
|
||||
|
||||
|
||||
wxInt32 CBOINCBaseView::GetListRowCount()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void CBOINCBaseView::_OnTaskRender (wxTimerEvent& event)
|
||||
{
|
||||
OnTaskRender( event );
|
||||
|
@ -151,13 +163,9 @@ void CBOINCBaseView::OnListRender (wxTimerEvent& event)
|
|||
{
|
||||
m_bProcessingListRenderEvent = true;
|
||||
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
|
||||
wxASSERT(NULL != pDoc);
|
||||
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
|
||||
wxASSERT(NULL != m_pListPane);
|
||||
|
||||
wxInt32 iCount = pDoc->GetProjectCount();
|
||||
wxInt32 iCount = _GetListRowCount();
|
||||
if ( iCount != m_iCount )
|
||||
{
|
||||
m_iCount = iCount;
|
||||
|
|
|
@ -47,6 +47,8 @@ public:
|
|||
|
||||
virtual wxString GetViewName();
|
||||
virtual char** GetViewIcon();
|
||||
wxInt32 _GetListRowCount();
|
||||
virtual wxInt32 GetListRowCount();
|
||||
|
||||
void _OnTaskRender( wxTimerEvent& event );
|
||||
void _OnListRender( wxTimerEvent& event );
|
||||
|
|
|
@ -142,19 +142,26 @@ char** CViewMessages::GetViewIcon()
|
|||
}
|
||||
|
||||
|
||||
wxInt32 CViewMessages::GetListRowCount()
|
||||
{
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
|
||||
wxASSERT(NULL != pDoc);
|
||||
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
|
||||
|
||||
return pDoc->GetMessageCount();
|
||||
}
|
||||
|
||||
|
||||
void CViewMessages::OnListRender(wxTimerEvent &event)
|
||||
{
|
||||
if (!m_bProcessingListRenderEvent)
|
||||
{
|
||||
m_bProcessingListRenderEvent = true;
|
||||
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
|
||||
wxASSERT(NULL != pDoc);
|
||||
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
|
||||
wxASSERT(NULL != m_pListPane);
|
||||
|
||||
wxInt32 iCount = pDoc->GetMessageCount();
|
||||
wxInt32 iCount = _GetListRowCount();
|
||||
if ( iCount != m_iCount )
|
||||
{
|
||||
m_iCount = iCount;
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
|
||||
virtual wxString GetViewName();
|
||||
virtual char** GetViewIcon();
|
||||
virtual wxInt32 GetListRowCount();
|
||||
|
||||
virtual void OnListRender( wxTimerEvent& event );
|
||||
|
||||
|
|
|
@ -186,6 +186,17 @@ char** CViewProjects::GetViewIcon()
|
|||
}
|
||||
|
||||
|
||||
wxInt32 CViewProjects::GetListRowCount()
|
||||
{
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
|
||||
wxASSERT(NULL != pDoc);
|
||||
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
|
||||
|
||||
return pDoc->GetProjectCount();
|
||||
}
|
||||
|
||||
|
||||
wxString CViewProjects::OnListGetItemText(long item, long column) const
|
||||
{
|
||||
wxString strBuffer = wxEmptyString;
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
|
||||
virtual wxString GetViewName();
|
||||
virtual char** GetViewIcon();
|
||||
virtual wxInt32 GetListRowCount();
|
||||
|
||||
virtual wxString OnListGetItemText( long item, long column ) const;
|
||||
|
||||
|
|
|
@ -113,6 +113,17 @@ char** CViewResources::GetViewIcon()
|
|||
}
|
||||
|
||||
|
||||
wxInt32 CViewResources::GetListRowCount()
|
||||
{
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
|
||||
wxASSERT(NULL != pDoc);
|
||||
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
|
||||
|
||||
return pDoc->GetResourceCount();
|
||||
}
|
||||
|
||||
|
||||
wxString CViewResources::OnListGetItemText( long item, long column ) const
|
||||
{
|
||||
wxString strBuffer = wxEmptyString;
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
|
||||
virtual wxString GetViewName();
|
||||
virtual char** GetViewIcon();
|
||||
virtual wxInt32 GetListRowCount();
|
||||
|
||||
virtual wxString OnListGetItemText( long item, long column ) const;
|
||||
|
||||
|
|
|
@ -135,6 +135,17 @@ char** CViewTransfers::GetViewIcon()
|
|||
}
|
||||
|
||||
|
||||
wxInt32 CViewTransfers::GetListRowCount()
|
||||
{
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
|
||||
wxASSERT(NULL != pDoc);
|
||||
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
|
||||
|
||||
return pDoc->GetTransferCount();
|
||||
}
|
||||
|
||||
|
||||
wxString CViewTransfers::OnListGetItemText(long item, long column) const
|
||||
{
|
||||
wxString strBuffer = wxEmptyString;
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
|
||||
virtual wxString GetViewName();
|
||||
virtual char** GetViewIcon();
|
||||
virtual wxInt32 GetListRowCount();
|
||||
|
||||
virtual wxString OnListGetItemText( long item, long column ) const;
|
||||
|
||||
|
|
|
@ -147,6 +147,17 @@ char** CViewWork::GetViewIcon()
|
|||
}
|
||||
|
||||
|
||||
wxInt32 CViewWork::GetListRowCount()
|
||||
{
|
||||
CMainDocument* pDoc = wxGetApp().GetDocument();
|
||||
|
||||
wxASSERT(NULL != pDoc);
|
||||
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
|
||||
|
||||
return pDoc->GetWorkCount();
|
||||
}
|
||||
|
||||
|
||||
wxString CViewWork::OnListGetItemText( long item, long column ) const
|
||||
{
|
||||
wxString strBuffer = wxEmptyString;
|
||||
|
|
|
@ -43,6 +43,7 @@ public:
|
|||
|
||||
virtual wxString GetViewName();
|
||||
virtual char** GetViewIcon();
|
||||
virtual wxInt32 GetListRowCount();
|
||||
|
||||
virtual wxString OnListGetItemText( long item, long column ) const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue