summaryrefslogtreecommitdiffstats
path: root/kttsd/app-plugins
diff options
context:
space:
mode:
Diffstat (limited to 'kttsd/app-plugins')
-rw-r--r--kttsd/app-plugins/kate/katekttsd.cpp36
-rw-r--r--kttsd/app-plugins/kate/katekttsd.h10
2 files changed, 23 insertions, 23 deletions
diff --git a/kttsd/app-plugins/kate/katekttsd.cpp b/kttsd/app-plugins/kate/katekttsd.cpp
index a2e64e6..47837fb 100644
--- a/kttsd/app-plugins/kate/katekttsd.cpp
+++ b/kttsd/app-plugins/kate/katekttsd.cpp
@@ -18,9 +18,9 @@
***************************************************************************/
// Qt includes.
-#include <qmessagebox.h>
+#include <tqmessagebox.h>
#include <dcopclient.h>
-#include <qtimer.h>
+#include <tqtimer.h>
// KDE includes.
#include <ktexteditor/editinterface.h>
@@ -38,7 +38,7 @@
K_EXPORT_COMPONENT_FACTORY( ktexteditor_kttsd, KGenericFactory<KateKttsdPlugin>( "ktexteditor_kttsd" ) )
-KateKttsdPlugin::KateKttsdPlugin( QObject *parent, const char* name, const QStringList& )
+KateKttsdPlugin::KateKttsdPlugin( TQObject *parent, const char* name, const TQStringList& )
: KTextEditor::Plugin ( (KTextEditor::Document*) parent, name )
{
}
@@ -68,13 +68,13 @@ void KateKttsdPlugin::removeView(KTextEditor::View *view)
KateKttsdPluginView::KateKttsdPluginView( KTextEditor::View *view, const char *name )
- : QObject( view, name ),
+ : TQObject( view, name ),
KXMLGUIClient( view )
{
view->insertChildClient( this );
setInstance( KGenericFactory<KateKttsdPlugin>::instance() );
KGlobal::locale()->insertCatalogue("kttsd");
- (void) new KAction( i18n("Speak Text"), "kttsd", 0, this, SLOT(slotReadOut()), actionCollection(), "tools_kttsd" );
+ (void) new KAction( i18n("Speak Text"), "kttsd", 0, this, TQT_SLOT(slotReadOut()), actionCollection(), "tools_kttsd" );
setXMLFile( "ktexteditor_kttsdui.rc" );
}
@@ -82,7 +82,7 @@ void KateKttsdPluginView::slotReadOut()
{
KTextEditor::View *v = (KTextEditor::View*)parent();
KTextEditor::SelectionInterface *si = KTextEditor::selectionInterface( v->document() );
- QString text;
+ TQString text;
if ( si->hasSelection() )
text = si->selection();
@@ -95,26 +95,26 @@ void KateKttsdPluginView::slotReadOut()
// If KTTSD not running, start it.
if (!client->isApplicationRegistered("kttsd"))
{
- QString error;
- if (kapp->startServiceByDesktopName("kttsd", QStringList(), &error))
- QMessageBox::warning(0, i18n( "Starting KTTSD Failed"), error );
+ TQString error;
+ if (kapp->startServiceByDesktopName("kttsd", TQStringList(), &error))
+ TQMessageBox::warning(0, i18n( "Starting KTTSD Failed"), error );
}
- QByteArray data;
- QByteArray data2;
- QCString replyType;
- QByteArray replyData;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data;
+ TQByteArray data2;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream arg(data, IO_WriteOnly);
arg << text << "";
- if ( !client->call("kttsd", "KSpeech", "setText(QString,QString)",
+ if ( !client->call("kttsd", "KSpeech", "setText(TQString,TQString)",
data, replyType, replyData, true) )
- QMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
+ TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
i18n( "The DCOP call setText failed." ));
- QDataStream arg2(data2, IO_WriteOnly);
+ TQDataStream arg2(data2, IO_WriteOnly);
arg2 << 0;
if ( !client->call("kttsd", "KSpeech", "startText(uint)",
data2, replyType, replyData, true) )
- QMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
+ TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ),
i18n( "The DCOP call startText failed." ));
}
diff --git a/kttsd/app-plugins/kate/katekttsd.h b/kttsd/app-plugins/kate/katekttsd.h
index cbab720..c30f3cf 100644
--- a/kttsd/app-plugins/kate/katekttsd.h
+++ b/kttsd/app-plugins/kate/katekttsd.h
@@ -23,26 +23,26 @@
#include <ktexteditor/plugin.h>
#include <ktexteditor/view.h>
#include <kxmlguiclient.h>
-#include <qobject.h>
+#include <tqobject.h>
class KateKttsdPlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
{
Q_OBJECT
public:
- KateKttsdPlugin( QObject *parent = 0,
+ KateKttsdPlugin( TQObject *parent = 0,
const char* name = 0,
- const QStringList &args = QStringList() );
+ const TQStringList &args = TQStringList() );
virtual ~KateKttsdPlugin();
void addView (KTextEditor::View *view);
void removeView (KTextEditor::View *view);
private:
- QPtrList<class KateKttsdPluginView> m_views;
+ TQPtrList<class KateKttsdPluginView> m_views;
};
-class KateKttsdPluginView : public QObject, public KXMLGUIClient
+class KateKttsdPluginView : public TQObject, public KXMLGUIClient
{
Q_OBJECT