1
// Berkeley Open Infrastructure for Network Computing
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2005 University of California
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.
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.
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
21
#ifndef _ADVANCEDFRAME_H_
22
#define _ADVANCEDFRAME_H_
24
#if defined(__GNUG__) && !defined(__APPLE__)
25
#pragma interface "AdvancedFrame.cpp"
28
class CStatusBar : public wxStatusBar
30
DECLARE_DYNAMIC_CLASS(CStatusBar)
34
CStatusBar(wxWindow *parent);
37
void OnSize(wxSizeEvent& event);
39
wxStaticBitmap* m_pbmpConnected;
40
wxStaticText* m_ptxtConnected;
41
wxStaticBitmap* m_pbmpDisconnect;
42
wxStaticText* m_ptxtDisconnect;
49
class CAdvancedFrame : public CBOINCBaseFrame
51
DECLARE_DYNAMIC_CLASS(CAdvancedFrame)
55
CAdvancedFrame(wxString title, wxIcon* icon, wxIcon* icon32);
57
~CAdvancedFrame(void);
59
void OnSwitchView( wxCommandEvent& event );
60
void OnSwitchGUI( wxCommandEvent& event );
62
void OnActivitySelection( wxCommandEvent& event );
63
void OnNetworkSelection( wxCommandEvent& event );
65
void OnProjectsAttachToProject( wxCommandEvent& event );
66
void OnProjectsAttachToAccountManager( wxCommandEvent& event );
67
void OnAccountManagerUpdate( wxCommandEvent& event );
68
void OnAccountManagerDetach( wxCommandEvent& event );
70
void OnOptionsOptions( wxCommandEvent& event );
71
void OnDlgPreferences( wxCommandEvent& event );
72
void OnSelectComputer( wxCommandEvent& event );
73
void OnClientShutdown( wxCommandEvent& event );
74
void OnRunBenchmarks( wxCommandEvent& event );
75
void OnCommandsRetryCommunications( wxCommandEvent& event );
76
void Onread_prefs( wxCommandEvent& event );
77
void Onread_config( wxCommandEvent& event );
79
void OnHelp( wxHelpEvent& event );
80
void OnHelpBOINC( wxCommandEvent& event );
81
void OnHelpAbout( wxCommandEvent& event );
83
void OnShow( wxShowEvent& event );
85
void OnRefreshState( wxTimerEvent& event );
86
void OnFrameRender( wxTimerEvent& event );
87
void OnListPanelRender( wxTimerEvent& event );
89
void OnNotebookSelectionChanged( wxNotebookEvent& event );
91
void OnRefreshView( CFrameEvent& event );
92
void OnConnect( CFrameEvent& event );
93
void OnUpdateStatus( CFrameEvent& event );
95
void ResetReminderTimers();
97
wxTimer* m_pRefreshStateTimer;
98
wxTimer* m_pFrameRenderTimer;
99
wxTimer* m_pFrameListPanelRenderTimer;
103
wxMenuBar* m_pMenubar;
104
wxNotebook* m_pNotebook;
105
CStatusBar* m_pStatusbar;
107
wxInt32 m_iDisplayViewType;
109
wxString m_strBaseTitle;
114
bool CreateNotebook();
115
bool RepopulateNotebook();
117
bool CreateNotebookPage( T pwndNewNotebookPage );
118
bool DeleteNotebook();
120
bool CreateStatusbar();
121
bool DeleteStatusbar();
124
bool SaveViewState();
126
bool RestoreViewState();
128
void SaveWindowDimensions();
129
void RestoreWindowDimensions();
131
void UpdateActivityModeControls( CC_STATUS& status );
132
void UpdateNetworkModeControls( CC_STATUS& status );
133
void UpdateRefreshTimerInterval( wxInt32 iCurrentNotebookPage );
141
wxAcceleratorEntry m_Shortcuts[1]; // For HELP keyboard shortcut
142
wxAcceleratorTable* m_pAccelTable;
145
DECLARE_EVENT_TABLE()
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/>.
19
#ifndef _ADVANCEDFRAME_H_
20
#define _ADVANCEDFRAME_H_
22
#if defined(__GNUG__) && !defined(__APPLE__)
23
#pragma interface "AdvancedFrame.cpp"
30
class CStatusBar : public wxStatusBar
32
DECLARE_DYNAMIC_CLASS(CStatusBar)
36
CStatusBar(wxWindow *parent);
39
void OnSize(wxSizeEvent& event);
41
wxStaticBitmap* m_pbmpConnected;
42
wxStaticText* m_ptxtConnected;
43
wxStaticBitmap* m_pbmpDisconnect;
44
wxStaticText* m_ptxtDisconnect;
51
class CAdvancedFrame : public CBOINCBaseFrame
53
DECLARE_DYNAMIC_CLASS( CAdvancedFrame )
57
CAdvancedFrame( wxString title, wxIcon* icon, wxIcon* icon32, wxPoint position, wxSize size );
59
~CAdvancedFrame(void);
61
void OnChangeView( wxCommandEvent& event );
62
void OnChangeGUI( wxCommandEvent& event );
64
void OnWizardAttach( wxCommandEvent& event );
65
void OnWizardUpdate( wxCommandEvent& event );
66
void OnWizardDetach( wxCommandEvent& event );
68
void OnActivitySelection( wxCommandEvent& event );
69
void OnGPUSelection( wxCommandEvent& event );
70
void OnNetworkSelection( wxCommandEvent& event );
72
void OnOptions( wxCommandEvent& event );
73
void OnPreferences( wxCommandEvent& event );
74
void OnSelectComputer( wxCommandEvent& event );
75
void OnClientShutdown( wxCommandEvent& event );
76
void OnRunBenchmarks( wxCommandEvent& event );
77
void OnRetryCommunications( wxCommandEvent& event );
78
void OnReadPreferences( wxCommandEvent& event );
79
void OnReadConfig( wxCommandEvent& event );
80
void OnEventLog( wxCommandEvent& event );
81
void OnLaunchNewInstance( wxCommandEvent& event );
83
void OnHelp( wxHelpEvent& event );
84
void OnHelpBOINC( wxCommandEvent& event );
85
void OnHelpAbout( wxCommandEvent& event );
87
void OnRefreshState( wxTimerEvent& event );
88
void OnFrameRender( wxTimerEvent& event );
90
void OnNotebookSelectionChanged( wxNotebookEvent& event );
92
void OnRefreshView( CFrameEvent& event );
93
void OnConnect( CFrameEvent& event );
94
void OnNotification( CFrameEvent& event );
96
void OnUpdateStatus( CFrameEvent& event );
98
void ResetReminderTimers();
103
wxTimer* m_pRefreshStateTimer;
104
wxTimer* m_pFrameRenderTimer;
108
virtual int _GetCurrentViewPage();
110
wxAcceleratorEntry m_Shortcuts[1]; // For HELP keyboard shortcut
111
wxAcceleratorTable* m_pAccelTable;
115
wxMenuBar* m_pMenubar;
116
wxNotebook* m_pNotebook;
117
CStatusBar* m_pStatusbar;
119
wxString m_strBaseTitle;
124
bool CreateNotebook();
125
bool RepopulateNotebook();
126
bool CreateNotebookPage( CBOINCBaseView* pwndNewNotebookPage );
127
bool DeleteNotebook();
128
bool CreateStatusbar();
129
bool DeleteStatusbar();
131
void SaveWindowDimensions();
133
void UpdateActivityModeControls( CC_STATUS& status );
134
void UpdateGPUModeControls( CC_STATUS& status );
135
void UpdateNetworkModeControls( CC_STATUS& status );
136
void UpdateRefreshTimerInterval( wxInt32 iCurrentNotebookPage );
137
void UpdateRefreshTimerInterval();
142
DECLARE_EVENT_TABLE()