mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=9499
This commit is contained in:
parent
e06eb314c5
commit
9f20b793c6
|
@ -2025,3 +2025,12 @@ Rom 17 Feb 2006
|
||||||
WizardAccountManager.cpp
|
WizardAccountManager.cpp
|
||||||
WizardAttachProject.cpp
|
WizardAttachProject.cpp
|
||||||
|
|
||||||
|
Rom 17 Feb 2006
|
||||||
|
- Bug Fix: Reset the reminder timers when the user updates something.
|
||||||
|
|
||||||
|
clientgui/
|
||||||
|
BOINCDialupManager.cpp, .h
|
||||||
|
MainFrame.cpp, .h
|
||||||
|
ViewProjects.cpp
|
||||||
|
ViewTransfers.cpp
|
||||||
|
|
||||||
|
|
|
@ -35,9 +35,7 @@ CBOINCDialUpManager::CBOINCDialUpManager() {
|
||||||
m_pDialupManager = wxDialUpManager::Create();
|
m_pDialupManager = wxDialUpManager::Create();
|
||||||
wxASSERT(m_pDialupManager->IsOk());
|
wxASSERT(m_pDialupManager->IsOk());
|
||||||
|
|
||||||
m_dtLastDialupAlertSent = wxDateTime((time_t)0);
|
ResetReminderTimers();
|
||||||
m_dtLastDialupRequest = wxDateTime((time_t)0);
|
|
||||||
m_dtDialupConnectionTimeout = wxDateTime((time_t)0);
|
|
||||||
m_bSetConnectionTimer = false;
|
m_bSetConnectionTimer = false;
|
||||||
m_bNotifyConnectionAvailable = false;
|
m_bNotifyConnectionAvailable = false;
|
||||||
m_bConnectedSuccessfully = false;
|
m_bConnectedSuccessfully = false;
|
||||||
|
@ -112,9 +110,7 @@ void CBOINCDialUpManager::poll() {
|
||||||
|
|
||||||
m_bResetTimers = false;
|
m_bResetTimers = false;
|
||||||
m_bSetConnectionTimer = false;
|
m_bSetConnectionTimer = false;
|
||||||
m_dtLastDialupAlertSent = wxDateTime((time_t)0);
|
ResetReminderTimers();
|
||||||
m_dtLastDialupRequest = wxDateTime((time_t)0);
|
|
||||||
m_dtDialupConnectionTimeout = wxDateTime((time_t)0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log out the trace information for debugging purposes.
|
// Log out the trace information for debugging purposes.
|
||||||
|
@ -464,3 +460,10 @@ int CBOINCDialUpManager::Disconnect() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CMainFrame::ResetReminderTimers() {
|
||||||
|
m_dtLastDialupAlertSent = wxDateTime((time_t)0);
|
||||||
|
m_dtLastDialupRequest = wxDateTime((time_t)0);
|
||||||
|
m_dtDialupConnectionTimeout = wxDateTime((time_t)0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ public:
|
||||||
|
|
||||||
int Disconnect();
|
int Disconnect();
|
||||||
|
|
||||||
|
void ResetReminderTimers();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxDialUpManager* m_pDialupManager;
|
wxDialUpManager* m_pDialupManager;
|
||||||
|
|
|
@ -1171,6 +1171,7 @@ void CMainFrame::OnAccountManagerUpdate(wxCommandEvent& WXUNUSED(event)) {
|
||||||
DeleteMenu();
|
DeleteMenu();
|
||||||
CreateMenu();
|
CreateMenu();
|
||||||
FireRefreshView();
|
FireRefreshView();
|
||||||
|
ResetReminderTimers();
|
||||||
|
|
||||||
m_pRefreshStateTimer->Start();
|
m_pRefreshStateTimer->Start();
|
||||||
m_pFrameRenderTimer->Start();
|
m_pFrameRenderTimer->Start();
|
||||||
|
@ -1875,6 +1876,37 @@ void CMainFrame::OnNotebookSelectionChanged(wxNotebookEvent& event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CMainFrame::ExecuteBrowserLink(const wxString &strLink) {
|
||||||
|
wxHyperLink::ExecuteLink(strLink);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CMainFrame::FireInitialize() {
|
||||||
|
CMainFrameEvent event(wxEVT_MAINFRAME_INITIALIZED, this);
|
||||||
|
AddPendingEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CMainFrame::FireRefreshView() {
|
||||||
|
CMainFrameEvent event(wxEVT_MAINFRAME_REFRESHVIEW, this);
|
||||||
|
AddPendingEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CMainFrame::FireConnect() {
|
||||||
|
CMainFrameEvent event(wxEVT_MAINFRAME_CONNECT, this);
|
||||||
|
AddPendingEvent(event);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void CMainFrame::ResetReminderTimers() {
|
||||||
|
wxASSERT(m_pDialupManager);
|
||||||
|
wxASSERT(wxDynamicCast(m_pDialupManager, CBOINCDialUpManager));
|
||||||
|
|
||||||
|
m_pDialupManager->ResetReminderTimers();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::SetFrameListPanelRenderTimerRate() {
|
void CMainFrame::SetFrameListPanelRenderTimerRate() {
|
||||||
static wxWindowID previousPane = -1;
|
static wxWindowID previousPane = -1;
|
||||||
static int connectedCount = 0;
|
static int connectedCount = 0;
|
||||||
|
@ -1920,31 +1952,6 @@ void CMainFrame::SetFrameListPanelRenderTimerRate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::UpdateStatusText(const wxChar* szStatus) {
|
|
||||||
wxString strStatus = szStatus;
|
|
||||||
m_pStatusbar->SetStatusText(strStatus);
|
|
||||||
::wxSleep(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::FireInitialize() {
|
|
||||||
CMainFrameEvent event(wxEVT_MAINFRAME_INITIALIZED, this);
|
|
||||||
AddPendingEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::FireRefreshView() {
|
|
||||||
CMainFrameEvent event(wxEVT_MAINFRAME_REFRESHVIEW, this);
|
|
||||||
AddPendingEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::FireConnect() {
|
|
||||||
CMainFrameEvent event(wxEVT_MAINFRAME_CONNECT, this);
|
|
||||||
AddPendingEvent(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::ShowConnectionBadPasswordAlert() {
|
void CMainFrame::ShowConnectionBadPasswordAlert() {
|
||||||
wxString strDialogTitle = wxEmptyString;
|
wxString strDialogTitle = wxEmptyString;
|
||||||
|
|
||||||
|
@ -2046,8 +2053,10 @@ void CMainFrame::ShowAlert( const wxString title, const wxString message, const
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void CMainFrame::ExecuteBrowserLink(const wxString &strLink) {
|
void CMainFrame::UpdateStatusText(const wxChar* szStatus) {
|
||||||
wxHyperLink::ExecuteLink(strLink);
|
wxString strStatus = szStatus;
|
||||||
|
m_pStatusbar->SetStatusText(strStatus);
|
||||||
|
::wxSleep(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -100,8 +100,7 @@ public:
|
||||||
void OnRefreshView( CMainFrameEvent& event );
|
void OnRefreshView( CMainFrameEvent& event );
|
||||||
void OnConnect( CMainFrameEvent& event );
|
void OnConnect( CMainFrameEvent& event );
|
||||||
|
|
||||||
void SetFrameListPanelRenderTimerRate();
|
void ExecuteBrowserLink( const wxString& strLink );
|
||||||
void UpdateStatusText( const wxChar* szStatus );
|
|
||||||
|
|
||||||
void FireInitialize();
|
void FireInitialize();
|
||||||
void FireRefreshView();
|
void FireRefreshView();
|
||||||
|
@ -111,6 +110,12 @@ public:
|
||||||
wxString GetDialupConnectionName() { return m_strNetworkDialupConnectionName; }
|
wxString GetDialupConnectionName() { return m_strNetworkDialupConnectionName; }
|
||||||
bool GetDialupPromptForCredentials() { return m_bNetworkDialupPromptCredentials; }
|
bool GetDialupPromptForCredentials() { return m_bNetworkDialupPromptCredentials; }
|
||||||
|
|
||||||
|
void ResetReminderTimers();
|
||||||
|
|
||||||
|
void SetFrameListPanelRenderTimerRate(); // TODO: refactor out of the frame and put the
|
||||||
|
// relevent code in OnPageChanged function
|
||||||
|
// and the base/statistics view.
|
||||||
|
|
||||||
void ShowConnectionBadPasswordAlert();
|
void ShowConnectionBadPasswordAlert();
|
||||||
void ShowConnectionFailedAlert();
|
void ShowConnectionFailedAlert();
|
||||||
void ShowNotCurrentlyConnectedAlert();
|
void ShowNotCurrentlyConnectedAlert();
|
||||||
|
@ -122,7 +127,7 @@ public:
|
||||||
const MainFrameAlertEventType alert_event_type = AlertNormal
|
const MainFrameAlertEventType alert_event_type = AlertNormal
|
||||||
);
|
);
|
||||||
|
|
||||||
void ExecuteBrowserLink( const wxString& strLink );
|
void UpdateStatusText( const wxChar* szStatus );
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
bool Show( bool show = true );
|
bool Show( bool show = true );
|
||||||
|
|
|
@ -195,6 +195,7 @@ void CViewProjects::OnProjectUpdate( wxCommandEvent& WXUNUSED(event) ) {
|
||||||
|
|
||||||
m_bForceUpdateSelection = true;
|
m_bForceUpdateSelection = true;
|
||||||
UpdateSelection();
|
UpdateSelection();
|
||||||
|
pFrame->ResetReminderTimers();
|
||||||
pFrame->FireRefreshView();
|
pFrame->FireRefreshView();
|
||||||
|
|
||||||
wxLogTrace(wxT("Function Start/End"), wxT("CViewProjects::OnProjectUpdate - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CViewProjects::OnProjectUpdate - Function End"));
|
||||||
|
|
|
@ -159,6 +159,7 @@ void CViewTransfers::OnTransfersRetryNow( wxCommandEvent& WXUNUSED(event) ) {
|
||||||
pFrame->UpdateStatusText(wxT(""));
|
pFrame->UpdateStatusText(wxT(""));
|
||||||
|
|
||||||
UpdateSelection();
|
UpdateSelection();
|
||||||
|
pFrame->ResetReminderTimers();
|
||||||
pFrame->FireRefreshView();
|
pFrame->FireRefreshView();
|
||||||
|
|
||||||
wxLogTrace(wxT("Function Start/End"), wxT("CViewTransfers::OnTransfersRetryNow - Function End"));
|
wxLogTrace(wxT("Function Start/End"), wxT("CViewTransfers::OnTransfersRetryNow - Function End"));
|
||||||
|
|
Loading…
Reference in New Issue