/* User Cancel is called when the user does not really start the * ocr but uses the cancel-Button to come out of the Dialog */ void KSANEOCR::slotClose() { kdDebug(28000) << "closing ocr Dialog" << endl; if( daemon && daemon->isRunning() ) { kdDebug(28000) << "Still running - Killing daemon with Sig. 9" << endl; daemon->kill(9); } finishedOCRVisible(false); }
void OcrEngine::stopOCRProcess(bool tellUser) { if (m_ocrProcess!=NULL && m_ocrProcess->state()==QProcess::Running) { kDebug() << "Killing daemon"; m_ocrProcess->kill(); if (tellUser) KMessageBox::error(m_parent,i18n("The OCR process was stopped")); } finishedOCRVisible(false); }
void KSANEOCR::ocradExited(KProcess* ) { kdDebug(28000) << "ocrad exit " << endl; QString err; bool parseRes = true; if( ! readORF(m_tmpOrfName, err) ) { KMessageBox::error( m_parent, i18n("Parsing of the OCR Result File failed:") + err, i18n("Parse Problem")); parseRes = false; } finishedOCRVisible( parseRes ); }