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_PanelBase__
19
#define __sg_PanelBase__
21
#include "sg_CustomControls.h"
22
#include "sg_BoincSimpleFrame.h"
25
// TODO: Move these to events.h
27
ID_CHANGE_SLIDE_TIMER = 14000,
28
WEBSITE_URL_MENU_ID = 34500,
29
WEBSITE_URL_MENU_ID_REMOVE_PROJECT = 34550,
30
WEBSITE_URL_MENU_ID_HOMEPAGE = 34551,
35
///////////////////////////////////////////////////////////////////////////
39
#define MEDIUM_FONT 16
43
#define MEDIUM_FONT 12
47
#define SIDEMARGINS 30
50
///////////////////////////////////////////////////////////////////////////////
51
/// Class CSimplePanelBase
52
///////////////////////////////////////////////////////////////////////////////
55
#include "MacBitmapComboBox.h"
57
// TODO: Subclass CBOINCBitmapComboBox to be accessible on Windows. Either:
58
// Add WxBitmapComboBoxAccessible class (like CNoticeListCtrlAccessible for CNoticeListCtrl)
59
// or simulate bitmap combo box using accessible standard Windows controls (as done for
60
// CBOINCBitmapComboBox on Mac)
61
// TODO: Add wx/bmpcbox.h to stdwx.h
62
#include <wx/bmpcbox.h>
63
#define CBOINCBitmapComboBox wxBitmapComboBox
64
#define EVT_BOINCBITMAPCOMBOBOX EVT_COMBOBOX
68
class CSimplePanelBase : public wxPanel
70
DECLARE_DYNAMIC_CLASS( CSimplePanelBase )
75
CSimplePanelBase( wxWindow* parent);
78
void ReskinInterface();
79
virtual wxRect GetProgressRect() { return wxRect(0, 0, 0, 0); }
80
void UpdateStaticText(CTransparentStaticText **whichText, wxString s);
81
void EllipseStringIfNeeded(wxString& s, wxWindow *win);
85
void OnPaint(wxPaintEvent& event);
87
wxBitmap m_TaskPanelBGBitMap;
91
#endif //__sg_PanelBase__