void CopyDialog::OperThreadSignal(int info) { if (info == INFO_NEXTFILE) { MutexLock lock(&threadData.infoMutex); if (threadData.pathChanged) { _from.SetText(threadData.infoSrcUri.GetUnicode()); _to.SetText(threadData.infoDstUri.GetUnicode()); _countWin.SetNumber(threadData.infoCount); threadData.pathChanged = false; } if (threadData.progressChanged) { _progressWin.SetData(0, threadData.infoSize, threadData.infoProgress); threadData.progressChanged = false; } } }
void DirCalcThreadWin::OperThreadSignal( int info ) { RefreshCounters(); MutexLock lock( &pData->resMutex ); if ( pData->currentPath.Count() > 0 ) { cPathWin.SetText( pData->currentPath.GetUnicode() ); pData->currentPath.Clear(); } }
void DirCalcThreadWin::OperThreadStopped() { cPathWin.SetText( utf8_to_unicode( _LT( "Scan done" ) ).data() ); RefreshCounters(); }