2006-12-27 18:33:44 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
|
|
|
//
|
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
2007-10-09 11:35:47 +00:00
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2006-12-27 18:33:44 +00:00
|
|
|
|
|
|
|
#ifndef _VIEWWORKGRID_H_
|
|
|
|
#define _VIEWWORKGRID_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
|
|
#pragma interface "ViewWorkGrid.cpp"
|
|
|
|
#endif
|
|
|
|
|
2008-03-07 23:47:40 +00:00
|
|
|
// Set to 1 to prevent mutliple selections
|
|
|
|
#define PREVENT_MULTIPLE_TASK_SELECTIONS 0
|
2008-03-06 11:20:23 +00:00
|
|
|
|
2006-12-27 18:33:44 +00:00
|
|
|
#include "BOINCBaseView.h"
|
|
|
|
#include "BOINCGridCtrl.h"
|
|
|
|
|
|
|
|
class CViewWorkGrid : public CBOINCBaseView
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS( CViewWorkGrid )
|
2007-04-04 21:20:53 +00:00
|
|
|
DECLARE_EVENT_TABLE()
|
2006-12-27 18:33:44 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CViewWorkGrid();
|
|
|
|
CViewWorkGrid(wxNotebook* pNotebook);
|
|
|
|
|
|
|
|
~CViewWorkGrid();
|
|
|
|
|
|
|
|
virtual wxString& GetViewName();
|
- fixes #207 - HTML entities in BOINC Manager have to be decoded
BOINC Manager can now properly decode HTML entites for the
following elements:
Projects Tab:
Project Name
User Name
Team Name
Work Tab:
Project Name
Application Name
Transfers Tab:
Project Name
Messages Tab:
Project Name
Disk Tab:
Project Name
- fixes #212 - Info in columns misaligned on switching views
- Properly restore which tab view the user left from when going
to the advanced view from the simple view
- Fix the problem that caused the manager to wait for 7 seconds
to display anything on initial startup.
- Store the various Grid/List persisted data seperately so that
the different header sizes don't cause problems.
clientgui/
AdvancedFrame.cpp
BOINCBaseView.cpp, .h
BOINCGridCtrl.cpp
ViewMessages.cpp, .h
ViewMessagesGrid.cpp, .h
ViewProjects.cpp, .h
ViewProjectsGrid.cpp, .h
ViewResources.cpp, .h
ViewStatistics.cpp, .h
ViewTransfers.cpp, .h
ViewTransfersGrid.cpp, .h
ViewWork.cpp, .h
ViewWorkGrid.cpp, .h
lib/
gui_rpc_client_ops.C
svn path=/trunk/boinc/; revision=12761
2007-05-29 05:07:35 +00:00
|
|
|
virtual wxString& GetViewDisplayName();
|
2006-12-27 18:33:44 +00:00
|
|
|
virtual const char** GetViewIcon();
|
|
|
|
|
2008-03-05 14:41:24 +00:00
|
|
|
virtual wxInt32 GetDocCount();
|
2006-12-27 18:33:44 +00:00
|
|
|
|
|
|
|
void OnWorkSuspend( wxCommandEvent& event );
|
|
|
|
void OnWorkShowGraphics( wxCommandEvent& event );
|
|
|
|
void OnWorkAbort( wxCommandEvent& event );
|
|
|
|
|
|
|
|
void OnProjectWebsiteClicked( wxEvent& event );
|
|
|
|
|
|
|
|
protected:
|
2008-03-07 23:47:40 +00:00
|
|
|
#if PREVENT_MULTIPLE_TASK_SELECTIONS
|
2008-03-04 11:20:11 +00:00
|
|
|
virtual void OnCellLeftClick( wxGridEvent& event );
|
|
|
|
virtual void OnGridSelectRange( wxGridRangeSelectEvent& event );
|
2008-03-06 11:20:23 +00:00
|
|
|
#endif
|
2006-12-27 18:33:44 +00:00
|
|
|
virtual void UpdateSelection();
|
|
|
|
|
|
|
|
virtual bool OnSaveState( wxConfigBase* pConfig );
|
|
|
|
virtual bool OnRestoreState( wxConfigBase* pConfig );
|
2008-03-05 14:41:24 +00:00
|
|
|
virtual void OnListRender( wxTimerEvent& event );
|
2006-12-27 18:33:44 +00:00
|
|
|
|
|
|
|
wxInt32 FormatProjectName( wxInt32 item, wxString& strBuffer ) const;
|
|
|
|
wxInt32 FormatApplicationName( wxInt32 item, wxString& strBuffer ) const;
|
|
|
|
wxInt32 FormatName( wxInt32 item, wxString& strBuffer ) const;
|
|
|
|
wxInt32 FormatCPUTime( wxInt32 item, wxString& strBuffer ) const;
|
|
|
|
wxInt32 FormatProgress( wxInt32 item, wxString& strBuffer ) const;
|
|
|
|
wxInt32 FormatTimeToCompletion( wxInt32 item, wxString& strBuffer ) const;
|
|
|
|
wxInt32 FormatReportDeadline( wxInt32 item, wxString& strBuffer ) const;
|
|
|
|
wxInt32 FormatStatus( wxInt32 item, wxString& strBuffer ) const;
|
2008-03-05 14:41:24 +00:00
|
|
|
wxInt32 FormatProjectURL( wxInt32 item, wxString& strBuffer ) const;
|
2006-12-27 18:33:44 +00:00
|
|
|
|
2008-03-05 14:41:24 +00:00
|
|
|
void UpdateWebsiteSelection(long lControlGroup, PROJECT* project);
|
2006-12-27 18:33:44 +00:00
|
|
|
|
2007-04-04 21:20:53 +00:00
|
|
|
CBOINCGridCtrl* m_pGridPane;
|
2006-12-27 18:33:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|