mirror of https://github.com/BOINC/boinc.git
MGR: Force update of Task Selection List on reskin interface
svn path=/trunk/boinc/; revision=24442
This commit is contained in:
parent
de5104f504
commit
45ecc3e4c4
|
@ -7554,4 +7554,9 @@ Charlie 20 Oct 2011
|
|||
Green_dot.png (added)
|
||||
Red_dot.png (added)
|
||||
Yellow_dot.png (added)
|
||||
|
||||
|
||||
Charlie 20 Oct 2011
|
||||
- MGR: Force update of Task Selection List on reskin interface.
|
||||
|
||||
clientgui/
|
||||
sg_TaskPanel.cpp,h
|
||||
|
|
|
@ -418,7 +418,7 @@ void CSimpleTaskPanel::Update(bool delayShow) {
|
|||
this->Layout();
|
||||
}
|
||||
|
||||
UpdateTaskSelectionList();
|
||||
UpdateTaskSelectionList(false);
|
||||
|
||||
// We now have valid result pointers, so extract our data
|
||||
int count = m_TaskSelectionCtrl->GetCount();
|
||||
|
@ -494,6 +494,7 @@ void CSimpleTaskPanel::Update(bool delayShow) {
|
|||
void CSimpleTaskPanel::ReskinInterface() {
|
||||
CSimplePanelBase::ReskinInterface();
|
||||
m_SlideShowArea->AdvanceSlideShow(false);
|
||||
UpdateTaskSelectionList(true);
|
||||
}
|
||||
|
||||
|
||||
|
@ -682,7 +683,7 @@ void CSimpleTaskPanel::FindSlideShowFiles(TaskSelectionData *selData) {
|
|||
}
|
||||
|
||||
|
||||
void CSimpleTaskPanel::UpdateTaskSelectionList() {
|
||||
void CSimpleTaskPanel::UpdateTaskSelectionList(bool reskin) {
|
||||
int i, j, count, newColor;
|
||||
TaskSelectionData *selData;
|
||||
RESULT* result;
|
||||
|
@ -787,7 +788,7 @@ void CSimpleTaskPanel::UpdateTaskSelectionList() {
|
|||
newColor = redDot;
|
||||
}
|
||||
|
||||
if (newColor != selData->dotColor) {
|
||||
if (reskin || (newColor != selData->dotColor)) {
|
||||
switch (newColor) {
|
||||
case greenDot:
|
||||
m_TaskSelectionCtrl->SetItemBitmap(j, *pSkinSimple->GetWorkunitRunningImage()->GetBitmap());
|
||||
|
|
|
@ -98,7 +98,7 @@ class CSimpleTaskPanel : public CSimplePanelBase
|
|||
wxString GetStatusString(RESULT* result);
|
||||
wxString FormatTime(float fBuffer);
|
||||
void FindSlideShowFiles(TaskSelectionData *selData);
|
||||
void UpdateTaskSelectionList();
|
||||
void UpdateTaskSelectionList(bool reskin);
|
||||
bool isRunning(RESULT* result);
|
||||
bool DownloadingResults();
|
||||
bool Suspended();
|
||||
|
|
Loading…
Reference in New Issue