Beispiel #1
0
hlVoid FileProgressCallback(HLDirectoryItem *pFile, hlUInt uiBytesExtracted, hlUInt uiBytesTotal, hlBool *pCancel)
{
#if 0
	PyEval_RestoreThread(g_extract_save);

	if( pUpdateFunc == Py_None )
		ProgressUpdate((hlULongLong)uiBytesExtracted, (hlULongLong)uiBytesTotal);
	else
		PyEval_CallFunction(pUpdateFunc, "II", uiBytesExtracted, uiBytesTotal);

	g_extract_save = PyEval_SaveThread();
#endif // 0
}
Beispiel #2
0
void CAxialFor3DView::ProgressUpdateFunc( itk::Object * caller, const itk::EventObject & event )
{
	itk::ProcessObject::Pointer process =
			  dynamic_cast< itk::ProcessObject *>( caller );
	

	if( typeid( itk::EndEvent ) == typeid( event ) )
	{
		m_nProgress=0;
	}

	if( typeid( itk::ProgressEvent ) == typeid( event ) )
	{
		m_nProgress = (int) (process->GetProgress()*100);		
	}

	emit ProgressUpdate(m_nProgress);
}
Beispiel #3
0
  virtual void __fastcall Execute()
  {
    try
    {
      ProgressUpdate(PROGFN_INITIALISE, 0, 0);

      if (FGenerator->KeyType == ktDSA)
      {
        dsa_generate(FGenerator->FDSSKey, FGenerator->KeySize,
          KeyGenerationProgressUpdate, this);
      }
      else
      {
        rsa_generate(FGenerator->FRSAKey, FGenerator->KeySize,
          KeyGenerationProgressUpdate, this);
      }
      Progress.Complete = kgSuccess;
    }
    catch(...)
    {
      Progress.Complete = kgFailure;
    }
    Synchronize(DistributeProgressUpdate);
  }
Beispiel #4
0
void CExportConsole::ProgressInc(){
	ProgressUpdate(fStatusProgress+1);
}
Beispiel #5
0
void CExportConsole::ProgressEnd(){
	ProgressUpdate(0);
}
Beispiel #6
0
//----------------------------------------------------
void CExportConsole::ProgressStart(float max_val, const char* text){
	fMaxVal=max_val;
	fStatusProgress=0;
	Msg(text?text:"");
	ProgressUpdate(0);
}
Beispiel #7
0
hlVoid DefragmentProgressCallback(HLDirectoryItem *pFile, hlUInt uiFilesDefragmented, hlUInt uiFilesTotal, hlULongLong uiBytesDefragmented, hlULongLong uiBytesTotal, hlBool *pCancel)
{
    ProgressUpdate(uiBytesDefragmented, uiBytesTotal);
}
Beispiel #8
0
hlVoid FileProgressCallback(HLDirectoryItem *pFile, hlUInt uiBytesExtracted, hlUInt uiBytesTotal, hlBool *pCancel)
{
    ProgressUpdate((hlULongLong)uiBytesExtracted, (hlULongLong)uiBytesTotal);
}