2008-08-06 18:36:30 +00:00
|
|
|
// This file is part of BOINC.
|
2005-01-20 23:22:22 +00:00
|
|
|
// http://boinc.berkeley.edu
|
2008-08-06 18:36:30 +00:00
|
|
|
// Copyright (C) 2008 University of California
|
2004-09-21 01:30:29 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC 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 3 of the License, or (at your option) any later version.
|
2004-09-21 01:30:29 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
2005-01-20 23:22:22 +00:00
|
|
|
// 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.
|
2004-09-21 01:30:29 +00:00
|
|
|
//
|
2008-08-06 18:36:30 +00:00
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
|
|
#ifndef _BOINCTASKCTRL_H_
|
|
|
|
#define _BOINCTASKCTRL_H_
|
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
|
|
#pragma interface "BOINCTaskCtrl.cpp"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2005-04-27 06:32:40 +00:00
|
|
|
class CTaskItem;
|
|
|
|
class CTaskItemGroup;
|
2004-09-21 01:30:29 +00:00
|
|
|
class CBOINCBaseView;
|
|
|
|
|
2005-07-21 09:43:40 +00:00
|
|
|
class CBOINCTaskCtrl : public wxScrolledWindow {
|
2004-09-21 01:30:29 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS( CBOINCTaskCtrl )
|
|
|
|
|
|
|
|
public:
|
|
|
|
CBOINCTaskCtrl();
|
2005-04-20 22:22:41 +00:00
|
|
|
CBOINCTaskCtrl( CBOINCBaseView* pView, wxWindowID iTaskWindowID, int iTaskWindowFlags );
|
2004-09-21 01:30:29 +00:00
|
|
|
|
|
|
|
~CBOINCTaskCtrl();
|
|
|
|
|
2005-04-27 06:32:40 +00:00
|
|
|
wxInt32 DeleteTaskGroupAndTasks( CTaskItemGroup* pGroup );
|
|
|
|
wxInt32 DisableTaskGroupTasks( CTaskItemGroup* pGroup );
|
|
|
|
wxInt32 EnableTaskGroupTasks( CTaskItemGroup* pGroup );
|
|
|
|
|
|
|
|
wxInt32 DeleteTask( CTaskItemGroup* pGroup, CTaskItem* pItem );
|
|
|
|
wxInt32 DisableTask( CTaskItem* pItem );
|
|
|
|
wxInt32 EnableTask( CTaskItem* pItem );
|
|
|
|
wxInt32 UpdateTask( CTaskItem* pItem, wxString strName, wxString strDescription );
|
|
|
|
|
2005-04-21 23:14:10 +00:00
|
|
|
wxInt32 UpdateControls();
|
2004-09-21 01:30:29 +00:00
|
|
|
|
2005-04-10 19:01:23 +00:00
|
|
|
virtual bool OnSaveState( wxConfigBase* pConfig );
|
|
|
|
virtual bool OnRestoreState( wxConfigBase* pConfig );
|
2004-09-21 01:30:29 +00:00
|
|
|
|
2012-01-25 12:30:44 +00:00
|
|
|
void EllipseStringIfNeeded( wxString& s );
|
2012-01-25 11:51:31 +00:00
|
|
|
|
2004-09-21 01:30:29 +00:00
|
|
|
private:
|
|
|
|
|
2005-07-22 20:19:58 +00:00
|
|
|
CBOINCBaseView* m_pParent;
|
2005-04-20 22:22:41 +00:00
|
|
|
|
2005-07-22 20:19:58 +00:00
|
|
|
wxBoxSizer* m_pSizer;
|
2004-09-21 01:30:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|