Skip to content

Commit

Permalink
MGR: async GUI RPCs: All periodic RPCs for Simple View implemented.
Browse files Browse the repository at this point in the history
svn path=/workspaces/charlief/; revision=15703
  • Loading branch information
Charlie Fenton committed Jul 29, 2008
1 parent 26edc55 commit 3237c4a
Show file tree
Hide file tree
Showing 20 changed files with 368 additions and 363 deletions.
42 changes: 42 additions & 0 deletions checkin_notes
Original file line number Diff line number Diff line change
Expand Up @@ -6102,6 +6102,48 @@ Charlie 28 July 2008
clientgui/
AdvancedFrame.cpp,.h
AsyncRPC.cpp
BOINCBaseFrame.cpp,h
BOINCBaseView.cpp
MainDocument.cpp,.h

David 28 July 2008
- ops: add script to fix backslashes in posts etc.
- DB: add db_update.php entry for Eric's new table

db/
boinc_db.C
html/ops/
repair_forums.php
db_update.php

Eric 28 July 2008
- modified the credit multiplier calculation to make it more stable.

tools/
calculate_credit_multiplier

David 28 July 2008
- server: add assimilator for Python Master/Worker system,
and change setup script to copy its files

py/Boinc/
setup_project.py
sched/
Makefile.am
pymw_assimilator.C

Charlie 29 July 2008
- MGR: async GUI RPCs: All periodic RPCs for Simple View implemented.

clientgui/
AdvancedFrame.cpp,.h
AsyncRPC.cpp,.h
BOINCBaseFrame.cpp,h
BOINCBaseView.cpp
BOINCGUIApp.cpp,.h
BOINCTaskBar.cpp
Events.h
MainDocument.cpp,.h
sg_BoincSimpleGUI.cpp,.h
sg_DlgMessages.cpp,.h
sg_ProjectsComponent.cpp,.h
30 changes: 8 additions & 22 deletions clientgui/AdvancedFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,8 @@ BEGIN_EVENT_TABLE (CAdvancedFrame, CBOINCBaseFrame)
EVT_MENU(ID_HELPBOINCWEBSITE, CAdvancedFrame::OnHelpBOINC)
EVT_MENU(wxID_ABOUT, CAdvancedFrame::OnHelpAbout)
EVT_SHOW(CAdvancedFrame::OnShow)
EVT_FRAME_REFRESH(CAdvancedFrame::OnRefreshView)
EVT_FRAME_CONNECT(CAdvancedFrame::OnConnect)
EVT_FRAME_UPDATESTATUS(CAdvancedFrame::OnUpdateStatus)
EVT_FRAME_UPDATEMESSAGES(CAdvancedFrame::OnUpdateMessages)
EVT_TIMER(ID_REFRESHSTATETIMER, CAdvancedFrame::OnRefreshState)
EVT_TIMER(ID_FRAMERENDERTIMER, CAdvancedFrame::OnFrameRender)
// TODO: Remove ID_FRAMELISTRENDERTIMER and all related code
Expand Down Expand Up @@ -1494,6 +1492,8 @@ void CAdvancedFrame::OnOptionsOptions(wxCommandEvent& WXUNUSED(event)) {
wxASSERT(wxDynamicCast(pDoc, CMainDocument));
wxASSERT(wxDynamicCast(pSkinAdvanced, CSkinAdvanced));

pDoc->TestAsyncRPC(); return; // TEMPORARY FOR TESTING ASYNC RPCs -- CAF

// General Tab
dlg.m_LanguageSelectionCtrl->Append(wxGetApp().GetSupportedLanguages());

Expand Down Expand Up @@ -1843,22 +1843,6 @@ void CAdvancedFrame::OnUpdateStatus(CFrameEvent& event) {
}


void CAdvancedFrame::OnUpdateMessages(CFrameEvent& event) {
wxLogTrace(wxT("Function Start/End"), wxT("CAdvancedFrame::OnUpdateMessages - Function Begin"));

CMainDocument* pDoc = wxGetApp().GetDocument();

wxASSERT(pDoc);
wxASSERT(wxDynamicCast(pDoc, CMainDocument));

pDoc->CachedMessageUpdate();
FireRefreshView();

wxLogTrace(wxT("Function Start/End"), wxT("CAdvancedFrame::OnUpdateMessages - Function End"));
}



void CAdvancedFrame::OnRefreshState(wxTimerEvent &event) {
static bool bAlreadyRunningLoop = false;

Expand Down Expand Up @@ -1886,8 +1870,6 @@ void CAdvancedFrame::OnFrameRender(wxTimerEvent &event) {
CMainDocument* pDoc = wxGetApp().GetDocument();
wxMenuBar* pMenuBar = GetMenuBar();

if (wxGetApp().ProcessingRPC) return; // TEMPORARY UNTIL PERIODIC ASYNC RPCs IMPLEMENTED -- CAF

if (!bAlreadyRunningLoop && m_pFrameRenderTimer->IsRunning()) {
bAlreadyRunningLoop = true;

Expand Down Expand Up @@ -1975,7 +1957,6 @@ void CAdvancedFrame::OnFrameRender(wxTimerEvent &event) {


void CAdvancedFrame::OnListPanelRender(wxTimerEvent& WXUNUSED(event)) {
if (wxGetApp().ProcessingRPC) return; // TEMPORARY UNTIL PERIODIC ASYNC RPCs IMPLEMENTED -- CAF
FireRefreshView();
}

Expand All @@ -1985,9 +1966,14 @@ void CAdvancedFrame::OnNotebookSelectionChanged(wxNotebookEvent& event) {

if ((-1 != event.GetSelection())) {
UpdateRefreshTimerInterval(event.GetSelection());

CMainDocument* pDoc = wxGetApp().GetDocument();
wxASSERT(wxDynamicCast(pDoc, CMainDocument));

pDoc->RunPeriodicRPCs();

wxTimerEvent event (wxEVT_TIMER, ID_PERIODICRPCTIMER);
AddPendingEvent(event);
FireRefreshView();
}

event.Skip();
Expand Down
1 change: 0 additions & 1 deletion clientgui/AdvancedFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class CAdvancedFrame : public CBOINCBaseFrame
void OnRefreshView( CFrameEvent& event );
void OnConnect( CFrameEvent& event );
void OnUpdateStatus( CFrameEvent& event );
void OnUpdateMessages( CFrameEvent& event );

void ResetReminderTimers();

Expand Down
Loading

0 comments on commit 3237c4a

Please sign in to comment.