mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=1565
This commit is contained in:
parent
6029fc2d91
commit
64b6b6e814
|
@ -4878,6 +4878,22 @@ Karl 2003/06/19
|
||||||
sched/
|
sched/
|
||||||
make_work.C
|
make_work.C
|
||||||
|
|
||||||
|
Tim June 19, 2003
|
||||||
|
- Astropulse Website
|
||||||
|
added description to project preferences
|
||||||
|
- Windows GUI
|
||||||
|
implemented message pane entry limit
|
||||||
|
new icons
|
||||||
|
|
||||||
|
client/win/res/
|
||||||
|
icon.ico
|
||||||
|
iconhigh.ico
|
||||||
|
iconsmall.ico
|
||||||
|
html_user/
|
||||||
|
db.inc
|
||||||
|
host.inc
|
||||||
|
project_specific_prefs_ap.inc
|
||||||
|
|
||||||
Karl 2003/06/19
|
Karl 2003/06/19
|
||||||
- scheduler daemons: write pid to a pidfile. trap SIGINTs and exit on
|
- scheduler daemons: write pid to a pidfile. trap SIGINTs and exit on
|
||||||
the next check_stop_trigger() (the 'stop_server' file still works)
|
the next check_stop_trigger() (the 'stop_server' file still works)
|
||||||
|
@ -4937,3 +4953,10 @@ Karl 2003/06/20
|
||||||
apps/
|
apps/
|
||||||
Makefile.am
|
Makefile.am
|
||||||
upper_case.C
|
upper_case.C
|
||||||
|
|
||||||
|
Tim June 23, 2003
|
||||||
|
- Windows GUI
|
||||||
|
UpdateGUI only refreshes active tab
|
||||||
|
|
||||||
|
client/win/
|
||||||
|
wingui_mainwindow.cpp
|
||||||
|
|
|
@ -187,12 +187,16 @@ void CMainWindow::UpdateGUI(CLIENT_STATE* pcs)
|
||||||
{
|
{
|
||||||
CString strBuf;
|
CString strBuf;
|
||||||
float totalres;
|
float totalres;
|
||||||
int i;
|
int i, n;
|
||||||
|
|
||||||
// If we failed to set the taskbar icon before, keep trying!
|
// If we failed to set the taskbar icon before, keep trying!
|
||||||
if (m_nDesiredIconState != m_nIconState)
|
if (m_nDesiredIconState != m_nIconState)
|
||||||
SetStatusIcon(m_nDesiredIconState);
|
SetStatusIcon(m_nDesiredIconState);
|
||||||
|
|
||||||
|
switch (m_TabCtrl.GetCurFocus()) {
|
||||||
|
|
||||||
|
case PROJECT_ID:
|
||||||
|
|
||||||
// display projects
|
// display projects
|
||||||
m_ProjectListCtrl.SetRedraw(FALSE);
|
m_ProjectListCtrl.SetRedraw(FALSE);
|
||||||
totalres = 0;
|
totalres = 0;
|
||||||
|
@ -240,6 +244,10 @@ void CMainWindow::UpdateGUI(CLIENT_STATE* pcs)
|
||||||
}
|
}
|
||||||
m_ProjectListCtrl.SetRedraw(TRUE);
|
m_ProjectListCtrl.SetRedraw(TRUE);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RESULT_ID:
|
||||||
|
|
||||||
// update results
|
// update results
|
||||||
m_ResultListCtrl.SetRedraw(FALSE);
|
m_ResultListCtrl.SetRedraw(FALSE);
|
||||||
Syncronize(&m_ResultListCtrl, (vector<void*>*)(&pcs->results));
|
Syncronize(&m_ResultListCtrl, (vector<void*>*)(&pcs->results));
|
||||||
|
@ -336,6 +344,10 @@ void CMainWindow::UpdateGUI(CLIENT_STATE* pcs)
|
||||||
}
|
}
|
||||||
m_ResultListCtrl.SetRedraw(TRUE);
|
m_ResultListCtrl.SetRedraw(TRUE);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case XFER_ID:
|
||||||
|
|
||||||
// update xfers
|
// update xfers
|
||||||
m_XferListCtrl.SetRedraw(FALSE);
|
m_XferListCtrl.SetRedraw(FALSE);
|
||||||
Syncronize(&m_XferListCtrl, (vector<void*>*)(&pcs->pers_xfers->pers_file_xfers));
|
Syncronize(&m_XferListCtrl, (vector<void*>*)(&pcs->pers_xfers->pers_file_xfers));
|
||||||
|
@ -414,8 +426,12 @@ void CMainWindow::UpdateGUI(CLIENT_STATE* pcs)
|
||||||
}
|
}
|
||||||
m_XferListCtrl.SetRedraw(TRUE);
|
m_XferListCtrl.SetRedraw(TRUE);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case MESSAGE_ID:
|
||||||
|
|
||||||
// check message pane size
|
// check message pane size
|
||||||
int n = m_MessageListCtrl.GetItemCount();
|
n = m_MessageListCtrl.GetItemCount();
|
||||||
if (n > 2000) {
|
if (n > 2000) {
|
||||||
m_MessageListCtrl.SetRedraw(FALSE);
|
m_MessageListCtrl.SetRedraw(FALSE);
|
||||||
for (i = 0 ; i < n - 2000 ; i++)
|
for (i = 0 ; i < n - 2000 ; i++)
|
||||||
|
@ -423,6 +439,10 @@ void CMainWindow::UpdateGUI(CLIENT_STATE* pcs)
|
||||||
m_MessageListCtrl.SetRedraw(TRUE);
|
m_MessageListCtrl.SetRedraw(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case USAGE_ID:
|
||||||
|
|
||||||
// update usage
|
// update usage
|
||||||
double xDiskTotal;
|
double xDiskTotal;
|
||||||
double xDiskFree; get_filesystem_info(xDiskTotal, xDiskFree);
|
double xDiskFree; get_filesystem_info(xDiskTotal, xDiskFree);
|
||||||
|
@ -458,6 +478,10 @@ void CMainWindow::UpdateGUI(CLIENT_STATE* pcs)
|
||||||
m_UsageBOINCPieCtrl.SetPiece(0, xDiskUsage); // BOINC: core application
|
m_UsageBOINCPieCtrl.SetPiece(0, xDiskUsage); // BOINC: core application
|
||||||
m_UsageBOINCPieCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_NOERASE|RDW_FRAME);
|
m_UsageBOINCPieCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_NOERASE|RDW_FRAME);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// make icon flash if needed
|
// make icon flash if needed
|
||||||
if(m_bMessage || m_bRequest) {
|
if(m_bMessage || m_bRequest) {
|
||||||
if(m_nIconState == ICON_NORMAL) {
|
if(m_nIconState == ICON_NORMAL) {
|
||||||
|
@ -567,13 +591,7 @@ void CMainWindow::ShowTab(int nTab)
|
||||||
}
|
}
|
||||||
m_TabCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_FRAME);
|
m_TabCtrl.RedrawWindow(NULL, NULL, RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_FRAME);
|
||||||
RedrawWindow();
|
RedrawWindow();
|
||||||
|
UpdateGUI(&gstate);
|
||||||
/*
|
|
||||||
// draw line between menu and tabs
|
|
||||||
RECT rect = {0, 0, 0, 0}; GetClientRect(&rect);
|
|
||||||
GetDC()->MoveTo(0, 0);
|
|
||||||
GetDC()->LineTo(rect.right, 0);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////
|
//////////
|
||||||
|
|
Loading…
Reference in New Issue