1
// Berkeley Open Infrastructure for Network Computing
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2005 University of California
5
// This is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation;
8
// either version 2.1 of the License, or (at your option) any later version.
10
// This software is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
// See the GNU Lesser General Public License for more details.
15
// To view the GNU Lesser General Public License visit
16
// http://www.gnu.org/copyleft/lesser.html
17
// or write to the Free Software Foundation, Inc.,
18
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef _VIEWMESSAGESGRID_H_
21
#define _VIEWMESSAGESGRID_H_
23
#if defined(__GNUG__) && !defined(__APPLE__)
24
#pragma interface "ViewMessagesGrid.cpp"
28
#include "BOINCBaseView.h"
29
#include "BOINCGridCtrl.h"
31
class CViewMessagesGrid : public CBOINCBaseView
33
DECLARE_DYNAMIC_CLASS( CViewMessagesGrid )
38
CViewMessagesGrid(wxNotebook* pNotebook);
42
virtual wxString& GetViewName();
43
virtual wxString& GetViewDisplayName();
44
virtual const char** GetViewIcon();
46
void OnMessagesCopyAll( wxCommandEvent& event );
47
void OnMessagesCopySelected( wxCommandEvent& event );
50
virtual bool OnSaveState( wxConfigBase* pConfig );
51
virtual bool OnRestoreState( wxConfigBase* pConfig );
52
virtual void OnListRender( wxTimerEvent& event );
54
virtual wxInt32 GetDocCount();
56
virtual void UpdateSelection();
58
wxInt32 FormatProjectName( wxInt32 item, wxString& strBuffer ) const;
59
wxInt32 FormatTime( wxInt32 item, wxString& strBuffer ) const;
60
wxInt32 FormatMessage( wxInt32 item, wxString& strBuffer ) const;
61
wxInt32 FormatSeqNo( wxInt32 item, wxString& strBuffer ) const;
62
wxInt32 FormatPriority( wxInt32 item, wxString& strBuffer ) const;
64
CBOINCGridCtrl* m_pGridPane;
66
#ifdef wxUSE_CLIPBOARD
67
bool m_bClipboardOpen;
68
wxString m_strClipboardData;
70
wxInt32 CopyToClipboard( wxInt32 item );
71
bool CloseClipboard();