summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoSpeaker.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoSpeaker.h')
-rw-r--r--lib/kofficecore/KoSpeaker.h39
1 files changed, 20 insertions, 19 deletions
diff --git a/lib/kofficecore/KoSpeaker.h b/lib/kofficecore/KoSpeaker.h
index 6f8b430f..1e2d3188 100644
--- a/lib/kofficecore/KoSpeaker.h
+++ b/lib/kofficecore/KoSpeaker.h
@@ -24,9 +24,9 @@
#ifndef KOSPEAKER_H
#define KOSPEAKER_H
-// Qt includes.
-#include <qobject.h>
-#include <qstring.h>
+// TQt includes.
+#include <tqobject.h>
+#include <tqstring.h>
// KDE includes.
#include <ksharedptr.h>
@@ -34,8 +34,8 @@
// KOffice includes.
#include <koffice_export.h>
-class QWidget;
-class QPoint;
+class TQWidget;
+class TQPoint;
class KConfig;
class KoSpeakerPrivate;
@@ -51,7 +51,7 @@ class KoSpeakerPrivate;
* It will be replaced with a proper screen reading capability using the AT-SPI.
*
* This is quite a hack and doesn't work reliably. The following are current problems:
- * 1. Cannot speak menu items in a QMenuBar (top menu of app).
+ * 1. Cannot speak menu items in a TQMenuBar (top menu of app).
* 2. Doesn't understand every possible widget.
*
* This capability is @em not intended for completely blind users. Such users cannot use
@@ -60,9 +60,10 @@ class KoSpeakerPrivate;
*
* KOffice applications can access this object using the kospeaker global.
*/
-class KOFFICECORE_EXPORT KoSpeaker : public QObject, public KShared
+class KOFFICECORE_EXPORT KoSpeaker : public TQObject, public KShared
{
Q_OBJECT
+ TQ_OBJECT
public:
KoSpeaker();
~KoSpeaker();
@@ -96,21 +97,21 @@ public:
/**
* Given a widget @p w and its @p pos screen coordinates, tries to extract the text of the widget
* and speak it. If @p pos is not specified, and the widget has multiple parts (such as
- * a QListView), uses the current part.
+ * a TQListView), uses the current part.
* Call @ref isEnabled to ensure TTS is available before calling this method.
*/
- bool maybeSayWidget(QWidget* w, const QPoint& pos = QPoint());
+ bool maybeSayWidget(TQWidget* w, const TQPoint& pos = TQPoint());
/**
* Speak a @p msg that came from a widget, such as the widget's text label, tool tip, etc.
* Speaks using ScreenReaderOutput, which has highest priority, and therefore, should only be
* be used in very time-sensitive contexts and for short messages.
* Certain standard substitutions are performed on the message. For example, "Ctrl+" becomes
- * "control plus". "Qt" markup is stripped.
+ * "control plus". "TQt" markup is stripped.
* @returns true if anything is actually spoken.
* Call @ref isEnabled to ensure TTS is available before calling this method.
*/
- bool sayWidget(const QString& msg);
+ bool sayWidget(const TQString& msg);
/**
* Cancels speaking of widget. Usually called by slots that receive @ref customSpeakNewWidget
@@ -125,7 +126,7 @@ public:
* If @p first is false, appends to the already queued job.
* If the KTTSD daemon is not already running, it is started.
*/
- void queueSpeech(const QString& msg, const QString& langCode = QString(), bool first = true);
+ void queueSpeech(const TQString& msg, const TQString& langCode = TQString(), bool first = true);
/**
* Start speaking queued text job (if any).
@@ -156,7 +157,7 @@ signals:
* IMPORTANT: This signal is emitted from the @ref maybeSayWidget method. Slots who
* call maybeSayWidget should take care to avoid infinite recursion.
*/
- void customSpeakNewWidget(QWidget* w, const QPoint& p, uint flags);
+ void customSpeakNewWidget(TQWidget* w, const TQPoint& p, uint flags);
/**
* This signal is emitted each polling interval when KoSpeaker did not speak the widget
@@ -169,7 +170,7 @@ signals:
*
* IMPORTANT: This signal is emitted frequently. Receivers should be coded efficiently.
*/
- void customSpeakWidget(QWidget* w, const QPoint& p, uint flags);
+ void customSpeakWidget(TQWidget* w, const TQPoint& p, uint flags);
protected:
static KoSpeaker* KSpkr;
@@ -182,19 +183,19 @@ private slots:
void probe();
private:
- // int menuBarItemAt(QMenuBar* m, const QPoint& p);
+ // int menuBarItemAt(TQMenuBar* m, const TQPoint& p);
// Start the KTTSD daemon if not already running.
bool startKttsd();
// Return the KTTSD daemon version string.
- QString getKttsdVersion();
+ TQString getKttsdVersion();
// These methods correspond to dcop interface in kdelibs/interfaces/kspeech/kspeech.h.
// They use manual marshalling, instead of using kspeech_stub, because KOffice
// supports KDE 3.3 and above and kspeech.h didn't appear until 3.4.
- void sayScreenReaderOutput(const QString &msg, const QString &talker);
- uint setText(const QString &text, const QString &talker);
- int appendText(const QString &text, uint jobNum=0);
+ void sayScreenReaderOutput(const TQString &msg, const TQString &talker);
+ uint setText(const TQString &text, const TQString &talker);
+ int appendText(const TQString &text, uint jobNum=0);
void startText(uint jobNum=0);
void removeText(uint jobNum=0);