~ubuntu-branches/debian/sid/boinc/sid

« back to all changes in this revision

Viewing changes to clientgui/sg_ProjectCommandPopup.h

  • Committer: Package Import Robot
  • Author(s): Steffen Moeller
  • Date: 2011-08-08 01:36:51 UTC
  • mfrom: (6.1.11 experimental)
  • Revision ID: package-import@ubuntu.com-20110808013651-m1hs3cltiveuteyn
Tags: 6.13.1+dfsg-2
* Bringing notify patch to unstable.
* Adjusted build dependency to libjpeg-dev (Closes: #641093)
* Further improvements on stripchart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This file is part of BOINC.
 
2
// http://boinc.berkeley.edu
 
3
// Copyright (C) 2008 University of California
 
4
//
 
5
// BOINC is free software; you can redistribute it and/or modify it
 
6
// under the terms of the GNU Lesser General Public License
 
7
// as published by the Free Software Foundation,
 
8
// either version 3 of the License, or (at your option) any later version.
 
9
//
 
10
// BOINC 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
// You should have received a copy of the GNU Lesser General Public License
 
16
// along with BOINC.  If not, see <http://www.gnu.org/licenses/>.
 
17
 
 
18
#ifndef __sg_ProjectCommandPopup__
 
19
#define __sg_ProjectCommandPopup__
 
20
 
 
21
class CSimpleProjectCommandPopupButton : public wxButton 
 
22
{
 
23
    DECLARE_DYNAMIC_CLASS( CSimpleProjectCommandPopupButton )
 
24
    DECLARE_EVENT_TABLE()
 
25
 
 
26
    public:
 
27
        CSimpleProjectCommandPopupButton();
 
28
        
 
29
                CSimpleProjectCommandPopupButton(wxWindow* parent, wxWindowID id, 
 
30
        const wxString& label = wxEmptyString, 
 
31
        const wxPoint& pos = wxDefaultPosition, 
 
32
        const wxSize& size = wxDefaultSize, 
 
33
        long style = 0, 
 
34
        const wxValidator& validator = wxDefaultValidator, 
 
35
        const wxString& name = wxT("ProjectCommandsPopupMenu"));
 
36
        
 
37
                ~CSimpleProjectCommandPopupButton();
 
38
 
 
39
        private:
 
40
        void AddMenuItems();
 
41
        void OnProjectCommandsButton(wxMouseEvent& event);
 
42
        void OnProjectUpdate(wxCommandEvent& event);
 
43
        void OnProjectSuspendResume(wxCommandEvent& event);
 
44
        void OnProjectNoNewWork(wxCommandEvent& event);
 
45
        void OnResetProject(wxCommandEvent& event);
 
46
        void OnProjectDetach(wxCommandEvent& event);
 
47
        void OnProjectShowProperties(wxCommandEvent& event);
 
48
        PROJECT* FindProjectIndexFromURL(char *project_url, int *index);
 
49
 
 
50
        protected:
 
51
        wxMenu*                     m_ProjectCommandsPopUpMenu;
 
52
        wxMenuItem*                 m_UpdateProjectMenuItem;
 
53
        wxMenuItem*                 m_SuspendResumeMenuItem;
 
54
        wxMenuItem*                 m_NoNewTasksMenuItem;
 
55
        wxMenuItem*                 m_ResetProjectMenuItem;
 
56
        wxMenuItem*                 m_RemoveProjectMenuItem;
 
57
        wxMenuItem*                 m_ShowPropertiesMenuItem;
 
58
};
 
59
 
 
60
#endif // __sg_ProjectCommandPopup__