diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-15 22:06:44 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-12-15 22:06:44 +0900 |
commit | af644c020106e7096d4fe9c648f25eede98c972f (patch) | |
tree | e20b7c4bc22bca994e80e6a798313b5800efce21 /tdeui | |
parent | a876c10e905fa357d43de03cf0fcb922cac9e4d5 (diff) | |
download | tdelibs-af644c020106e7096d4fe9c648f25eede98c972f.tar.gz tdelibs-af644c020106e7096d4fe9c648f25eede98c972f.zip |
Rename class KProcIO to TDEProcIO
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeui')
-rw-r--r-- | tdeui/kedittoolbar.cpp | 6 | ||||
-rw-r--r-- | tdeui/tdespell.cpp | 32 | ||||
-rw-r--r-- | tdeui/tdespell.h | 16 |
3 files changed, 27 insertions, 27 deletions
diff --git a/tdeui/kedittoolbar.cpp b/tdeui/kedittoolbar.cpp index 193a2e4ac..0d594c8f4 100644 --- a/tdeui/kedittoolbar.cpp +++ b/tdeui/kedittoolbar.cpp @@ -43,7 +43,7 @@ #include <tdelistview.h> #include <kdebug.h> #include <kpushbutton.h> -#include <kprocio.h> +#include <tdeprocio.h> static const char * const lineseparatorstring = I18N_NOOP("--- line separator ---"); static const char * const separatorstring = I18N_NOOP("--- separator ---"); @@ -357,7 +357,7 @@ public: KSeparator *m_comboSeparator; TQLabel * m_helpArea; KPushButton* m_changeIcon; - KProcIO* m_kdialogProcess; + TDEProcIO* m_kdialogProcess; bool m_hasKDialog; }; @@ -1387,7 +1387,7 @@ void KEditToolbarWidget::slotChangeIcon() if ( d->m_kdialogProcess && d->m_kdialogProcess->isRunning() ) return; - d->m_kdialogProcess = new KProcIO; + d->m_kdialogProcess = new TDEProcIO; TQString kdialogExe = TDEStandardDirs::findExe(TQString::fromLatin1("kdialog")); (*d->m_kdialogProcess) << kdialogExe; (*d->m_kdialogProcess) << "--embed"; diff --git a/tdeui/tdespell.cpp b/tdeui/tdespell.cpp index d2326412b..0e47a172c 100644 --- a/tdeui/tdespell.cpp +++ b/tdeui/tdespell.cpp @@ -44,7 +44,7 @@ #include "tdespell.h" #include "tdespelldlg.h" #include <twin.h> -#include <kprocio.h> +#include <tdeprocio.h> #define MAXLINELENGTH 10000 #undef IGNORE //fix possible conflict @@ -96,11 +96,11 @@ public: */ -// Connects a slot to KProcIO's output signal -#define OUTPUT(x) (connect (proc, TQ_SIGNAL (readReady(KProcIO *)), this, TQ_SLOT (x(KProcIO *)))) +// Connects a slot to TDEProcIO's output signal +#define OUTPUT(x) (connect (proc, TQ_SIGNAL (readReady(TDEProcIO *)), this, TQ_SLOT (x(TDEProcIO *)))) // Disconnect a slot from... -#define NOOUTPUT(x) (disconnect (proc, TQ_SIGNAL (readReady(KProcIO *)), this, TQ_SLOT (x(KProcIO *)))) +#define NOOUTPUT(x) (disconnect (proc, TQ_SIGNAL (readReady(TDEProcIO *)), this, TQ_SLOT (x(TDEProcIO *)))) @@ -319,7 +319,7 @@ KSpell::ispellErrors( TDEProcess *, char *buffer, int buflen ) // kdDebug(750) << "ispellErrors [" << buffer << "]\n" << endl; } -void KSpell::KSpell2( KProcIO * ) +void KSpell::KSpell2( TDEProcIO * ) { TQString line; @@ -555,7 +555,7 @@ bool KSpell::checkWord( const TQString & buffer, bool _usedialog, bool suggest ) return true; } -void KSpell::checkWord2( KProcIO* ) +void KSpell::checkWord2( TDEProcIO* ) { TQString word; TQString line; @@ -608,7 +608,7 @@ void KSpell::checkNext() } } -void KSpell::suggestWord( KProcIO * ) +void KSpell::suggestWord( TDEProcIO * ) { TQString word; TQString line; @@ -800,14 +800,14 @@ bool KSpell::checkList (TQStringList *_wordlist, bool _usedialog) lastpos = -1; checkList2(); - // when checked, KProcIO calls checkList3a + // when checked, TDEProcIO calls checkList3a OUTPUT(checkList3a); return true; } void KSpell::checkList2 () - // send one word from the list to KProcIO + // send one word from the list to TDEProcIO // invoked first time by checkList, later by checkListReplaceCurrent and checkList4 { // send next word @@ -837,8 +837,8 @@ void KSpell::checkList2 () } } -void KSpell::checkList3a (KProcIO *) - // invoked by KProcIO, when data from ispell are read +void KSpell::checkList3a (TDEProcIO *) + // invoked by TDEProcIO, when data from ispell are read { //kdDebug(750) << "start of checkList3a" << endl; @@ -961,7 +961,7 @@ void KSpell::checkList4 () //proc->disconnect(); //proc->kill(); //delete proc; - //proc = new KProcIO( codec ); + //proc = new TDEProcIO( codec ); //startIspell(); return; }; @@ -1006,7 +1006,7 @@ bool KSpell::check( const TQString &_buffer, bool _usedialog ) newbuffer = origbuffer; - // KProcIO calls check2 when read from ispell + // TDEProcIO calls check2 when read from ispell OUTPUT( check2 ); proc->writeStdin(TQString("!")); @@ -1033,8 +1033,8 @@ bool KSpell::check( const TQString &_buffer, bool _usedialog ) } -void KSpell::check2( KProcIO * ) - // invoked by KProcIO when read from ispell +void KSpell::check2( TDEProcIO * ) + // invoked by TDEProcIO when read from ispell { int e, tempe; TQString word; @@ -1564,7 +1564,7 @@ void KSpell::initialize( TQWidget *_parent, const TQString &_caption, // Hack for modal spell checking connect( this, TQ_SIGNAL(ready(KSpell *)), this, TQ_SLOT(slotModalReady()) ); - proc = new KProcIO( codec ); + proc = new TDEProcIO( codec ); startIspell(); } diff --git a/tdeui/tdespell.h b/tdeui/tdespell.h index 1ff854cfc..fd56928b5 100644 --- a/tdeui/tdespell.h +++ b/tdeui/tdespell.h @@ -27,7 +27,7 @@ #include <tdelibs_export.h> class TQTextCodec; -class KProcIO; +class TDEProcIO; class TDEProcess; class KSpellDlg; @@ -447,18 +447,18 @@ signals: protected slots: - /* All of those signals from KProcIO get sent here. */ - void KSpell2 (KProcIO *); - void checkWord2 (KProcIO *); + /* All of those signals from TDEProcIO get sent here. */ + void KSpell2 (TDEProcIO *); + void checkWord2 (TDEProcIO *); void checkWord3 (); - void check2 (KProcIO *); + void check2 (TDEProcIO *); void checkList2 (); - void checkList3a (KProcIO *); + void checkList3a (TDEProcIO *); void checkListReplaceCurrent (); void checkList4 (); void dialog2 (int dlgresult); void check3 (); - void suggestWord( KProcIO * ); + void suggestWord( TDEProcIO * ); void slotStopCancel (int); void ispellExit (TDEProcess *); @@ -492,7 +492,7 @@ signals: protected: - KProcIO *proc; + TDEProcIO *proc; TQWidget *parent; KSpellConfig *ksconfig; KSpellDlg *ksdlg; |