1
// This file is part of BOINC.
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2008 University of California
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.
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.
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/>.
18
#ifndef __sg_ProjectCommandPopup__
19
#define __sg_ProjectCommandPopup__
21
class CSimpleProjectCommandPopupButton : public wxButton
23
DECLARE_DYNAMIC_CLASS( CSimpleProjectCommandPopupButton )
27
CSimpleProjectCommandPopupButton();
29
CSimpleProjectCommandPopupButton(wxWindow* parent, wxWindowID id,
30
const wxString& label = wxEmptyString,
31
const wxPoint& pos = wxDefaultPosition,
32
const wxSize& size = wxDefaultSize,
34
const wxValidator& validator = wxDefaultValidator,
35
const wxString& name = wxT("ProjectCommandsPopupMenu"));
37
~CSimpleProjectCommandPopupButton();
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);
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;
60
#endif // __sg_ProjectCommandPopup__