Esempio n. 1
0
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;
		}
	}
}
Esempio n. 2
0
void DirCalcThreadWin::OperThreadSignal( int info )
{
	RefreshCounters();

	MutexLock lock( &pData->resMutex );

	if ( pData->currentPath.Count() > 0 )
	{
		cPathWin.SetText( pData->currentPath.GetUnicode() );
		pData->currentPath.Clear();
	}
}
Esempio n. 3
0
void DirCalcThreadWin::OperThreadStopped()
{
	cPathWin.SetText( utf8_to_unicode( _LT( "Scan done" ) ).data() );
	RefreshCounters();
}