~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to clientgui/ViewMessagesGrid.h

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Berkeley Open Infrastructure for Network Computing
2
 
// http://boinc.berkeley.edu
3
 
// Copyright (C) 2005 University of California
4
 
//
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.
9
 
//
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.
14
 
//
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
19
 
 
20
 
#ifndef _VIEWMESSAGESGRID_H_
21
 
#define _VIEWMESSAGESGRID_H_
22
 
 
23
 
#if defined(__GNUG__) && !defined(__APPLE__)
24
 
#pragma interface "ViewMessagesGrid.cpp"
25
 
#endif
26
 
 
27
 
 
28
 
#include "BOINCBaseView.h"
29
 
#include "BOINCGridCtrl.h"
30
 
 
31
 
class CViewMessagesGrid : public CBOINCBaseView
32
 
{
33
 
    DECLARE_DYNAMIC_CLASS( CViewMessagesGrid )
34
 
    DECLARE_EVENT_TABLE()
35
 
 
36
 
public:
37
 
    CViewMessagesGrid();
38
 
    CViewMessagesGrid(wxNotebook* pNotebook);
39
 
 
40
 
    ~CViewMessagesGrid();
41
 
 
42
 
    virtual wxString&       GetViewName();
43
 
    virtual wxString&       GetViewDisplayName();
44
 
    virtual const char**    GetViewIcon();
45
 
 
46
 
    void                    OnMessagesCopyAll( wxCommandEvent& event );
47
 
    void                    OnMessagesCopySelected( wxCommandEvent& event );
48
 
 
49
 
protected:
50
 
    virtual bool            OnSaveState( wxConfigBase* pConfig );
51
 
    virtual bool            OnRestoreState( wxConfigBase* pConfig );
52
 
    virtual void            OnListRender( wxTimerEvent& event );
53
 
 
54
 
    virtual wxInt32         GetDocCount();
55
 
 
56
 
    virtual void            UpdateSelection();
57
 
 
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;
63
 
 
64
 
        CBOINCGridCtrl*                 m_pGridPane;
65
 
 
66
 
#ifdef wxUSE_CLIPBOARD
67
 
    bool                    m_bClipboardOpen;
68
 
    wxString                m_strClipboardData;
69
 
    bool                    OpenClipboard();
70
 
    wxInt32                 CopyToClipboard( wxInt32 item );
71
 
    bool                    CloseClipboard();
72
 
#endif
73
 
};
74
 
 
75
 
#endif
76