JBoolean JXProgressDisplay::IncrementProgress1 ( const JCharacter* message ) { const ProcessType process = GetCurrentProcessType(); const JSize stepCount = GetCurrentStepCount(); if (process == kFixedLengthProcess) { itsIndicator->SetValue(stepCount); } else if (process == kVariableLengthProcess) { if (message != NULL) { AppendToMessageWindow(message); } const JString stepCountStr(stepCount, JString::kBase10); itsCounter->SetText(stepCountStr); itsCounter->Redraw(); } else { cerr << "Unknown process type in JXProgressDisplay::IncrementProgress1()" << endl; } return ProcessContinuing(); }
void CBSymbolUpdatePG::ProcessFinished() { if (GetCurrentProcessType() == kFixedLengthProcess) { const JSize delta = GetCurrentStepCount() % itsScaleFactor; if (delta > 0) { itsLink << CBProjectDocument::kProgressIncrement << ' ' << delta << std::endl; } } JProgressDisplay::ProcessFinished(); }
JBoolean CBSymbolUpdatePG::IncrementProgress ( const JCharacter* message, const JSize delta ) { IncrementStepCount(delta); const JSize stepCount = GetCurrentStepCount(); if (stepCount % itsScaleFactor == 0) { itsLink << CBProjectDocument::kProgressIncrement << ' ' << itsScaleFactor << std::endl; } return ProcessContinuing(); }