diff options
Diffstat (limited to 'kooka/ksaneocr.cpp')
| -rw-r--r-- | kooka/ksaneocr.cpp | 66 | 
1 files changed, 33 insertions, 33 deletions
| diff --git a/kooka/ksaneocr.cpp b/kooka/ksaneocr.cpp index cd2ce38e..577a9fc9 100644 --- a/kooka/ksaneocr.cpp +++ b/kooka/ksaneocr.cpp @@ -31,7 +31,7 @@  #include <tdeconfig.h>  #include <tdeapplication.h>  #include <tdetempfile.h> -#include <kprocess.h> +#include <tdeprocess.h>  #include <stdlib.h>  #include <tdespell.h>  #include <tdespelldlg.h> @@ -224,9 +224,9 @@ bool KSANEOCR::startOCRVisible( TQWidget *parent )         m_ocrProcessDia->introduceImage( m_img );         visibleOCRRunning = true; -      connect( m_ocrProcessDia, TQT_SIGNAL( user1Clicked()), this, TQT_SLOT( startOCRProcess() )); -      connect( m_ocrProcessDia, TQT_SIGNAL( closeClicked()), this, TQT_SLOT( slotClose() )); -      connect( m_ocrProcessDia, TQT_SIGNAL( user2Clicked()), this, TQT_SLOT( slotStopOCR() )); +      connect( m_ocrProcessDia, TQ_SIGNAL( user1Clicked()), this, TQ_SLOT( startOCRProcess() )); +      connect( m_ocrProcessDia, TQ_SIGNAL( closeClicked()), this, TQ_SLOT( slotClose() )); +      connect( m_ocrProcessDia, TQ_SIGNAL( user2Clicked()), this, TQ_SLOT( slotStopOCR() ));        m_ocrProcessDia->show();     } @@ -279,9 +279,9 @@ void KSANEOCR::finishedOCRVisible( bool success )              */             connect( new KSpell( m_parent, i18n("Kooka OCR Dictionary Check"), -                                this, TQT_SLOT( slSpellReady(KSpell*)), +                                this, TQ_SLOT( slSpellReady(KSpell*)),                                  m_ocrProcessDia->spellConfig() ), -                    TQT_SIGNAL( death()), this, TQT_SLOT(slSpellDead())); +                    TQ_SIGNAL( death()), this, TQ_SLOT(slSpellDead()));         }         delete m_ocrProcessDia; @@ -425,12 +425,12 @@ void KSANEOCR::startOCRAD( )      m_ocrResultText = ""; -    connect(daemon, TQT_SIGNAL(processExited(TDEProcess *)), -	    this,   TQT_SLOT(  ocradExited(TDEProcess*))); -    connect(daemon, TQT_SIGNAL(receivedStdout(TDEProcess *, char*, int)), -	    this,   TQT_SLOT(  ocradStdIn(TDEProcess*, char*, int))); -    connect(daemon, TQT_SIGNAL(receivedStderr(TDEProcess *, char*, int)), -	    this,   TQT_SLOT(  ocradStdErr(TDEProcess*, char*, int))); +    connect(daemon, TQ_SIGNAL(processExited(TDEProcess *)), +	    this,   TQ_SLOT(  ocradExited(TDEProcess*))); +    connect(daemon, TQ_SIGNAL(receivedStdout(TDEProcess *, char*, int)), +	    this,   TQ_SLOT(  ocradStdIn(TDEProcess*, char*, int))); +    connect(daemon, TQ_SIGNAL(receivedStderr(TDEProcess *, char*, int)), +	    this,   TQ_SLOT(  ocradStdErr(TDEProcess*, char*, int)));      if (!daemon->start(TDEProcess::NotifyOnExit, TDEProcess::All))      { @@ -489,7 +489,7 @@ void KSANEOCR::startOCRProcess( void )     /* starting the animation, setting fields disabled */     m_ocrProcessDia->startOCR(); -   kapp->processEvents(); +   tdeApp->processEvents();     if( m_ocrEngine == OCRAD )     {         startOCRAD(); @@ -535,12 +535,12 @@ void KSANEOCR::startOCRProcess( void )         TQ_CHECK_PTR(daemon);         m_ocrResultText = ""; -       connect(daemon, TQT_SIGNAL(processExited(TDEProcess *)), -               this,   TQT_SLOT(  gocrExited(TDEProcess*))); -       connect(daemon, TQT_SIGNAL(receivedStdout(TDEProcess *, char*, int)), -               this,   TQT_SLOT(  gocrStdIn(TDEProcess*, char*, int))); -       connect(daemon, TQT_SIGNAL(receivedStderr(TDEProcess *, char*, int)), -               this,   TQT_SLOT(  gocrStdErr(TDEProcess*, char*, int))); +       connect(daemon, TQ_SIGNAL(processExited(TDEProcess *)), +               this,   TQ_SLOT(  gocrExited(TDEProcess*))); +       connect(daemon, TQ_SIGNAL(receivedStdout(TDEProcess *, char*, int)), +               this,   TQ_SLOT(  gocrStdIn(TDEProcess*, char*, int))); +       connect(daemon, TQ_SIGNAL(receivedStderr(TDEProcess *, char*, int)), +               this,   TQ_SLOT(  gocrStdErr(TDEProcess*, char*, int)));         TQString opt;         *daemon << TQFile::encodeName(cmd).data(); @@ -631,7 +631,7 @@ void KSANEOCR::startOCRProcess( void )  	   // rep.Recognize();  	   m_rep.run(); -	   /* Dealing with threads or no threads (using QT_THREAD_SUPPORT to distinguish) +	   /* Dealing with threads or no threads (using TQT_THREAD_SUPPORT to distinguish)  	    * If threads are here, the recognition task is started in its own thread. The gui thread  	    * needs to wait until the recognition thread is finished. Therefore, a timer is fired once  	    * that calls slotKadmosResult and checks if the recognition task is finished. If it is not, @@ -647,9 +647,9 @@ void KSANEOCR::startOCRProcess( void )  	    * It does not :( That is why it is not used here. Maybe some day...  	    */         } -#ifdef QT_THREAD_SUPPORT +#ifdef TQT_THREAD_SUPPORT         /* start a timer and wait until it fires. */ -       TQTimer::singleShot( 500, this, TQT_SLOT( slotKadmosResult() )); +       TQTimer::singleShot( 500, this, TQ_SLOT( slotKadmosResult() ));  #else         slotKadmosResult();  #endif @@ -660,7 +660,7 @@ void KSANEOCR::startOCRProcess( void )  /*   * This method is called to check if the kadmos process was already finished, if - * thread support is enabled (check for preprocessor variable QT_THREAD_SUPPORT) + * thread support is enabled (check for preprocessor variable TQT_THREAD_SUPPORT)   * The problem is that the kadmos library seems not to be thread stable so thread   * support should not be enabled by default. In case threads are enabled, this slot   * checks if the KADMOS engine is finished already and if not it fires a timer. @@ -703,7 +703,7 @@ void KSANEOCR::slotKadmosResult()      else      {          /* recognition thread is not yet finished. Wait another half a second. */ -        TQTimer::singleShot( 500, this, TQT_SLOT( slotKadmosResult() )); +        TQTimer::singleShot( 500, this, TQ_SLOT( slotKadmosResult() ));          /* Never comes here if no threads exist on the system */      }  #endif /* HAVE_KADMOS */ @@ -1127,7 +1127,7 @@ bool KSANEOCR::eventFilter( TQObject *object, TQEvent *event )      {          if( event->type() == TQEvent::MouseButtonDblClick )          { -            TQMouseEvent *mev = TQT_TQMOUSEEVENT(event); +            TQMouseEvent *mev = static_cast<TQMouseEvent*>(event);              int x = mev->x();              int y = mev->y(); @@ -1313,7 +1313,7 @@ void KSANEOCR::slMisspelling( const TQString& originalword, const TQStringList&      {          TQBrush brush;          brush.setColor( TQColor(red)); // , "Dense4Pattern" ); -        brush.setStyle( Qt::Dense4Pattern ); +        brush.setStyle( TQt::Dense4Pattern );          TQPen pen( red, 2 );          TQRect r = resWord.rect(); @@ -1347,18 +1347,18 @@ void KSANEOCR::slMisspelling( const TQString& originalword, const TQStringList&  void KSANEOCR::slSpellReady( KSpell *spell )  {      m_spell = spell; -    connect ( m_spell, TQT_SIGNAL( misspelling( const TQString&, const TQStringList&, +    connect ( m_spell, TQ_SIGNAL( misspelling( const TQString&, const TQStringList&,                                              unsigned int )), -              this, TQT_SLOT( slMisspelling(const TQString& , +              this, TQ_SLOT( slMisspelling(const TQString& ,                                          const TQStringList& ,                                          unsigned int  ))); -    connect( m_spell, TQT_SIGNAL( corrected ( const TQString&, const TQString&, unsigned int )), -             this, TQT_SLOT( slSpellCorrected( const TQString&, const TQString&, unsigned int ))); +    connect( m_spell, TQ_SIGNAL( corrected ( const TQString&, const TQString&, unsigned int )), +             this, TQ_SLOT( slSpellCorrected( const TQString&, const TQString&, unsigned int ))); -    connect( m_spell, TQT_SIGNAL( ignoreword( const TQString& )), -             this, TQT_SLOT( slSpellIgnoreWord( const TQString& ))); +    connect( m_spell, TQ_SIGNAL( ignoreword( const TQString& )), +             this, TQ_SLOT( slSpellIgnoreWord( const TQString& ))); -    connect( m_spell, TQT_SIGNAL( done(bool)), this, TQT_SLOT(slCheckListDone(bool))); +    connect( m_spell, TQ_SIGNAL( done(bool)), this, TQ_SLOT(slCheckListDone(bool)));      kdDebug(28000) << "Spellcheck available" << endl; | 
