summaryrefslogtreecommitdiffstats
path: root/ksayit
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:20:30 +0000
commit28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c (patch)
treea2f011f22aa31d0839c6e2118501b7a6d2f2ae96 /ksayit
parent0285229d858c8f03cde7354c679a752598cf4515 (diff)
downloadtdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.tar.gz
tdeaccessibility-28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1157633 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksayit')
-rw-r--r--ksayit/Freeverb_plugin/freeverbsetupimpl.cpp6
-rw-r--r--ksayit/Freeverb_plugin/freeverbsetupimpl.h4
-rw-r--r--ksayit/Freeverb_plugin/ksayitfreeverblib.cpp18
-rw-r--r--ksayit/Freeverb_plugin/ksayitfreeverblib.h18
-rw-r--r--ksayit/KTTSD_Lib/kttsdlib.cpp32
-rw-r--r--ksayit/KTTSD_Lib/kttsdlib.h16
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp12
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibsetupimpl.h2
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibtalker2.cpp30
-rw-r--r--ksayit/KTTSD_Lib/kttsdlibtalker2.h18
-rw-r--r--ksayit/src/DocTreeView.ui.h4
-rw-r--r--ksayit/src/Types.h22
-rw-r--r--ksayit/src/contextmenuhandler.cpp88
-rw-r--r--ksayit/src/contextmenuhandler.h46
-rw-r--r--ksayit/src/docbookclasses.cpp444
-rw-r--r--ksayit/src/docbookclasses.h136
-rw-r--r--ksayit/src/docbookgenerator.cpp120
-rw-r--r--ksayit/src/docbookgenerator.h36
-rw-r--r--ksayit/src/docbookparser.cpp132
-rw-r--r--ksayit/src/docbookparser.h30
-rw-r--r--ksayit/src/doctreeviewimpl.cpp268
-rw-r--r--ksayit/src/doctreeviewimpl.h30
-rw-r--r--ksayit/src/effectstack.cpp6
-rw-r--r--ksayit/src/fxpluginhandler.cpp46
-rw-r--r--ksayit/src/fxpluginhandler.h34
-rw-r--r--ksayit/src/fxsetupimpl.cpp20
-rw-r--r--ksayit/src/fxsetupimpl.h12
-rw-r--r--ksayit/src/ksayit.cpp196
-rw-r--r--ksayit/src/ksayit.h42
-rw-r--r--ksayit/src/ksayit_fxplugin.h10
-rw-r--r--ksayit/src/ksayit_ttsplugin.h22
-rw-r--r--ksayit/src/ksayitbookmarkhandler.cpp48
-rw-r--r--ksayit/src/ksayitbookmarkhandler.h20
-rw-r--r--ksayit/src/ksayitsystemtray.cpp58
-rw-r--r--ksayit/src/ksayitsystemtray.h40
-rw-r--r--ksayit/src/ksayitviewimpl.cpp12
-rw-r--r--ksayit/src/ksayitviewimpl.h16
-rw-r--r--ksayit/src/main.cpp2
-rw-r--r--ksayit/src/parasaxparser.cpp22
-rw-r--r--ksayit/src/parasaxparser.h18
-rw-r--r--ksayit/src/saxhandler.cpp56
-rw-r--r--ksayit/src/saxhandler.h46
-rw-r--r--ksayit/src/voicesetupdlg.cpp44
-rw-r--r--ksayit/src/voicesetupdlg.h8
44 files changed, 1145 insertions, 1145 deletions
diff --git a/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp b/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp
index cf16c0d..4fd00be 100644
--- a/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp
+++ b/ksayit/Freeverb_plugin/freeverbsetupimpl.cpp
@@ -19,8 +19,8 @@
using namespace std;
// QT includes
-#include <qslider.h>
-#include <qlcdnumber.h>
+#include <tqslider.h>
+#include <tqlcdnumber.h>
// KDE includes
#include <kdebug.h>
@@ -28,7 +28,7 @@ using namespace std;
// App specific includes
#include "freeverbsetupimpl.h"
-FreeverbSetupImpl::FreeverbSetupImpl(QWidget *parent, const char *name, bool modal, KConfig *config )
+FreeverbSetupImpl::FreeverbSetupImpl(TQWidget *parent, const char *name, bool modal, KConfig *config )
: Freeverb_Setup(parent,name,modal), m_config(config) {
// initialize Widgets
diff --git a/ksayit/Freeverb_plugin/freeverbsetupimpl.h b/ksayit/Freeverb_plugin/freeverbsetupimpl.h
index 8bee5bb..b243faf 100644
--- a/ksayit/Freeverb_plugin/freeverbsetupimpl.h
+++ b/ksayit/Freeverb_plugin/freeverbsetupimpl.h
@@ -19,7 +19,7 @@
#define FREEVERBSETUPIMPL_H
// QT includes
-#include <qwidget.h>
+#include <tqwidget.h>
// KDE includes
#include <kconfig.h>
@@ -34,7 +34,7 @@
class FreeverbSetupImpl : public Freeverb_Setup {
Q_OBJECT
public:
- FreeverbSetupImpl(QWidget *parent=0, const char *name=0, bool modal=true, KConfig *config=0);
+ FreeverbSetupImpl(TQWidget *parent=0, const char *name=0, bool modal=true, KConfig *config=0);
~FreeverbSetupImpl();
public slots:
diff --git a/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp b/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp
index 1edf874..bb91885 100644
--- a/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp
+++ b/ksayit/Freeverb_plugin/ksayitfreeverblib.cpp
@@ -11,8 +11,8 @@
//
// QT includes
-// #include <qtextcodec.h>
-#include <qstringlist.h>
+// #include <tqtextcodec.h>
+#include <tqstringlist.h>
// KDE includes
#include <kdebug.h>
@@ -41,19 +41,19 @@ KInstance *FreeverbPluginFactory::p_instance = 0L;
// Factory Constructor
-FreeverbPluginFactory::FreeverbPluginFactory(QObject *parent, const char* name)
+FreeverbPluginFactory::FreeverbPluginFactory(TQObject *parent, const char* name)
{
p_instance = new KInstance("FreeverbPluginFactory");
}
-QObject* FreeverbPluginFactory::createObject(QObject *parent, const char* name,
+TQObject* FreeverbPluginFactory::createObject(TQObject *parent, const char* name,
const char*,
- const QStringList &)
+ const TQStringList &)
{
kdDebug(100200) << "FreeverbPluginFactory::createObject()" << endl;
- QObject* obj = new FreeverbPlugin( parent, name );
+ TQObject* obj = new FreeverbPlugin( parent, name );
emit objectCreated( obj );
return obj;
}
@@ -62,7 +62,7 @@ QObject* FreeverbPluginFactory::createObject(QObject *parent, const char* name,
// Plugin Constructor
-FreeverbPlugin::FreeverbPlugin(QObject *parent, const char* name) //, KApplication *Appl)
+FreeverbPlugin::FreeverbPlugin(TQObject *parent, const char* name) //, KApplication *Appl)
: FXPlugin(parent, name) //, m_Appl(Appl)
{
m_config = new KSimpleConfig("ksayit_freeverbrc");
@@ -84,14 +84,14 @@ void FreeverbPlugin::setApplication(KApplication *Appl)
/** returns the Name of the Plugin
*/
-QString FreeverbPlugin::getName_KS() const
+TQString FreeverbPlugin::getName_KS() const
{
return "Synth_FREEVERB";
}
/** returns a description of the plugin
*/
-QString FreeverbPlugin::getDescription_KS() const
+TQString FreeverbPlugin::getDescription_KS() const
{
return i18n("This is a freeverb effect.");
}
diff --git a/ksayit/Freeverb_plugin/ksayitfreeverblib.h b/ksayit/Freeverb_plugin/ksayitfreeverblib.h
index 50bfa62..e9731d4 100644
--- a/ksayit/Freeverb_plugin/ksayitfreeverblib.h
+++ b/ksayit/Freeverb_plugin/ksayitfreeverblib.h
@@ -13,8 +13,8 @@
#define KSAYITFREEVERBLIB_H
// QT includes
-#include <qobject.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
// KDE includes
#include <ksimpleconfig.h>
@@ -29,14 +29,14 @@ class FreeverbPluginFactory : public KLibFactory
Q_OBJECT
public:
// Consturctor
- FreeverbPluginFactory(QObject *parent=0, const char* name=0);
+ FreeverbPluginFactory(TQObject *parent=0, const char* name=0);
// Destructor
virtual ~FreeverbPluginFactory(){ delete p_instance; };
- QObject* createObject(QObject *parent=0, const char* name=0,
- const char* className="QObject",
- const QStringList &args=QStringList());
+ TQObject* createObject(TQObject *parent=0, const char* name=0,
+ const char* className="TQObject",
+ const TQStringList &args=TQStringList());
private:
static KInstance* p_instance;
@@ -52,7 +52,7 @@ class FreeverbPlugin : public FXPlugin
Q_OBJECT
public:
// Constructor
- FreeverbPlugin(QObject *parent=0, const char* name=0); //, KApplication *Appl=0);
+ FreeverbPlugin(TQObject *parent=0, const char* name=0); //, KApplication *Appl=0);
// Destructor
~FreeverbPlugin();
@@ -63,11 +63,11 @@ public:
/** returns the Name of the Plugin
*/
- QString getName_KS() const;
+ TQString getName_KS() const;
/** returns a description of the plugin
*/
- QString getDescription_KS() const;
+ TQString getDescription_KS() const;
/** shows the GUI to configure the plugin
*/
diff --git a/ksayit/KTTSD_Lib/kttsdlib.cpp b/ksayit/KTTSD_Lib/kttsdlib.cpp
index 224cd21..f41670b 100644
--- a/ksayit/KTTSD_Lib/kttsdlib.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlib.cpp
@@ -12,8 +12,8 @@
// #include <time.h> // nanosleep
// Qt includes
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
// KDE includes
#include <kglobal.h>
@@ -27,17 +27,17 @@
#include "kttsdlibsetupimpl.h"
-KTTSDLib::KTTSDLib(QObject *parent, const char *name, KApplication *Appl)
- : QObject(parent, name), m_Appl(Appl)
+KTTSDLib::KTTSDLib(TQObject *parent, const char *name, KApplication *Appl)
+ : TQObject(parent, name), m_Appl(Appl)
{
KGlobal::locale()->insertCatalogue("libKTTSD");
- m_talker = new kttsdlibtalker2(static_cast<QObject*>(this), "kttsdlibtalker");
- connect(m_talker, SIGNAL(signalTextFinished(const uint)),
- this, SLOT(slotTextFinished(const uint)) );
- connect(m_talker, SIGNAL(signalTextStopped(const uint)),
- this, SLOT(slotTextStopped(const uint)) );
- connect(m_talker, SIGNAL(signalTextStarted(const uint)),
- this, SLOT(slotTextStarted(const uint)) );
+ m_talker = new kttsdlibtalker2(static_cast<TQObject*>(this), "kttsdlibtalker");
+ connect(m_talker, TQT_SIGNAL(signalTextFinished(const uint)),
+ this, TQT_SLOT(slotTextFinished(const uint)) );
+ connect(m_talker, TQT_SIGNAL(signalTextStopped(const uint)),
+ this, TQT_SLOT(slotTextStopped(const uint)) );
+ connect(m_talker, TQT_SIGNAL(signalTextStarted(const uint)),
+ this, TQT_SLOT(slotTextStarted(const uint)) );
// reset list of currently processed jobs
while ( !jobList.empty() ){
@@ -59,15 +59,15 @@ KTTSDLib::~KTTSDLib()
}
-QString KTTSDLib::getName() const
+TQString KTTSDLib::getName() const
{
return "KDE KTTSD";
}
-QString KTTSDLib::getDescription() const
+TQString KTTSDLib::getDescription() const
{
- QString str;
+ TQString str;
str = i18n("<qt><big><u>Description:</u></big><br>");
str += i18n("This plugin uses the KDE TTS Daemon for speech output.");
@@ -87,7 +87,7 @@ int KTTSDLib::getStatus() const
}
-const QWidget* KTTSDLib::getGUI(QFrame *frame)
+const TQWidget* KTTSDLib::getGUI(TQFrame *frame)
{
kdDebug(100200) << "KTTSDLib::getGUI()" << endl;
@@ -111,7 +111,7 @@ bool KTTSDLib::saveWasClicked() const
}
-void KTTSDLib::setText(const QString &text)
+void KTTSDLib::setText(const TQString &text)
{
kdDebug(100200) << "KTTSDLib::setText()" << endl;
diff --git a/ksayit/KTTSD_Lib/kttsdlib.h b/ksayit/KTTSD_Lib/kttsdlib.h
index 6d8de9b..eb57912 100644
--- a/ksayit/KTTSD_Lib/kttsdlib.h
+++ b/ksayit/KTTSD_Lib/kttsdlib.h
@@ -17,9 +17,9 @@
using namespace std;
// QT includes
-#include <qobject.h>
-#include <qwidget.h>
-#include <qframe.h>
+#include <tqobject.h>
+#include <tqwidget.h>
+#include <tqframe.h>
#include <kdemacros.h>
#include "kdeexportfix.h"
@@ -70,25 +70,25 @@ public slots:
void slotTextStarted(const uint job);
public:
- KTTSDLib(QObject *parent=0, const char *name=0, KApplication *Appl=0);
+ KTTSDLib(TQObject *parent=0, const char *name=0, KApplication *Appl=0);
~KTTSDLib();
/** Reimplementations from the base class.
*/
- QString getName() const;
+ TQString getName() const;
- QString getDescription() const;
+ TQString getDescription() const;
int getActions();
- const QWidget* getGUI(QFrame *frame);
+ const TQWidget* getGUI(TQFrame *frame);
void reloadConfiguration();
bool saveWasClicked() const;
- void setText(const QString &text);
+ void setText(const TQString &text);
void sayText();
diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
index 0c7bc8f..1cb8bc9 100644
--- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp
@@ -13,7 +13,7 @@
#include <stdio.h>
// Qt includes
-#include <qpushbutton.h>
+#include <tqpushbutton.h>
// KDE includes
#include <kdebug.h>
@@ -23,7 +23,7 @@
// App specific includes
#include "kttsdlibsetupimpl.h"
-KTTSDlibSetupImpl::KTTSDlibSetupImpl(QWidget *parent, const char *name)
+KTTSDlibSetupImpl::KTTSDlibSetupImpl(TQWidget *parent, const char *name)
: KTTSDlibSetup(parent, name)
{
}
@@ -47,16 +47,16 @@ void KTTSDlibSetupImpl::slotLaunchControlcenter()
fgets(cmdresult, 18, fp);
pclose(fp);
}
- if ( !QCString(cmdresult).contains("kcmkttsd") ){
- QString error = i18n("Control Center Module for KTTSD not found.");
+ if ( !TQCString(cmdresult).contains("kcmkttsd") ){
+ TQString error = i18n("Control Center Module for KTTSD not found.");
KMessageBox::sorry(this, error, i18n("Problem"));
return;
}
// invoke the Control Center Module
KProcess *kcmproc = new KProcess();
- connect(kcmproc, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotKCMProcessExited(KProcess*)) );
+ connect(kcmproc, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotKCMProcessExited(KProcess*)) );
(*kcmproc) << "kcmshell";
(*kcmproc) << "kcmkttsd";
kcmproc->start(KProcess::NotifyOnExit);
diff --git a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
index 1fcf585..cd36430 100644
--- a/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
+++ b/ksayit/KTTSD_Lib/kttsdlibsetupimpl.h
@@ -27,7 +27,7 @@ class KTTSDlibSetupImpl : public KTTSDlibSetup
{
Q_OBJECT
public:
- KTTSDlibSetupImpl(QWidget *parent = 0, const char *name = 0);
+ KTTSDlibSetupImpl(TQWidget *parent = 0, const char *name = 0);
~KTTSDlibSetupImpl();
diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
index 808f8f2..c88a96b 100644
--- a/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
+++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.cpp
@@ -13,7 +13,7 @@
#include <unistd.h> //sleep
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kdebug.h>
@@ -21,22 +21,22 @@
// App specific includes
#include "kttsdlibtalker2.h"
-kttsdlibtalker2::kttsdlibtalker2(QObject *parent, const char *name)
- : QObject(parent, name), DCOPStub("kttsd", "KSpeech")
+kttsdlibtalker2::kttsdlibtalker2(TQObject *parent, const char *name)
+ : TQObject(parent, name), DCOPStub("kttsd", "KSpeech")
{
m_client = NULL;
connectDCOPSignal("kttsd", "KSpeech",
- "textStarted(QCString, uint)",
- "textStarted(QCString, uint)", false);
+ "textStarted(TQCString, uint)",
+ "textStarted(TQCString, uint)", false);
connectDCOPSignal("kttsd", "KSpeech",
- "textFinished(QCString, uint)",
- "textFinished(QCString, uint)", false);
+ "textFinished(TQCString, uint)",
+ "textFinished(TQCString, uint)", false);
connectDCOPSignal("kttsd", "KSpeech",
- "textStopped(QCString, uint)",
- "textStopped(QCString, uint)", false);
+ "textStopped(TQCString, uint)",
+ "textStopped(TQCString, uint)", false);
}
@@ -52,8 +52,8 @@ void kttsdlibtalker2::KTTSD_init(KApplication *Appl)
m_client = Appl->dcopClient();
if ( !m_client->isApplicationRegistered("kttsd")){
- QString error;
- if ( Appl->startServiceByDesktopName("kttsd", QStringList(), &error) ){
+ TQString error;
+ if ( Appl->startServiceByDesktopName("kttsd", TQStringList(), &error) ){
// throw(error);
kdDebug() << "Starting KTTSD failed with message " << error << endl;
}
@@ -64,7 +64,7 @@ void kttsdlibtalker2::KTTSD_init(KApplication *Appl)
}
-uint kttsdlibtalker2::KTTSD_setText(const QString &text, QString lang)
+uint kttsdlibtalker2::KTTSD_setText(const TQString &text, TQString lang)
{
kdDebug(100200) << "kttsdlibtalker2::KTTSD_setText()" << endl;
uint jobNum = setText(text, lang);
@@ -134,7 +134,7 @@ int kttsdlibtalker2::KTTSD_getCurrentTextJob()
// DCOP signals
////////////////////////////////////////////
-ASYNC kttsdlibtalker2::textStarted(const QCString &appID,
+ASYNC kttsdlibtalker2::textStarted(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textStarted()" << endl;
@@ -144,7 +144,7 @@ ASYNC kttsdlibtalker2::textStarted(const QCString &appID,
}
-ASYNC kttsdlibtalker2::textFinished(const QCString &appID,
+ASYNC kttsdlibtalker2::textFinished(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textFinished()" << endl;
@@ -154,7 +154,7 @@ ASYNC kttsdlibtalker2::textFinished(const QCString &appID,
}
-ASYNC kttsdlibtalker2::textStopped(const QCString &appID,
+ASYNC kttsdlibtalker2::textStopped(const TQCString &appID,
const uint jobNum)
{
kdDebug(100200) << "*** kttsdlibtalker2::textStopped()" << endl;
diff --git a/ksayit/KTTSD_Lib/kttsdlibtalker2.h b/ksayit/KTTSD_Lib/kttsdlibtalker2.h
index e39f1c8..29b6371 100644
--- a/ksayit/KTTSD_Lib/kttsdlibtalker2.h
+++ b/ksayit/KTTSD_Lib/kttsdlibtalker2.h
@@ -13,8 +13,8 @@
#define KTTSDLIBTALKER2_H
// Qt includes
-#include <qobject.h>
-#include <qcstring.h>
+#include <tqobject.h>
+#include <tqcstring.h>
#include <kspeech_stub.h>
#include <kspeechsink.h>
@@ -26,7 +26,7 @@
/**
@author Robert Vogl
*/
-class kttsdlibtalker2 : public QObject, public KSpeech_stub, virtual public KSpeechSink
+class kttsdlibtalker2 : public TQObject, public KSpeech_stub, virtual public KSpeechSink
{
Q_OBJECT
@@ -36,7 +36,7 @@ signals:
void signalTextStopped(const uint);
public:
- kttsdlibtalker2(QObject *parent = 0, const char *name = 0);
+ kttsdlibtalker2(TQObject *parent = 0, const char *name = 0);
~kttsdlibtalker2();
@@ -46,7 +46,7 @@ public:
/** See \p KSpeech Class Reference. Returns the job number.
*/
- uint KTTSD_setText(const QString &text, QString lang);
+ uint KTTSD_setText(const TQString &text, TQString lang);
/** See \p KSpeech Class Reference.
*/
@@ -85,12 +85,12 @@ protected:
////////////////////////////////////////////
// Slots for DCOP signals
////////////////////////////////////////////
- ASYNC textStarted(const QCString &appID, const uint jobNum);
- ASYNC textFinished(const QCString &appID, const uint jobNum);
- ASYNC textStopped(const QCString &appID, const uint jobNum);
+ ASYNC textStarted(const TQCString &appID, const uint jobNum);
+ ASYNC textFinished(const TQCString &appID, const uint jobNum);
+ ASYNC textStopped(const TQCString &appID, const uint jobNum);
private:
- QCString m_objID;
+ TQCString m_objID;
KApplication *m_Appl;
DCOPClient *m_client;
uint m_jobNum;
diff --git a/ksayit/src/DocTreeView.ui.h b/ksayit/src/DocTreeView.ui.h
index 39720c1..9807a7c 100644
--- a/ksayit/src/DocTreeView.ui.h
+++ b/ksayit/src/DocTreeView.ui.h
@@ -11,7 +11,7 @@
*****************************************************************************/
-void DocTreeView::slotItemClicked( QListViewItem * )
+void DocTreeView::slotItemClicked( TQListViewItem * )
{
}
@@ -126,7 +126,7 @@ void DocTreeView::slotNewSection_5()
}
-void DocTreeView::slotRightButtonPressed( QListViewItem *i, const QPoint &, int )
+void DocTreeView::slotRightButtonPressed( TQListViewItem *i, const TQPoint &, int )
{
}
diff --git a/ksayit/src/Types.h b/ksayit/src/Types.h
index 017f721..506e67f 100644
--- a/ksayit/src/Types.h
+++ b/ksayit/src/Types.h
@@ -21,14 +21,14 @@
// #include <vector>
// QT includes
-#include <qvaluelist.h>
-#include <qmap.h>
+#include <tqvaluelist.h>
+#include <tqmap.h>
// KDE includes
#include <klistview.h>
-typedef QValueList<int> ParameterList_type;
-typedef QMap<QString, ParameterList_type> EffectConfig_type;
+typedef TQValueList<int> ParameterList_type;
+typedef TQMap<TQString, ParameterList_type> EffectConfig_type;
namespace KSayItGlobal {
static const int item_initial_id = 100;
@@ -54,9 +54,9 @@ This abstract class is the interface to access the items of the TreeView.
class ListViewInterface : public KListViewItem
{
public:
- ListViewInterface(ListViewInterface *parent=0, QString label=QString::null);
- ListViewInterface(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
- ListViewInterface(KListView *lv=0, QString label=QString::null);
+ ListViewInterface(ListViewInterface *parent=0, TQString label=TQString::null);
+ ListViewInterface(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
+ ListViewInterface(KListView *lv=0, TQString label=TQString::null);
// ~ListViewItemInterface();
@@ -67,15 +67,15 @@ public:
* \returns <tt>true</tt> if the operation was successfully performed,
* in all other cases <tt>false</tt>.
*/
- virtual bool setValue( unsigned int index, QVariant data ) = 0;
+ virtual bool setValue( unsigned int index, TQVariant data ) = 0;
/**
* Requests data from the item referenced by the index.
* \param index See <tt>setValue()</tt>.
- * \returns The requested data as a <tt>QVariant</tt> or a invalid
- * <tt>QVariant()</tt> if the data was not available.
+ * \returns The requested data as a <tt>TQVariant</tt> or a invalid
+ * <tt>TQVariant()</tt> if the data was not available.
*/
- virtual QVariant getValue( unsigned int index ) const = 0;
+ virtual TQVariant getValue( unsigned int index ) const = 0;
};
diff --git a/ksayit/src/contextmenuhandler.cpp b/ksayit/src/contextmenuhandler.cpp
index 311a39a..26e8831 100644
--- a/ksayit/src/contextmenuhandler.cpp
+++ b/ksayit/src/contextmenuhandler.cpp
@@ -11,8 +11,8 @@
//
// Qt includes
-#include <qfile.h>
-#include <qvariant.h>
+#include <tqfile.h>
+#include <tqvariant.h>
// KDE includes
#include <kdebug.h>
@@ -29,14 +29,14 @@
* XML-ActionHandler
*/
ContextActionHandler::ContextActionHandler(ContextMenuHandler *menuhandler)
- : QXmlDefaultHandler(), m_menuhandler(menuhandler)
+ : TQXmlDefaultHandler(), m_menuhandler(menuhandler)
{
- m_subName = QString::null;
- m_actionName = QString::null;
- m_qty = QString::null;
+ m_subName = TQString::null;
+ m_actionName = TQString::null;
+ m_qty = TQString::null;
m_popup = menuhandler->m_popupmenu;
m_hit = false;
- m_searchID = QString::null;
+ m_searchID = TQString::null;
}
ContextActionHandler::~ContextActionHandler()
@@ -44,16 +44,16 @@ ContextActionHandler::~ContextActionHandler()
}
-void ContextActionHandler::setSearchID( const QString xmlID )
+void ContextActionHandler::setSearchID( const TQString xmlID )
{
m_searchID = xmlID;
}
-bool ContextActionHandler::startElement( const QString &,
- const QString &,
- const QString &qName,
- const QXmlAttributes &atts )
+bool ContextActionHandler::startElement( const TQString &,
+ const TQString &,
+ const TQString &qName,
+ const TQXmlAttributes &atts )
{
if ( qName == "Item" ){
if ( atts.value("id") == m_searchID ){
@@ -84,9 +84,9 @@ bool ContextActionHandler::startElement( const QString &,
}
-bool ContextActionHandler::endElement( const QString &,
- const QString &,
- const QString &qName )
+bool ContextActionHandler::endElement( const TQString &,
+ const TQString &,
+ const TQString &qName )
{
if ( !(m_hit && m_menuhandler->m_popupmenu) )
return true;
@@ -106,7 +106,7 @@ bool ContextActionHandler::endElement( const QString &,
}
-bool ContextActionHandler::characters( const QString &ch )
+bool ContextActionHandler::characters( const TQString &ch )
{
m_actionName += ch;
return true;
@@ -117,8 +117,8 @@ bool ContextActionHandler::characters( const QString &ch )
/**
* MenuHandler
*/
-ContextMenuHandler::ContextMenuHandler(QObject *parent, const char *name)
- : QObject(parent, name), m_DocTreeView(parent)
+ContextMenuHandler::ContextMenuHandler(TQObject *parent, const char *name)
+ : TQObject(parent, name), m_DocTreeView(parent)
{
m_popupmenu = NULL;
m_item = NULL;
@@ -158,75 +158,75 @@ void ContextMenuHandler::initActions()
// User defined actions
renameItem = new KAction (i18n("Rename..."),
0,
- m_DocTreeView, SLOT (slotRenameItem()), NULL );
+ m_DocTreeView, TQT_SLOT (slotRenameItem()), NULL );
deleteItem = new KAction (i18n("Delete..."),
0,
- m_DocTreeView, SLOT (slotDeleteItem()), NULL );
+ m_DocTreeView, TQT_SLOT (slotDeleteItem()), NULL );
newBookInfo = new KAction ( i18n("Overview"),
0,
- m_DocTreeView, SLOT (slotNewBookInfo()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewBookInfo()), NULL );
newChapter = new KAction ( i18n("Chapter"),
0,
- m_DocTreeView, SLOT (slotNewChapter()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewChapter()), NULL );
newKeywordSet = new KAction ( i18n("Keywords"),
0,
- m_DocTreeView, SLOT (slotNewKeywordSet()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewKeywordSet()), NULL );
newKeyword = new KAction ( i18n("Keyword"),
0,
- m_DocTreeView, SLOT (slotNewKeyword()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewKeyword()), NULL );
newAbstract = new KAction ( i18n("Abstract"),
0,
- m_DocTreeView, SLOT (slotNewAbstract()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewAbstract()), NULL );
newAuthorGroup = new KAction ( i18n("Authors"),
0,
- m_DocTreeView, SLOT (slotNewAuthorGroup()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewAuthorGroup()), NULL );
newAuthor = new KAction ( i18n("Author"),
0,
- m_DocTreeView, SLOT (slotNewAuthor()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewAuthor()), NULL );
newDate = new KAction ( i18n("Date"),
0,
- m_DocTreeView, SLOT (slotNewDate()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewDate()), NULL );
newReleaseInfo = new KAction ( i18n("Release Info"),
0,
- m_DocTreeView, SLOT (slotNewReleaseInfo()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewReleaseInfo()), NULL );
newTitle = new KAction ( i18n("Title"),
0,
- m_DocTreeView, SLOT (slotNewTitle()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewTitle()), NULL );
newParagraph = new KAction ( i18n("Paragraph"),
0,
- m_DocTreeView, SLOT (slotNewParagraph()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewParagraph()), NULL );
newSection_1 = new KAction ( i18n("Section Level 1"),
0,
- m_DocTreeView, SLOT (slotNewSection_1()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_1()), NULL );
newSection_2 = new KAction ( i18n("Section Level 2"),
0,
- m_DocTreeView, SLOT (slotNewSection_2()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_2()), NULL );
newSection_3 = new KAction ( i18n("Section Level 3"),
0,
- m_DocTreeView, SLOT (slotNewSection_3()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_3()), NULL );
newSection_4 = new KAction ( i18n("Section Level 4"),
0,
- m_DocTreeView, SLOT (slotNewSection_4()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_4()), NULL );
newSection_5 = new KAction ( i18n("Section Level 5"),
0,
- m_DocTreeView, SLOT (slotNewSection_5()), NULL );
+ m_DocTreeView, TQT_SLOT (slotNewSection_5()), NULL );
}
@@ -237,7 +237,7 @@ KPopupMenu* ContextMenuHandler::getPopupMenu(ListViewInterface *item)
m_item = item;
- QString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( xmlID.isNull() )
return NULL;
@@ -268,7 +268,7 @@ void ContextMenuHandler::registerPopupMenu(ListViewInterface *item)
m_item = item;
- QString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString xmlID = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( xmlID.isNull() )
return;
@@ -283,13 +283,13 @@ void ContextMenuHandler::registerPopupMenu(ListViewInterface *item)
}
-bool ContextMenuHandler::parseXmlFile(const QString &xmlID)
+bool ContextMenuHandler::parseXmlFile(const TQString &xmlID)
{
kdDebug(100200) << "ContextMenuHandler::parseXmlFile()" << endl;
kdDebug(100200) << "XML-File: " << m_XmlFilePath << endl;
- QFile xmlFile( m_XmlFilePath );
- QXmlSimpleReader parser;
+ TQFile xmlFile( m_XmlFilePath );
+ TQXmlSimpleReader parser;
ContextActionHandler handler(this);
handler.setSearchID(xmlID);
parser.setContentHandler( &handler );
@@ -297,7 +297,7 @@ bool ContextMenuHandler::parseXmlFile(const QString &xmlID)
}
-KAction* ContextMenuHandler::ActionFactory( const QString &actionName, const QString &qty )
+KAction* ContextMenuHandler::ActionFactory( const TQString &actionName, const TQString &qty )
{
bool enabled;
if ( qty.lower() == "n" ){
@@ -307,7 +307,7 @@ KAction* ContextMenuHandler::ActionFactory( const QString &actionName, const QSt
// check if qty is within allowed limits
ListViewInterface *i = static_cast<ListViewInterface*>(m_item->firstChild());
int count = 0;
- QString name = QString::null;
+ TQString name = TQString::null;
while (i){
name = ( i->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( name.lower() == actionName.lower() ){
@@ -391,7 +391,7 @@ void ContextMenuHandler::setItemEditable( bool editable )
}
-void ContextMenuHandler::setItemMaxlines( const QString &maxlines )
+void ContextMenuHandler::setItemMaxlines( const TQString &maxlines )
{
if ( maxlines == "" )
return;
diff --git a/ksayit/src/contextmenuhandler.h b/ksayit/src/contextmenuhandler.h
index 102181a..148bb04 100644
--- a/ksayit/src/contextmenuhandler.h
+++ b/ksayit/src/contextmenuhandler.h
@@ -13,9 +13,9 @@
#define CONTEXTMENUHANDLER_H
// Qt includes
-#include <qobject.h>
-#include <qstring.h>
-#include <qxml.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqxml.h>
// KDE includes
#include <kaction.h>
@@ -28,36 +28,36 @@ class ListViewInterface;
/**
@author Robert Vogl
*/
-class ContextActionHandler : public QXmlDefaultHandler
+class ContextActionHandler : public TQXmlDefaultHandler
{
public:
ContextActionHandler(ContextMenuHandler *menuhandler = 0);
~ContextActionHandler();
// Reimplementations from base class
- bool startElement( const QString &namespaceURI,
- const QString &localName,
- const QString &qName,
- const QXmlAttributes &atts );
+ bool startElement( const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName,
+ const TQXmlAttributes &atts );
// Reimplementations from base class
- bool endElement( const QString &namespaceURI,
- const QString &localName,
- const QString &qName );
+ bool endElement( const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName );
// Reimplementations from base class
- bool characters( const QString &ch );
+ bool characters( const TQString &ch );
- void setSearchID( const QString xmlID );
+ void setSearchID( const TQString xmlID );
private:
ContextMenuHandler *m_menuhandler;
- QString m_subName;
- QString m_actionName;
- QString m_qty;
+ TQString m_subName;
+ TQString m_actionName;
+ TQString m_qty;
KPopupMenu *m_popup;
bool m_hit;
- QString m_searchID;
+ TQString m_searchID;
};
@@ -68,7 +68,7 @@ class ContextMenuHandler : public QObject
{
Q_OBJECT
public:
- ContextMenuHandler(QObject *parent = 0, const char *name = 0);
+ ContextMenuHandler(TQObject *parent = 0, const char *name = 0);
~ContextMenuHandler();
@@ -94,7 +94,7 @@ public:
* given element.
* \returns A Pointer to the action.
*/
- KAction* ActionFactory( const QString &actionName, const QString &qty );
+ KAction* ActionFactory( const TQString &actionName, const TQString &qty );
/**
* Creates a Popup context menu for the given item and stores a
@@ -111,11 +111,11 @@ public:
* Sets the number of lines a editable item can hold.
* -1 = unlimited.
*/
- void setItemMaxlines( const QString &maxlines );
+ void setItemMaxlines( const TQString &maxlines );
private: // Methods
void initActions();
- bool parseXmlFile(const QString &xmlID);
+ bool parseXmlFile(const TQString &xmlID);
public: // Attributes
KPopupMenu* m_popupmenu;
@@ -143,9 +143,9 @@ private:
KAction* newSection_5;
// mixed stuff
- QString m_XmlFilePath;
+ TQString m_XmlFilePath;
ListViewInterface* m_item;
- QObject* m_DocTreeView;
+ TQObject* m_DocTreeView;
};
diff --git a/ksayit/src/docbookclasses.cpp b/ksayit/src/docbookclasses.cpp
index 7e5c677..9a3af1b 100644
--- a/ksayit/src/docbookclasses.cpp
+++ b/ksayit/src/docbookclasses.cpp
@@ -10,11 +10,11 @@
//
//
// Qt includes
-#include <qwidget.h>
-#include <qtextstream.h>
-#include <qpixmap.h>
-#include <qregexp.h>
-#include <qstringlist.h>
+#include <tqwidget.h>
+#include <tqtextstream.h>
+#include <tqpixmap.h>
+#include <tqregexp.h>
+#include <tqstringlist.h>
//KDE includes
#include <kdebug.h>
@@ -31,16 +31,16 @@
//////////////////////////////////////
// Interface
//////////////////////////////////////
-ListViewInterface::ListViewInterface(ListViewInterface *parent, QString label)
+ListViewInterface::ListViewInterface(ListViewInterface *parent, TQString label)
: KListViewItem( parent, label )
{
}
-ListViewInterface::ListViewInterface(ListViewInterface *parent, ListViewInterface *after, QString label) : KListViewItem( parent, after, label )
+ListViewInterface::ListViewInterface(ListViewInterface *parent, ListViewInterface *after, TQString label) : KListViewItem( parent, after, label )
{
}
-ListViewInterface::ListViewInterface(KListView *lv, QString label)
+ListViewInterface::ListViewInterface(KListView *lv, TQString label)
: KListViewItem( lv, label )
{
}
@@ -52,23 +52,23 @@ ListViewInterface::ListViewInterface(KListView *lv, QString label)
/**
* RobDocument
*/
-RobDocument::RobDocument(KListView *lv, QString label)
+RobDocument::RobDocument(KListView *lv, TQString label)
: ListViewInterface( lv, label )
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("contents", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("contents", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("RobDocument") ); // XmlContextName
+ m_valueList.append( TQString("RobDocument") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H1><center>" + i18n("unnamed") + "</center></H1>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("unnamed") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -76,12 +76,12 @@ RobDocument::~RobDocument()
{
}
-bool RobDocument::setValue( unsigned int index, QVariant data )
+bool RobDocument::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -98,12 +98,12 @@ bool RobDocument::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant RobDocument::getValue( unsigned int index ) const
+TQVariant RobDocument::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -116,24 +116,24 @@ QVariant RobDocument::getValue( unsigned int index ) const
/**
* Overview
*/
-Overview::Overview(ListViewInterface *parent, ListViewInterface *after, QString label)
+Overview::Overview(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "0"); // upmost element
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("BookInfo") ); // XmlContextName
+ m_valueList.append( TQString("BookInfo") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H1>" + i18n("Overview") + "</H1>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Overview") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -141,12 +141,12 @@ Overview::~Overview()
{
}
-bool Overview::setValue( unsigned int index, QVariant data )
+bool Overview::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -157,12 +157,12 @@ bool Overview::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Overview::getValue( unsigned int index ) const
+TQVariant Overview::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -171,24 +171,24 @@ QVariant Overview::getValue( unsigned int index ) const
/**
* Date
*/
-Date::Date(ListViewInterface *parent, ListViewInterface *after, QString label)
+Date::Date(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000001");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Date") ); // XmlContextName
+ m_valueList.append( TQString("Date") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<B>" + i18n("Date") +": </B>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Date") + ": "); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -196,12 +196,12 @@ Date::~Date()
{
}
-bool Date::setValue( unsigned int index, QVariant data )
+bool Date::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -224,12 +224,12 @@ bool Date::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Date::getValue( unsigned int index ) const
+TQVariant Date::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -238,24 +238,24 @@ QVariant Date::getValue( unsigned int index ) const
/**
* ReleaseInfo
*/
-ReleaseInfo::ReleaseInfo(ListViewInterface *parent, ListViewInterface *after, QString label)
+ReleaseInfo::ReleaseInfo(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000002");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("ReleaseInfo") ); // XmlContextName
+ m_valueList.append( TQString("ReleaseInfo") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<B>" + i18n("Release") + ": </B>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Release") + ": "); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -263,12 +263,12 @@ ReleaseInfo::~ReleaseInfo()
{
}
-bool ReleaseInfo::setValue( unsigned int index, QVariant data )
+bool ReleaseInfo::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -291,12 +291,12 @@ bool ReleaseInfo::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant ReleaseInfo::getValue( unsigned int index ) const
+TQVariant ReleaseInfo::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -305,24 +305,24 @@ QVariant ReleaseInfo::getValue( unsigned int index ) const
/**
* Authorgroup
*/
-AuthorGroup::AuthorGroup(ListViewInterface *parent, ListViewInterface *after, QString label)
+AuthorGroup::AuthorGroup(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("kdmconfig", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("kdmconfig", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000003");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("AuthorGroup") ); // XmlContextName
+ m_valueList.append( TQString("AuthorGroup") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H2>" + i18n("Author(s)")+ "</H2>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Author(s)") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -330,12 +330,12 @@ AuthorGroup::~AuthorGroup()
{
}
-bool AuthorGroup::setValue( unsigned int index, QVariant data )
+bool AuthorGroup::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -346,12 +346,12 @@ bool AuthorGroup::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant AuthorGroup::getValue( unsigned int index ) const
+TQVariant AuthorGroup::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -361,23 +361,23 @@ QVariant AuthorGroup::getValue( unsigned int index ) const
/**
* Author
*/
-Author::Author(ListViewInterface *parent, ListViewInterface *after, QString label)
+Author::Author(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("personal", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("personal", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Author") ); // XmlContextName
+ m_valueList.append( TQString("Author") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<B>" + i18n("Author") + ": </B>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Author") + ": "); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -385,16 +385,16 @@ Author::~Author()
{
}
-// void Author::setData(const QString &data, QDomDocument &)
+// void Author::setData(const TQString &data, TQDomDocument &)
// {
// // canonify string
-// QString m_data = data;
-// m_data.replace( QRegExp("\n"), "" ); // remove Newlines
-// m_data.replace( QRegExp(" {2,}"), " " ); // remove multiple spaces
-// m_data.replace( QRegExp("[\t|\r]{1,}"), ""); // remove Tabs
+// TQString m_data = data;
+// m_data.replace( TQRegExp("\n"), "" ); // remove Newlines
+// m_data.replace( TQRegExp(" {2,}"), " " ); // remove multiple spaces
+// m_data.replace( TQRegExp("[\t|\r]{1,}"), ""); // remove Tabs
// // split string "firstname surname"
-// QString firstname = m_data.section(' ', 0, 0);
-// QString surname = m_data.section(' ', 1, 1);
+// TQString firstname = m_data.section(' ', 0, 0);
+// TQString surname = m_data.section(' ', 1, 1);
// // update node elements
// m_node1.setNodeValue(firstname);
// m_node2.setNodeValue(surname);
@@ -402,12 +402,12 @@ Author::~Author()
// this->setText(1, firstname + " " + surname);
// }
-bool Author::setValue( unsigned int index, QVariant data )
+bool Author::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -431,12 +431,12 @@ bool Author::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Author::getValue( unsigned int index ) const
+TQVariant Author::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -445,24 +445,24 @@ QVariant Author::getValue( unsigned int index ) const
/**
* KeywordSet
*/
-KeywordSet::KeywordSet(ListViewInterface *parent, ListViewInterface *after, QString label)
+KeywordSet::KeywordSet(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("txt", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("txt", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000004");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("KeywordSet") ); // XmlContextName
+ m_valueList.append( TQString("KeywordSet") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H2>" + i18n("Keywords") + "</H2>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Keywords") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -470,12 +470,12 @@ KeywordSet::~KeywordSet()
{
}
-bool KeywordSet::setValue( unsigned int index, QVariant data )
+bool KeywordSet::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -486,12 +486,12 @@ bool KeywordSet::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant KeywordSet::getValue( unsigned int index ) const
+TQVariant KeywordSet::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -500,20 +500,20 @@ QVariant KeywordSet::getValue( unsigned int index ) const
/**
* Keyword
*/
-Keyword::Keyword(ListViewInterface *parent, ListViewInterface *after, QString label)
+Keyword::Keyword(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Keyword") ); // XmlContextName
+ m_valueList.append( TQString("Keyword") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (bool)1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -521,12 +521,12 @@ Keyword::~Keyword()
{
}
-bool Keyword::setValue( unsigned int index, QVariant data )
+bool Keyword::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -550,12 +550,12 @@ bool Keyword::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Keyword::getValue( unsigned int index ) const
+TQVariant Keyword::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -566,24 +566,24 @@ QVariant Keyword::getValue( unsigned int index ) const
/**
* Abstract
*/
-Abstract::Abstract(ListViewInterface *parent, ListViewInterface *after, QString label)
+Abstract::Abstract(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("filenew", KIcon::Small);
this->setPixmap(0, pixmap);
this->setText(3, "00000005");
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Abstract") ); // XmlContextName
+ m_valueList.append( TQString("Abstract") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
m_valueList.append("<H2>" + i18n("Abstract") + "</H2>"); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Abstract") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -591,12 +591,12 @@ Abstract::~Abstract()
{
}
-bool Abstract::setValue( unsigned int index, QVariant data )
+bool Abstract::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -607,12 +607,12 @@ bool Abstract::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Abstract::getValue( unsigned int index ) const
+TQVariant Abstract::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -622,23 +622,23 @@ QVariant Abstract::getValue( unsigned int index ) const
/**
* Para
*/
-Para::Para(ListViewInterface *parent, ListViewInterface *after, QString label)
+Para::Para(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Para") ); // XmlContextName
+ m_valueList.append( TQString("Para") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)-1 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
m_valueList.append(i18n("Paragraph") + "\n"); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -646,13 +646,13 @@ Para::~Para()
{
}
-bool Para::setValue( unsigned int index, QVariant data )
+bool Para::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
- QString sData = QString::null;
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
+ TQString sData = TQString::null;
ParaSaxParser *p = ParaSaxParser::Instance();
switch (index){
case KSayItGlobal::ISEDITABLE:
@@ -681,12 +681,12 @@ bool Para::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Para::getValue( unsigned int index ) const
+TQVariant Para::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -696,23 +696,23 @@ QVariant Para::getValue( unsigned int index ) const
/**
* Chapter
*/
-Chapter::Chapter(ListViewInterface *parent, ListViewInterface *after, QString label)
+Chapter::Chapter(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Chapter") ); // XmlContextName
+ m_valueList.append( TQString("Chapter") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -720,12 +720,12 @@ Chapter::~Chapter()
{
}
-bool Chapter::setValue( unsigned int index, QVariant data )
+bool Chapter::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -742,12 +742,12 @@ bool Chapter::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Chapter::getValue( unsigned int index ) const
+TQVariant Chapter::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -757,23 +757,23 @@ QVariant Chapter::getValue( unsigned int index ) const
/**
* Sect1
*/
-Sect1::Sect1(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect1::Sect1(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect1") ); // XmlContextName
+ m_valueList.append( TQString("Sect1") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -781,12 +781,12 @@ Sect1::~Sect1()
{
}
-bool Sect1::setValue( unsigned int index, QVariant data )
+bool Sect1::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -803,12 +803,12 @@ bool Sect1::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect1::getValue( unsigned int index ) const
+TQVariant Sect1::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -817,23 +817,23 @@ QVariant Sect1::getValue( unsigned int index ) const
/**
* Sect2
*/
-Sect2::Sect2(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect2::Sect2(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect2") ); // XmlContextName
+ m_valueList.append( TQString("Sect2") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -841,12 +841,12 @@ Sect2::~Sect2()
{
}
-bool Sect2::setValue( unsigned int index, QVariant data )
+bool Sect2::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -863,12 +863,12 @@ bool Sect2::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect2::getValue( unsigned int index ) const
+TQVariant Sect2::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -877,23 +877,23 @@ QVariant Sect2::getValue( unsigned int index ) const
/**
* Sect3
*/
-Sect3::Sect3(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect3::Sect3(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect3") ); // XmlContextName
+ m_valueList.append( TQString("Sect3") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -901,12 +901,12 @@ Sect3::~Sect3()
{
}
-bool Sect3::setValue( unsigned int index, QVariant data )
+bool Sect3::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -923,12 +923,12 @@ bool Sect3::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect3::getValue( unsigned int index ) const
+TQVariant Sect3::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -937,23 +937,23 @@ QVariant Sect3::getValue( unsigned int index ) const
/**
* Sect4
*/
-Sect4::Sect4(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect4::Sect4(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect4") ); // XmlContextName
+ m_valueList.append( TQString("Sect4") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -961,12 +961,12 @@ Sect4::~Sect4()
{
}
-bool Sect4::setValue( unsigned int index, QVariant data )
+bool Sect4::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -983,12 +983,12 @@ bool Sect4::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect4::getValue( unsigned int index ) const
+TQVariant Sect4::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
@@ -997,23 +997,23 @@ QVariant Sect4::getValue( unsigned int index ) const
/**
* Sect5
*/
-Sect5::Sect5(ListViewInterface *parent, ListViewInterface *after, QString label)
+Sect5::Sect5(ListViewInterface *parent, ListViewInterface *after, TQString label)
: ListViewInterface(parent, after, label)
{
- QPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
+ TQPixmap pixmap = KGlobal::iconLoader()->loadIcon("leftjust", KIcon::Small);
this->setPixmap(0, pixmap);
// new Concept (begin)
m_valueList.clear();
- m_valueList.append( QString("Sect5") ); // XmlContextName
+ m_valueList.append( TQString("Sect5") ); // XmlContextName
m_valueList.append( (bool)false ); // isEditable
m_valueList.append( (int)0 ); // MaxLines
- m_valueList.append(QString::null); // Summary
- m_valueList.append(QString::null); // RawData
- m_valueList.append(QString::null); // RTFHeader
- m_valueList.append(QString::null); // RTFData
- m_valueList.append(QString::null); // SpeakerHeader
- m_valueList.append(QString::null); // SpeakerData
+ m_valueList.append(TQString::null); // Summary
+ m_valueList.append(TQString::null); // RawData
+ m_valueList.append(TQString::null); // RTFHeader
+ m_valueList.append(TQString::null); // RTFData
+ m_valueList.append(TQString::null); // SpeakerHeader
+ m_valueList.append(TQString::null); // SpeakerData
// new Concept (end)
}
@@ -1021,12 +1021,12 @@ Sect5::~Sect5()
{
}
-bool Sect5::setValue( unsigned int index, QVariant data )
+bool Sect5::setValue( unsigned int index, TQVariant data )
{
if ( index<1 || index > m_valueList.count() )
return false;
- QValueList<QVariant>::Iterator it = m_valueList.at(index);
+ TQValueList<TQVariant>::Iterator it = m_valueList.at(index);
switch (index){
case KSayItGlobal::ISEDITABLE:
*it = data;
@@ -1043,12 +1043,12 @@ bool Sect5::setValue( unsigned int index, QVariant data )
return true;
}
-QVariant Sect5::getValue( unsigned int index ) const
+TQVariant Sect5::getValue( unsigned int index ) const
{
if ( index > m_valueList.count() )
- return QVariant(); // a invalid QVariant
+ return TQVariant(); // a invalid QVariant
- QVariant data;
+ TQVariant data;
data = m_valueList[index];
return data;
diff --git a/ksayit/src/docbookclasses.h b/ksayit/src/docbookclasses.h
index a7f84af..30da84c 100644
--- a/ksayit/src/docbookclasses.h
+++ b/ksayit/src/docbookclasses.h
@@ -13,10 +13,10 @@
#define DOCBOOKCLASSES_H
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
-#include <qvariant.h>
-#include <qvaluelist.h>
+#include <tqvariant.h>
+#include <tqvaluelist.h>
// KDE includes
#include <klistview.h>
@@ -32,7 +32,7 @@ class QStringList;
//
/**
Represents the root item of the document, therefore it expects
- a \p QListView object as parent.\n
+ a \p TQListView object as parent.\n
Structural item only (no references to a DOM node).
@author Robert Vogl
*/
@@ -45,14 +45,14 @@ public:
* \param label The label is shown in column 0 of the TreeView and is also
* used as bookmark title.
*/
- RobDocument(KListView *lv=0, QString label=QString::null);
+ RobDocument(KListView *lv=0, TQString label=TQString::null);
~RobDocument();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -67,14 +67,14 @@ private:
class Overview : public ListViewInterface
{
public:
- Overview(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Overview(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Overview();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -85,15 +85,15 @@ private:
class Date : public ListViewInterface
{
public:
- Date(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Date(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Date();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
// Pointer to the associated Data
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -104,15 +104,15 @@ private:
class ReleaseInfo : public ListViewInterface
{
public:
- ReleaseInfo(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ ReleaseInfo(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~ReleaseInfo();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
// Pointer to the associated Data
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -124,14 +124,14 @@ private:
class AuthorGroup : public ListViewInterface
{
public:
- AuthorGroup(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ AuthorGroup(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~AuthorGroup();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -143,14 +143,14 @@ private:
class Author : public ListViewInterface
{
public:
- Author(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Author(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Author();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -162,14 +162,14 @@ private:
class KeywordSet : public ListViewInterface
{
public:
- KeywordSet(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ KeywordSet(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~KeywordSet();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -180,14 +180,14 @@ private:
class Keyword : public ListViewInterface
{
public:
- Keyword(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Keyword(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Keyword();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -199,14 +199,14 @@ private:
class Abstract : public ListViewInterface
{
public:
- Abstract(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Abstract(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Abstract();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -217,14 +217,14 @@ private:
class Para : public ListViewInterface
{
public:
- Para(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Para(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Para();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -236,14 +236,14 @@ private:
class Chapter : public ListViewInterface
{
public:
- Chapter(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Chapter(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Chapter();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -255,14 +255,14 @@ private:
class Sect1 : public ListViewInterface
{
public:
- Sect1(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect1(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect1();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -274,14 +274,14 @@ private:
class Sect2 : public ListViewInterface
{
public:
- Sect2(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect2(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect2();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -293,14 +293,14 @@ private:
class Sect3 : public ListViewInterface
{
public:
- Sect3(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect3(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect3();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -312,14 +312,14 @@ private:
class Sect4 : public ListViewInterface
{
public:
- Sect4(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect4(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect4();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
@@ -331,14 +331,14 @@ private:
class Sect5 : public ListViewInterface
{
public:
- Sect5(ListViewInterface *parent=0, ListViewInterface *after=0, QString label=QString::null);
+ Sect5(ListViewInterface *parent=0, ListViewInterface *after=0, TQString label=TQString::null);
~Sect5();
- bool setValue( unsigned int index, QVariant data );
- QVariant getValue( unsigned int index ) const;
+ bool setValue( unsigned int index, TQVariant data );
+ TQVariant getValue( unsigned int index ) const;
private:
- QValueList<QVariant> m_valueList;
+ TQValueList<TQVariant> m_valueList;
};
#endif
diff --git a/ksayit/src/docbookgenerator.cpp b/ksayit/src/docbookgenerator.cpp
index 1d6db9c..4b792b2 100644
--- a/ksayit/src/docbookgenerator.cpp
+++ b/ksayit/src/docbookgenerator.cpp
@@ -11,8 +11,8 @@
//
// Qt includes
-#include <qstring.h>
-#include <qvariant.h>
+#include <tqstring.h>
+#include <tqvariant.h>
//KDE includes
#include <kdebug.h>
@@ -33,11 +33,11 @@ DocbookGenerator::~DocbookGenerator()
}
-void DocbookGenerator::writeBook(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeBook(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeBook()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "RobDocument" )
return;
@@ -46,7 +46,7 @@ void DocbookGenerator::writeBook(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "BookInfo" ){
@@ -61,11 +61,11 @@ void DocbookGenerator::writeBook(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeBookInfo(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeBookInfo(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeBookInfo()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "BookInfo" )
return;
@@ -75,7 +75,7 @@ void DocbookGenerator::writeBookInfo(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "KeywordSet" ){
@@ -97,18 +97,18 @@ void DocbookGenerator::writeBookInfo(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeTitleOfBook(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeTitleOfBook(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeTitle()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "BookInfo" )
return;
// Documents title is stored in root element (parent of BookInfo)
ListViewInterface *parent = static_cast<ListViewInterface*>(item->parent());
if ( parent ){
- QString title = parent->text(0);
+ TQString title = parent->text(0);
// add node to document
doc << "<Title>" << title << "</Title>" << endl;
@@ -116,11 +116,11 @@ void DocbookGenerator::writeTitleOfBook(QTextStream &doc, ListViewInterface *ite
}
-void DocbookGenerator::writeAuthorGroup(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeAuthorGroup(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeAuthorGroup()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "AuthorGroup" )
return;
@@ -129,7 +129,7 @@ void DocbookGenerator::writeAuthorGroup(QTextStream &doc, ListViewInterface *ite
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Author" ){
@@ -143,15 +143,15 @@ void DocbookGenerator::writeAuthorGroup(QTextStream &doc, ListViewInterface *ite
}
-void DocbookGenerator::writeAuthor(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeAuthor(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeAuthor()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Author" )
return;
- QString author = QString::null;
+ TQString author = TQString::null;
author = ( item->getValue(KSayItGlobal::RAWDATA) ).toString();
// add node to document
@@ -165,41 +165,41 @@ void DocbookGenerator::writeAuthor(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeDate(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeDate(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeDate()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Date" )
return;
- QString date = item->text(1);
+ TQString date = item->text(1);
// add node to document
doc << "<Date>" << date << "</Date>" << endl;
}
-void DocbookGenerator::writeReleaseInfo(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeReleaseInfo(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeReleaseInfo()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "ReleaseInfo" )
return;
- QString releaseinfo = item->text(1);
+ TQString releaseinfo = item->text(1);
// add node to document
doc << "<ReleaseInfo>" << releaseinfo << "</ReleaseInfo>" << endl;
}
-void DocbookGenerator::writeKeywordSet(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeKeywordSet(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeKeywordSet()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "KeywordSet" )
return;
@@ -208,7 +208,7 @@ void DocbookGenerator::writeKeywordSet(QTextStream &doc, ListViewInterface *item
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = ( i->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( itemType == "Keyword" ){
@@ -222,16 +222,16 @@ void DocbookGenerator::writeKeywordSet(QTextStream &doc, ListViewInterface *item
}
-void DocbookGenerator::writeKeyword(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeKeyword(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeKeyword()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Keyword" )
return;
- // QString keyword = item->text( 0 );
- QString keyword = QString::null;
+ // TQString keyword = item->text( 0 );
+ TQString keyword = TQString::null;
keyword = (item->getValue(3)).toString();
// add node to document
@@ -242,11 +242,11 @@ void DocbookGenerator::writeKeyword(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeAbstract(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeAbstract(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeAbstract()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Abstract" )
return;
@@ -255,7 +255,7 @@ void DocbookGenerator::writeAbstract(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -269,15 +269,15 @@ void DocbookGenerator::writeAbstract(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeChapter( QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeChapter( TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeChapter()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Chapter" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Chapter>" << endl;
@@ -285,7 +285,7 @@ void DocbookGenerator::writeChapter( QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -301,15 +301,15 @@ void DocbookGenerator::writeChapter( QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect1(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect1(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect1()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect1" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect1>" << endl;
@@ -317,7 +317,7 @@ void DocbookGenerator::writeSect1(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -333,15 +333,15 @@ void DocbookGenerator::writeSect1(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect2(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect2(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect1()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect2" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect2>" << endl;
@@ -349,7 +349,7 @@ void DocbookGenerator::writeSect2(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = ( i->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( itemType == "Para" ){
@@ -365,15 +365,15 @@ void DocbookGenerator::writeSect2(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect3(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect3(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect3()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect3" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect3>" << endl;
@@ -381,7 +381,7 @@ void DocbookGenerator::writeSect3(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -397,15 +397,15 @@ void DocbookGenerator::writeSect3(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect4(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect4(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect4()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect4" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect4>" << endl;
@@ -413,7 +413,7 @@ void DocbookGenerator::writeSect4(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -429,15 +429,15 @@ void DocbookGenerator::writeSect4(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writeSect5(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writeSect5(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writeSect5()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Sect5" )
return;
- QString title = item->text(0);
+ TQString title = item->text(0);
// add node to document
doc << "<Sect5>" << endl;
@@ -445,7 +445,7 @@ void DocbookGenerator::writeSect5(QTextStream &doc, ListViewInterface *item)
// process childs
ListViewInterface *i = static_cast<ListViewInterface*>(item->firstChild());
- QString itemType;
+ TQString itemType;
while( i ){
itemType = (i->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( itemType == "Para" ){
@@ -459,15 +459,15 @@ void DocbookGenerator::writeSect5(QTextStream &doc, ListViewInterface *item)
}
-void DocbookGenerator::writePara(QTextStream &doc, ListViewInterface *item)
+void DocbookGenerator::writePara(TQTextStream &doc, ListViewInterface *item)
{
kdDebug(100200) << "DocTreeViewImpl::writePara()" << endl;
// read item's content
- QString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
+ TQString whoAmI = (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString();
if ( whoAmI != "Para" )
return;
- QString data = ( item->getValue(KSayItGlobal::RAWDATA) ).toString();
+ TQString data = ( item->getValue(KSayItGlobal::RAWDATA) ).toString();
// add node to document
doc << "<Para>" << endl;
diff --git a/ksayit/src/docbookgenerator.h b/ksayit/src/docbookgenerator.h
index 80f526b..b5fb251 100644
--- a/ksayit/src/docbookgenerator.h
+++ b/ksayit/src/docbookgenerator.h
@@ -13,7 +13,7 @@
#define DOCBOOKGENERATOR_H
// Qt includes
-#include <qtextstream.h>
+#include <tqtextstream.h>
// KDE includes
@@ -36,26 +36,26 @@ public:
* \param item A pointer to the root item of the tree. Must be of type
* \p RobDocument.
*/
- void writeBook(QTextStream &doc, ListViewInterface *item);
+ void writeBook(TQTextStream &doc, ListViewInterface *item);
private:
- void writeBookInfo(QTextStream &doc, ListViewInterface *item);
- void writeTitleOfBook(QTextStream &doc, ListViewInterface *item);
- void writeChapter(QTextStream &doc, ListViewInterface *item);
- void writeKeywordSet(QTextStream &doc, ListViewInterface *item);
- void writeKeyword(QTextStream &doc, ListViewInterface *item);
- void writeAbstract(QTextStream &doc, ListViewInterface *item);
- void writePara(QTextStream &doc, ListViewInterface *item);
- void writeAuthorGroup(QTextStream &doc, ListViewInterface *item);
- void writeAuthor(QTextStream &doc, ListViewInterface *item);
- void writeDate(QTextStream &doc, ListViewInterface *item);
- void writeReleaseInfo(QTextStream &doc, ListViewInterface *item);
- void writeSect1(QTextStream &doc, ListViewInterface *item);
- void writeSect2(QTextStream &doc, ListViewInterface *item);
- void writeSect3(QTextStream &doc, ListViewInterface *item);
- void writeSect4(QTextStream &doc, ListViewInterface *item);
- void writeSect5(QTextStream &doc, ListViewInterface *item);
+ void writeBookInfo(TQTextStream &doc, ListViewInterface *item);
+ void writeTitleOfBook(TQTextStream &doc, ListViewInterface *item);
+ void writeChapter(TQTextStream &doc, ListViewInterface *item);
+ void writeKeywordSet(TQTextStream &doc, ListViewInterface *item);
+ void writeKeyword(TQTextStream &doc, ListViewInterface *item);
+ void writeAbstract(TQTextStream &doc, ListViewInterface *item);
+ void writePara(TQTextStream &doc, ListViewInterface *item);
+ void writeAuthorGroup(TQTextStream &doc, ListViewInterface *item);
+ void writeAuthor(TQTextStream &doc, ListViewInterface *item);
+ void writeDate(TQTextStream &doc, ListViewInterface *item);
+ void writeReleaseInfo(TQTextStream &doc, ListViewInterface *item);
+ void writeSect1(TQTextStream &doc, ListViewInterface *item);
+ void writeSect2(TQTextStream &doc, ListViewInterface *item);
+ void writeSect3(TQTextStream &doc, ListViewInterface *item);
+ void writeSect4(TQTextStream &doc, ListViewInterface *item);
+ void writeSect5(TQTextStream &doc, ListViewInterface *item);
diff --git a/ksayit/src/docbookparser.cpp b/ksayit/src/docbookparser.cpp
index 03b9f73..679a44b 100644
--- a/ksayit/src/docbookparser.cpp
+++ b/ksayit/src/docbookparser.cpp
@@ -11,9 +11,9 @@
//
// Qt includes
-#include <qregexp.h>
-#include <qstring.h>
-#include <qtextstream.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqtextstream.h>
//KDE includes
#include <kdebug.h>
@@ -36,13 +36,13 @@ DocbookParser::~DocbookParser()
}
-QString DocbookParser::node2raw(QDomNode node) const
+TQString DocbookParser::node2raw(TQDomNode node) const
{
- QString ret;
+ TQString ret;
// get content of element
- QTextStream in(ret, IO_WriteOnly);
- in.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream in(ret, IO_WriteOnly);
+ in.setEncoding(TQTextStream::UnicodeUTF8);
in << node;
return ret;
@@ -55,17 +55,17 @@ QString DocbookParser::node2raw(QDomNode node) const
//
// DocBook parser
//
-void DocbookParser::parseBook(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseBook(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseBook()" << endl;
- item->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ item->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( item );
// TODO: Attributes Id, Lang
// Elements (parse BookInfo before Chapter)
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="bookinfo" ){
parseBookInfo( node.toElement(), item );
@@ -84,17 +84,17 @@ void DocbookParser::parseBook(const QDomElement &element, ListViewInterface *ite
}
-void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseBookInfo(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseBookInfo()" << endl;
Overview *overview = new Overview(item, NULL, i18n("Overview"));
- overview->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ overview->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( overview );
- QDomText data;
- QDomNode node = element.firstChild();
+ TQDomText data;
+ TQDomNode node = element.firstChild();
// fixed order
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
@@ -122,7 +122,7 @@ void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface
data = node.firstChild().toText();
if( !data.isNull() ){
Date *date = new Date(overview, NULL, i18n("Date"));
- date->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ date->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
date->setText( 1, data.nodeValue() );
date->setValue(KSayItGlobal::RTFDATA, data.nodeValue());
date->setValue(KSayItGlobal::SPEAKERDATA, data.nodeValue());
@@ -140,7 +140,7 @@ void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface
data = node.firstChild().toText();
if( !data.isNull() ){
ReleaseInfo *relinfo = new ReleaseInfo(overview, NULL, i18n("Release"));
- relinfo->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ relinfo->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
relinfo->setText( 1, data.nodeValue() );
relinfo->setValue(KSayItGlobal::RTFDATA, data.nodeValue());
relinfo->setValue(KSayItGlobal::SPEAKERDATA, data.nodeValue());
@@ -170,17 +170,17 @@ void DocbookParser::parseBookInfo(const QDomElement &element, ListViewInterface
}
-void DocbookParser::parseAuthorGroup(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseAuthorGroup(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseAuthorGroup()" << endl;
// item = overview
AuthorGroup *authorgroup = new AuthorGroup(item, NULL, i18n("Author(s)"));
- authorgroup->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ authorgroup->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( authorgroup );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="author" ){
parseAuthor( node.toElement(), authorgroup );
@@ -191,21 +191,21 @@ void DocbookParser::parseAuthorGroup(const QDomElement &element, ListViewInterfa
}
-void DocbookParser::parseAuthor(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseAuthor(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseAuthor()" << endl;
// item = authorgroup
- QDomText data;
- QDomText firstname = QDomText();
- QDomText surname = QDomText();
- QString s_firstname = QString::null;
- QString s_surname = QString::null;
+ TQDomText data;
+ TQDomText firstname = TQDomText();
+ TQDomText surname = TQDomText();
+ TQString s_firstname = TQString::null;
+ TQString s_surname = TQString::null;
Author *author = new Author(item);
- author->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ author->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="firstname" ){
data = node.firstChild().toText();
@@ -235,24 +235,24 @@ void DocbookParser::parseAuthor(const QDomElement &element, ListViewInterface *i
}
-void DocbookParser::parseKeywordSet(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseKeywordSet(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseKeywordSet()" << endl;
// item = overview
KeywordSet *keywordset = new KeywordSet(item, NULL, i18n("Keywords"));
- keywordset->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ keywordset->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( keywordset );
- QDomText data;
- QDomNode node = element.firstChild();
+ TQDomText data;
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="keyword" ){
data = node.firstChild().toText();
if( !data.isNull() ){
Keyword *keyword = new Keyword(keywordset);
- keyword->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ keyword->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
keyword->setText(0, data.nodeValue() );
keyword->setValue(KSayItGlobal::RTFDATA, data.nodeValue() );
keyword->setValue(KSayItGlobal::SPEAKERDATA, data.nodeValue() );
@@ -268,18 +268,18 @@ void DocbookParser::parseKeywordSet(const QDomElement &element, ListViewInterfac
}
-void DocbookParser::parseAbstract(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseAbstract(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseAbstract()" << endl;
// item = overview
- QDomText data;
+ TQDomText data;
Abstract *abstract = new Abstract(item, NULL, i18n("Abstract"));
- abstract->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ abstract->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( abstract );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="para" ){
parsePara( node.toElement(), abstract );
@@ -290,17 +290,17 @@ void DocbookParser::parseAbstract(const QDomElement &element, ListViewInterface
}
-void DocbookParser::parseChapter(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseChapter(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseChapter()" << endl;
- QDomText data;
+ TQDomText data;
Chapter *chapter = new Chapter(item, NULL, i18n("Chapter"));
- chapter->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ chapter->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( chapter );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -320,17 +320,17 @@ void DocbookParser::parseChapter(const QDomElement &element, ListViewInterface *
}
-void DocbookParser::parseSect1(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect1(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect1()" << endl;
- QDomText data;
+ TQDomText data;
Sect1 *sect1 = new Sect1(item, NULL, i18n("Section Level 1"));
- sect1->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect1->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect1 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -350,17 +350,17 @@ void DocbookParser::parseSect1(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect2(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect2(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect2()" << endl;
- QDomText data;
+ TQDomText data;
Sect2 *sect2 = new Sect2(item, NULL, i18n("Section Level 2"));
- sect2->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect2->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect2 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -380,17 +380,17 @@ void DocbookParser::parseSect2(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect3(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect3(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect3()" << endl;
- QDomText data;
+ TQDomText data;
Sect3 *sect3 = new Sect3(item, NULL, i18n("Section Level 3"));
- sect3->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect3->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect3 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -410,17 +410,17 @@ void DocbookParser::parseSect3(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect4(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect4(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect4()" << endl;
- QDomText data;
+ TQDomText data;
Sect4 *sect4 = new Sect4(item, NULL, i18n("Section Level 4"));
- sect4->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect4->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect4 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -440,17 +440,17 @@ void DocbookParser::parseSect4(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parseSect5(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parseSect5(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parseSect5()" << endl;
- QDomText data;
+ TQDomText data;
Sect5 *sect5 = new Sect5(item, NULL, i18n("Section Level 4"));
- sect5->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ sect5->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( sect5 );
- QDomNode node = element.firstChild();
+ TQDomNode node = element.firstChild();
while( !node.isNull() ){
if( node.isElement() && node.nodeName().lower()=="title" ){
data = node.firstChild().toText();
@@ -468,20 +468,20 @@ void DocbookParser::parseSect5(const QDomElement &element, ListViewInterface *it
}
-void DocbookParser::parsePara(const QDomElement &element, ListViewInterface *item)
+void DocbookParser::parsePara(const TQDomElement &element, ListViewInterface *item)
{
kdDebug(100200) << "+++ entering parsePara()" << endl;
Para *para = new Para(item, NULL, i18n("Paragraph"));
- para->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ para->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
// register Popup menu
m_contextmenuhandler->registerPopupMenu( para );
- QString raw = node2raw(element);
+ TQString raw = node2raw(element);
// remove <para> tags
- raw.replace( QRegExp("</?(para|Para|PARA)/?>"),"");
- raw.replace( QRegExp("^ "),"" );
- raw.replace( QRegExp("^\n"), "" );
+ raw.replace( TQRegExp("</?(para|Para|PARA)/?>"),"");
+ raw.replace( TQRegExp("^ "),"" );
+ raw.replace( TQRegExp("^\n"), "" );
para->setValue(KSayItGlobal::RAWDATA, raw);
para->setValue(KSayItGlobal::RTFDATA, raw);
diff --git a/ksayit/src/docbookparser.h b/ksayit/src/docbookparser.h
index e603e93..5c84e30 100644
--- a/ksayit/src/docbookparser.h
+++ b/ksayit/src/docbookparser.h
@@ -13,7 +13,7 @@
#define DOCBOOKPARSER_H
// Qt includes
-#include <qdom.h>
+#include <tqdom.h>
// KDE includes
@@ -31,27 +31,27 @@ public:
// Destructor
~DocbookParser();
- void parseBook(const QDomElement &element, ListViewInterface *item);
+ void parseBook(const TQDomElement &element, ListViewInterface *item);
int getIdCounter(){ return m_idCounter; };
private: // Methods
// a selection of DocBook elements
- void parseBookInfo(const QDomElement &element, ListViewInterface *item);
- void parseAuthorGroup(const QDomElement &element, ListViewInterface *item);
- void parseAuthor(const QDomElement &element, ListViewInterface *item);
- void parseKeywordSet(const QDomElement &element, ListViewInterface *item);
- void parseAbstract(const QDomElement &element, ListViewInterface *item);
- void parseChapter(const QDomElement &element, ListViewInterface *item);
- void parseSect1(const QDomElement &element, ListViewInterface *item);
- void parseSect2(const QDomElement &element, ListViewInterface *item);
- void parseSect3(const QDomElement &element, ListViewInterface *item);
- void parseSect4(const QDomElement &element, ListViewInterface *item);
- void parseSect5(const QDomElement &element, ListViewInterface *item);
- void parsePara(const QDomElement &element, ListViewInterface *item);
+ void parseBookInfo(const TQDomElement &element, ListViewInterface *item);
+ void parseAuthorGroup(const TQDomElement &element, ListViewInterface *item);
+ void parseAuthor(const TQDomElement &element, ListViewInterface *item);
+ void parseKeywordSet(const TQDomElement &element, ListViewInterface *item);
+ void parseAbstract(const TQDomElement &element, ListViewInterface *item);
+ void parseChapter(const TQDomElement &element, ListViewInterface *item);
+ void parseSect1(const TQDomElement &element, ListViewInterface *item);
+ void parseSect2(const TQDomElement &element, ListViewInterface *item);
+ void parseSect3(const TQDomElement &element, ListViewInterface *item);
+ void parseSect4(const TQDomElement &element, ListViewInterface *item);
+ void parseSect5(const TQDomElement &element, ListViewInterface *item);
+ void parsePara(const TQDomElement &element, ListViewInterface *item);
// Helpers
- QString node2raw(QDomNode node) const;
+ TQString node2raw(TQDomNode node) const;
private: // Attributes
ContextMenuHandler *m_contextmenuhandler;
diff --git a/ksayit/src/doctreeviewimpl.cpp b/ksayit/src/doctreeviewimpl.cpp
index 663933b..11e22ce 100644
--- a/ksayit/src/doctreeviewimpl.cpp
+++ b/ksayit/src/doctreeviewimpl.cpp
@@ -12,14 +12,14 @@
#include <stdlib.h> // getenv
// Qt includes
-#include <qdom.h>
-#include <qfile.h>
-#include <qwidget.h>
-#include <qtextstream.h>
-#include <qregexp.h>
-#include <qdatetime.h>
-#include <qcolor.h>
-#include <qlistview.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqwidget.h>
+#include <tqtextstream.h>
+#include <tqregexp.h>
+#include <tqdatetime.h>
+#include <tqcolor.h>
+#include <tqlistview.h>
//KDE includes
#include <kdebug.h>
@@ -41,7 +41,7 @@
//////////////////////////////////////
// TreeView Implementation
//////////////////////////////////////
-DocTreeViewImpl::DocTreeViewImpl(QWidget* parent, const char* name, WFlags fl)
+DocTreeViewImpl::DocTreeViewImpl(TQWidget* parent, const char* name, WFlags fl)
: DocTreeView(parent, name, fl)
{
m_rootItem = NULL;
@@ -58,7 +58,7 @@ DocTreeViewImpl::DocTreeViewImpl(QWidget* parent, const char* name, WFlags fl)
listView->setColumnWidthMode(2, KListView::Maximum );
listView->setColumnWidthMode(3, KListView::Manual );
listView->setColumnWidth(3, 0);
- listView->setAlternateBackground( QColor(230, 230, 240) );
+ listView->setAlternateBackground( TQColor(230, 230, 240) );
listView->setSelectionModeExt( KListView::Single );
m_idCounter = KSayItGlobal::item_initial_id;
@@ -66,7 +66,7 @@ DocTreeViewImpl::DocTreeViewImpl(QWidget* parent, const char* name, WFlags fl)
m_currentItem = m_rootItem;
m_parasaxparser = ParaSaxParser::Instance();
m_editMode = false;
- m_changedContent = QString::null;
+ m_changedContent = TQString::null;
m_contextmenuhandler = NULL;
m_contextmenu = NULL;
@@ -105,7 +105,7 @@ void DocTreeViewImpl::clear()
// inform BookmarkHandler
//
- emit signalSetBookmarkFilename( QString::null );
+ emit signalSetBookmarkFilename( TQString::null );
listView->clear();
m_rootItem = new RobDocument( listView, i18n("unnamed") );
@@ -119,16 +119,16 @@ void DocTreeViewImpl::createEmptyDocument()
{
kdDebug(100200) << "DocTreeViewImpl::createEmptyDocument()" << endl;
// create empty document
- QByteArray data;
- QTextStream wrapped(data, IO_ReadWrite);
- wrapped.setEncoding(QTextStream::UnicodeUTF8);
+ TQByteArray data;
+ TQTextStream wrapped(data, IO_ReadWrite);
+ wrapped.setEncoding(TQTextStream::UnicodeUTF8);
wrapped << "<?xml version=\"1.0\" ?>" << endl;
wrapped << "<!--" << endl;
wrapped << "!DOCTYPE book PUBLIC \"-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN\" \"dtd/kdex.dtd\"" << endl;
wrapped << "-->" << endl;
- QString header(data);
+ TQString header(data);
m_parasaxparser->setProcessingInstruction( header );
wrapped << "<book>" << endl;
@@ -153,15 +153,15 @@ void DocTreeViewImpl::createEmptyDocument()
wrapped << "</chapter>" << endl;
wrapped << "</book>" << endl;
- QDomDocument domTree;
+ TQDomDocument domTree;
if ( ! domTree.setContent( data ) ){
kdDebug(100200) << "Kein gueltiges Dokument!!" << endl;
};
// inform BookmarkHandler
emit signalSetBookmarkFilename( i18n("Untitled") );
- QDomElement root = domTree.documentElement();
- QDomNode node;
+ TQDomElement root = domTree.documentElement();
+ TQDomNode node;
if( root.tagName().lower() == "book" ){ // DocBook
DocbookParser docbookparser(m_contextmenuhandler);
docbookparser.parseBook(root , m_rootItem);
@@ -182,19 +182,19 @@ void DocTreeViewImpl::openFile(const KURL &url)
m_url = url;
// open file
- QString err;
- QFile file( url.path() );
+ TQString err;
+ TQFile file( url.path() );
if( !file.open(IO_ReadOnly) ){
err = i18n("Unable to open File.");
throw(err);
}
- QDomDocument domTree;
+ TQDomDocument domTree;
// check document
if( domTree.setContent(&file) ){
// extract Header
file.reset();
- QString header = QString::null;
- QString line;
+ TQString header = TQString::null;
+ TQString line;
int offset;
file.readLine( line, file.size() );
while( !file.atEnd() && (offset = line.find("<book", 0, false)) < 0 ){
@@ -210,16 +210,16 @@ void DocTreeViewImpl::openFile(const KURL &url)
} else {
// File is not a valid XML-File. Wrap it
file.reset();
- QByteArray data;
- QTextStream wrapped(data, IO_ReadWrite);
- wrapped.setEncoding(QTextStream::UnicodeUTF8);
+ TQByteArray data;
+ TQTextStream wrapped(data, IO_ReadWrite);
+ wrapped.setEncoding(TQTextStream::UnicodeUTF8);
wrapped << "<?xml version=\"1.0\" ?>" << endl;
wrapped << "<!--" << endl;
wrapped << "!DOCTYPE book PUBLIC \"-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN\" \"dtd/kdex.dtd\"" << endl;
wrapped << "-->" << endl;
- QString header(data);
+ TQString header(data);
kdDebug(100200) << "Header (Wrapper): " << endl << header << endl;
m_parasaxparser->setProcessingInstruction( header );
@@ -240,7 +240,7 @@ void DocTreeViewImpl::openFile(const KURL &url)
wrapped << "<chapter>" << endl;
wrapped << "<title><![CDATA[" << i18n("Plain File") << "]]></title>" << endl;
wrapped << "<para><![CDATA[";
- wrapped << QString( file.readAll() );
+ wrapped << TQString( file.readAll() );
wrapped << "]]></para>" << endl;
wrapped << "</chapter>" << endl;
wrapped << "</book>" << endl;
@@ -255,7 +255,7 @@ void DocTreeViewImpl::openFile(const KURL &url)
}
// check if correct document type
- QDomElement root = domTree.documentElement();
+ TQDomElement root = domTree.documentElement();
if( root.tagName().lower() == "book" ){ // DocBook
DocbookParser docbookparser(m_contextmenuhandler);
docbookparser.parseBook(root , m_rootItem);
@@ -277,10 +277,10 @@ void DocTreeViewImpl::saveFile()
makeCurrentNodePersistent();
- QString err;
+ TQString err;
if ( m_url.isEmpty() ){ // file has no name, ask user
- QString usershome( getenv("HOME") );
+ TQString usershome( getenv("HOME") );
m_url = KFileDialog::getSaveURL(usershome, "*.docbook", this, i18n("Save File"));
}
if ( m_url.isEmpty() ) // dialog cancelled
@@ -290,14 +290,14 @@ void DocTreeViewImpl::saveFile()
throw( err );
}
if ( m_url.isLocalFile() ){
- QFile file( m_url.path() );
+ TQFile file( m_url.path() );
if ( !file.open(IO_WriteOnly) ){
err = i18n("Unable open file to write.");
throw( err );
}
// write file
- QTextStream doc(&file);
- doc.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream doc(&file);
+ doc.setEncoding(TQTextStream::UnicodeUTF8);
doc << "<?xml version=\"1.0\" ?>" << endl;
doc << "<!--" << endl;
@@ -325,11 +325,11 @@ void DocTreeViewImpl::saveFile()
void DocTreeViewImpl::saveFileAs()
{
kdDebug(100200) << "DocTreeViewImpl::saveFileAs()" << endl;
- QString err;
+ TQString err;
makeCurrentNodePersistent();
- m_url = KFileDialog::getSaveURL(QString::null, "*.docbook", this, i18n("Save File As"));
+ m_url = KFileDialog::getSaveURL(TQString::null, "*.docbook", this, i18n("Save File As"));
if ( m_url.isEmpty() ) // dialog cancelled
return;
if ( !m_url.isValid() ){
@@ -337,15 +337,15 @@ void DocTreeViewImpl::saveFileAs()
throw( err );
}
if ( m_url.isLocalFile() ){
- QFile file( m_url.path() );
+ TQFile file( m_url.path() );
if ( !file.open(IO_WriteOnly) ){
err = i18n("Unable open file to write.");
throw( err );
}
// write file
- QTextStream doc(&file);
- doc.setEncoding(QTextStream::UnicodeUTF8);
+ TQTextStream doc(&file);
+ doc.setEncoding(TQTextStream::UnicodeUTF8);
doc << "<?xml version=\"1.0\" ?>" << endl;
doc << "<!--" << endl;
@@ -388,35 +388,35 @@ void DocTreeViewImpl::setEditMode(bool mode)
}
-void DocTreeViewImpl::makeToSingleLine( QString &content )
+void DocTreeViewImpl::makeToSingleLine( TQString &content )
{
// canonify string
- content.replace( QRegExp("\n"), "" ); // remove Newlines
- content.replace( QRegExp(" {2,}"), " " ); // remove multiple spaces
- content.replace( QRegExp("[\t|\r]{1,}"), ""); // remove Tabs
+ content.replace( TQRegExp("\n"), "" ); // remove Newlines
+ content.replace( TQRegExp(" {2,}"), " " ); // remove multiple spaces
+ content.replace( TQRegExp("[\t|\r]{1,}"), ""); // remove Tabs
}
-QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
+TQString DocTreeViewImpl::selectItemByID(const TQString &ID, const TQString title)
{
kdDebug(100200) << "DocTreeViewImpl::selectItemByID(" << ID << ")" << endl;
if ( ID.isNull() )
- return QString::null;
+ return TQString::null;
- QString sTitle = title.lower();
- QString err = QString::null;
+ TQString sTitle = title.lower();
+ TQString err = TQString::null;
/**
* Search on structure (URL)
* e.g. 1=RobDokument|1=BookInfo|1=KeywordSet|2=Keyword
*/
- QStringList partList;
- partList = QStringList::split("|", ID);
- QStringList::Iterator it = partList.begin();
+ TQStringList partList;
+ partList = TQStringList::split("|", ID);
+ TQStringList::Iterator it = partList.begin();
it++; // skip first element (allways RobDocument)
int childNum = 0;
- QString childType = QString::null;
+ TQString childType = TQString::null;
ListViewInterface *item = m_rootItem;
bool hit = false;
@@ -436,7 +436,7 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
}
if ( !item )
break; // expected item does not exist
- QString type = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString type = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
type = type.lower();
if ( childType != type )
break; // structure has been changed
@@ -444,7 +444,7 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
}
if ( item ){
- QString itemTitle = getItemTitle( item );
+ TQString itemTitle = getItemTitle( item );
itemTitle = itemTitle.lower();
if ( sTitle.left(itemTitle.length()) == itemTitle )
// Title made unique by KDE by appending "(2)", "(3)"...
@@ -458,8 +458,8 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
// walk trough the entire tree and try to find an item
// with the given title.
item = NULL;
- QListViewItemIterator sit( m_rootItem );
- QString itemTitle = QString::null;
+ TQListViewItemIterator sit( m_rootItem );
+ TQString itemTitle = TQString::null;
while ( sit.current() ) {
item = static_cast<ListViewInterface*>(sit.current());
if ( !item )
@@ -493,7 +493,7 @@ QString DocTreeViewImpl::selectItemByID(const QString &ID, const QString title)
}
-void DocTreeViewImpl::slotItemClicked(QListViewItem *item)
+void DocTreeViewImpl::slotItemClicked(TQListViewItem *item)
{
kdDebug(100200) << "DocTreeViewImpl::slotItemClicked()" << endl;
@@ -503,9 +503,9 @@ void DocTreeViewImpl::slotItemClicked(QListViewItem *item)
if ( item ){
m_currentItem = static_cast<ListViewInterface*>(item);
- QString str = QString::null;
- QTextStream msg(&str, IO_ReadWrite);
- msg.setEncoding(QTextStream::UnicodeUTF8);
+ TQString str = TQString::null;
+ TQTextStream msg(&str, IO_ReadWrite);
+ msg.setEncoding(TQTextStream::UnicodeUTF8);
// check if item has a child and check state
// of Edit Mode.
@@ -517,20 +517,20 @@ void DocTreeViewImpl::slotItemClicked(QListViewItem *item)
// Create Bookmark-ID depending on the location of the item
// within the tree
- QString idstring = QString::null;
- QTextStream id(&idstring, IO_ReadWrite);
- id.setEncoding(QTextStream::UnicodeUTF8);
+ TQString idstring = TQString::null;
+ TQTextStream id(&idstring, IO_ReadWrite);
+ id.setEncoding(TQTextStream::UnicodeUTF8);
id << "1=RobDocument";
recursiveBuildItemIdentifier( m_currentItem, id );
// inform the Bookmark Manager about the new item.
- QString title = getItemTitle( m_currentItem );
+ TQString title = getItemTitle( m_currentItem );
emit signalNotifyBookmarkManager(idstring, title);
}
}
-void DocTreeViewImpl::slotRightButtonPressed(QListViewItem *item, const QPoint &pos, int)
+void DocTreeViewImpl::slotRightButtonPressed(TQListViewItem *item, const TQPoint &pos, int)
{
kdDebug(100200) << "DocTreeViewImpl::slotRightButtonPressed()" << endl;
slotItemClicked( item );
@@ -546,7 +546,7 @@ void DocTreeViewImpl::slotRightButtonPressed(QListViewItem *item, const QPoint &
}
-void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, QTextStream &idstring)
+void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, TQTextStream &idstring)
{
kdDebug(100200) << "DocTreeViewImpl::recursiveBuildItemIdentifier()" << endl;
@@ -566,7 +566,7 @@ void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, QTex
// 2. Which child of the parentItem are we? Append no. to idstring.
int childno = 0;
- QString itemID = item->text(3);
+ TQString itemID = item->text(3);
ListViewInterface *i = static_cast<ListViewInterface*>( parentItem->firstChild() );
while( i ){
childno++;
@@ -577,25 +577,25 @@ void DocTreeViewImpl::recursiveBuildItemIdentifier(ListViewInterface* item, QTex
idstring << "|" << childno;
// 3. Who are we? Append ID to idstring.
- QString itemType = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString itemType = ( item->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
idstring << "=" << itemType;
}
-QString DocTreeViewImpl::getItemTitle( ListViewInterface *item )
+TQString DocTreeViewImpl::getItemTitle( ListViewInterface *item )
{
if ( !item )
- return QString::null;
+ return TQString::null;
- QString col0 = item->text(0);
- QString title = QString::null;
+ TQString col0 = item->text(0);
+ TQString title = TQString::null;
// if ( col0 == i18n("Paragraph") ){ // better to use XmlContextName?
if( (item->getValue(KSayItGlobal::XMLCONTEXTNAME)).toString() == i18n("Paragraph") ){
title = ( item->getValue(KSayItGlobal::SPEAKERDATA) ).toString().left(32);
// canonify string
- title.replace( QRegExp("^( |\t|\n)+"), "");
- title.replace( QRegExp("( |\t|\n)$+"), "");
+ title.replace( TQRegExp("^( |\t|\n)+"), "");
+ title.replace( TQRegExp("( |\t|\n)$+"), "");
} else {
title = col0.left(32);
}
@@ -603,11 +603,11 @@ QString DocTreeViewImpl::getItemTitle( ListViewInterface *item )
}
-void DocTreeViewImpl::recursiveTextCollector(ListViewInterface* item, QTextStream &msg, bool header)
+void DocTreeViewImpl::recursiveTextCollector(ListViewInterface* item, TQTextStream &msg, bool header)
{
kdDebug(100200) << "DocTreeViewImpl::recursiveTextCollector()" << endl;
- QString text;
+ TQString text;
if ( header ){
// if header==true get Headers
msg << ( item->getValue(KSayItGlobal::RTFHEADER) ).toString();
@@ -648,9 +648,9 @@ void DocTreeViewImpl::recursiveSayNodes(ListViewInterface* item)
{
kdDebug(100200) << "DocTreeViewImpl::recursiveSayNodes()" << endl;
- QString str;
- QTextStream msg(&str, IO_ReadWrite);
- msg.setEncoding(QTextStream::UnicodeUTF8);
+ TQString str;
+ TQTextStream msg(&str, IO_ReadWrite);
+ msg.setEncoding(TQTextStream::UnicodeUTF8);
msg << ( item->getValue(KSayItGlobal::SPEAKERHEADER) ).toString();
msg << ( item->getValue(KSayItGlobal::SPEAKERDATA) ).toString() << "\n" << endl;
@@ -678,7 +678,7 @@ void DocTreeViewImpl::stop()
}
-void DocTreeViewImpl::setNodeContent(QString &text)
+void DocTreeViewImpl::setNodeContent(TQString &text)
{
kdDebug(100200) << "DocTreeViewImpl::setNodeContent()" << endl;
m_changedContent = text;
@@ -700,12 +700,12 @@ void DocTreeViewImpl::makeCurrentNodePersistent()
m_currentItem->setValue( KSayItGlobal::RTFDATA, m_changedContent );
m_currentItem->setValue( KSayItGlobal::SPEAKERDATA, m_changedContent );
- m_changedContent = QString::null;
+ m_changedContent = TQString::null;
}
/** replaced by slotRightButtonPressed()
*/
-// void DocTreeViewImpl::contextMenuEvent(QContextMenuEvent *e)
+// void DocTreeViewImpl::contextMenuEvent(TQContextMenuEvent *e)
// {
// kdDebug(100200) << "DocTreeViewImpl::contextMenuEvent()" << endl;
//
@@ -732,7 +732,7 @@ void DocTreeViewImpl::slotRenameItem()
return;
bool responseOK;
- QString newname;
+ TQString newname;
newname = KInputDialog::getText(
i18n("Rename Item"),
i18n("Please enter the new name of the item:"),
@@ -762,12 +762,12 @@ void DocTreeViewImpl::slotDeleteItem()
return; // delete only items with parent
// try to delete bookmark
- QString url = QString::null;
- QTextStream id(&url, IO_ReadWrite);
- id.setEncoding(QTextStream::UnicodeUTF8);
+ TQString url = TQString::null;
+ TQTextStream id(&url, IO_ReadWrite);
+ id.setEncoding(TQTextStream::UnicodeUTF8);
id << "ksayit://1=RobDocument";
recursiveBuildItemIdentifier( itemToDelete, id );
- QString title = getItemTitle( itemToDelete );
+ TQString title = getItemTitle( itemToDelete );
emit signalDeleteBookmark( url, title );
// remove TreeView item
@@ -776,10 +776,10 @@ void DocTreeViewImpl::slotDeleteItem()
// reindex entire remaining tree
ListViewInterface *item = NULL;
m_idCounter = KSayItGlobal::item_initial_id;
- QListViewItemIterator itr( m_rootItem );
+ TQListViewItemIterator itr( m_rootItem );
while ( itr.current() ) {
item = static_cast<ListViewInterface*>(itr.current());
- item->setText(3, QString("%1").arg(++m_idCounter).rightJustify(8,'0') );
+ item->setText(3, TQString("%1").arg(++m_idCounter).rightJustify(8,'0') );
++itr;
}
@@ -793,11 +793,11 @@ void DocTreeViewImpl::slotDeleteItem()
void DocTreeViewImpl::slotNewBookInfo()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "RobDocument" ){
int newIndex = newIndexFirstChild();
Overview *overview = new Overview( m_currentItem, NULL, i18n("Overview") );
- overview->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ overview->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( overview );
}
@@ -806,13 +806,13 @@ void DocTreeViewImpl::slotNewBookInfo()
void DocTreeViewImpl::slotNewChapter()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "RobDocument" ){
int newIndex = newIndexLastChild();
Chapter *chapter = new Chapter( m_currentItem, NULL, i18n("Chapter") );
- chapter->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ chapter->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Chapter Title");
+ TQString newTitle = i18n("New Chapter Title");
chapter->setText(0, newTitle );
chapter->setValue(KSayItGlobal::RTFHEADER, newTitle );
chapter->setValue(KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -824,12 +824,12 @@ void DocTreeViewImpl::slotNewChapter()
void DocTreeViewImpl::slotNewKeywordSet()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexFirstChild();
KeywordSet *keywordset = new KeywordSet(m_currentItem, NULL, i18n("Keywords"));
- keywordset->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ keywordset->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( keywordset );
}
@@ -838,14 +838,14 @@ void DocTreeViewImpl::slotNewKeywordSet()
void DocTreeViewImpl::slotNewKeyword()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "KeywordSet" ){
// New TreeView item
int newIndex = newIndexLastChild();
Keyword *keyword = new Keyword(m_currentItem, NULL, i18n("Keyword"));
- keyword->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ keyword->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newKeyword = i18n("New Keyword");
+ TQString newKeyword = i18n("New Keyword");
keyword->setText(0, newKeyword );
keyword->setValue(KSayItGlobal::RAWDATA, newKeyword);
keyword->setValue(KSayItGlobal::RTFDATA, newKeyword);
@@ -858,12 +858,12 @@ void DocTreeViewImpl::slotNewKeyword()
void DocTreeViewImpl::slotNewAbstract()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexLastChild();
Abstract *abstract = new Abstract(m_currentItem, NULL, i18n("Abstract"));
- abstract->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ abstract->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( abstract );
@@ -878,12 +878,12 @@ void DocTreeViewImpl::slotNewAbstract()
void DocTreeViewImpl::slotNewAuthorGroup()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexFirstChild();
AuthorGroup *authorgroup = new AuthorGroup(m_currentItem, NULL, i18n("Author(s)"));
- authorgroup->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ authorgroup->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( authorgroup );
@@ -898,15 +898,15 @@ void DocTreeViewImpl::slotNewAuthorGroup()
void DocTreeViewImpl::slotNewAuthor()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "AuthorGroup" ){
// New TreeView item
int newIndex = newIndexLastChild();
Author *author = new Author(m_currentItem);
- author->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ author->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
author->setText(0, i18n("Author") );
- QString newAuthor = i18n("Firstname Surname");
+ TQString newAuthor = i18n("Firstname Surname");
author->setText(1, newAuthor );
author->setValue( KSayItGlobal::RAWDATA, newAuthor );
author->setValue( KSayItGlobal::RTFDATA, newAuthor );
@@ -919,15 +919,15 @@ void DocTreeViewImpl::slotNewAuthor()
void DocTreeViewImpl::slotNewDate()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexLastChild();
Date *date = new Date(m_currentItem, NULL, i18n("Date"));
- date->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ date->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
// get current date
- QString today;
- today = KGlobal::locale()->formatDate(QDate::currentDate(Qt::LocalTime), true);
+ TQString today;
+ today = KGlobal::locale()->formatDate(TQDate::currentDate(Qt::LocalTime), true);
date->setText( 1, today);
date->setValue( KSayItGlobal::RAWDATA, today );
date->setValue( KSayItGlobal::RTFDATA, today );
@@ -940,14 +940,14 @@ void DocTreeViewImpl::slotNewDate()
void DocTreeViewImpl::slotNewReleaseInfo()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "BookInfo" ){
// New TreeView item
int newIndex = newIndexLastChild();
ReleaseInfo *relinfo = new ReleaseInfo(m_currentItem, NULL, i18n("Release"));
- relinfo->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ relinfo->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newRelease = "0.0.0";
+ TQString newRelease = "0.0.0";
relinfo->setText( 1, newRelease );
relinfo->setValue( KSayItGlobal::RAWDATA, newRelease );
relinfo->setValue( KSayItGlobal::RTFDATA, newRelease );
@@ -966,7 +966,7 @@ void DocTreeViewImpl::slotNewTitle()
void DocTreeViewImpl::slotNewParagraph()
{
/* // Create Null element
- QDomElement parentElement = QDomElement();
+ TQDomElement parentElement = TQDomElement();
NodeList_type list;
list.clear();
@@ -979,7 +979,7 @@ void DocTreeViewImpl::slotNewParagraph()
// New TreeView item
int newIndex = newIndexLastChild();
Para *para = new Para(m_currentItem, NULL, i18n("Paragraph"));
- para->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ para->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
m_contextmenuhandler->registerPopupMenu( para );
@@ -988,13 +988,13 @@ void DocTreeViewImpl::slotNewParagraph()
void DocTreeViewImpl::slotNewSection_1()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Chapter" ){
int newIndex = newIndexLastChild();
Sect1 *sect1 = new Sect1(m_currentItem, NULL, i18n("Section Level 1"));
- sect1->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect1->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect1->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect1->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1005,13 +1005,13 @@ void DocTreeViewImpl::slotNewSection_1()
void DocTreeViewImpl::slotNewSection_2()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect1" ){
int newIndex = newIndexLastChild();
Sect2 *sect2 = new Sect2(m_currentItem, NULL, i18n("Section Level 2"));
- sect2->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect2->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect2->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect2->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1022,13 +1022,13 @@ void DocTreeViewImpl::slotNewSection_2()
void DocTreeViewImpl::slotNewSection_3()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect2" ){
int newIndex = newIndexLastChild();
Sect3 *sect3 = new Sect3(m_currentItem, NULL, i18n("Section Level 3"));
- sect3->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect3->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect3->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect3->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1039,13 +1039,13 @@ void DocTreeViewImpl::slotNewSection_3()
void DocTreeViewImpl::slotNewSection_4()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect3" ){
int newIndex = newIndexLastChild();
Sect4 *sect4 = new Sect4(m_currentItem, NULL, i18n("Section Level 4"));
- sect4->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect4->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect4->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect4->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1056,13 +1056,13 @@ void DocTreeViewImpl::slotNewSection_4()
void DocTreeViewImpl::slotNewSection_5()
{
- QString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
+ TQString whoAmI = ( m_currentItem->getValue(KSayItGlobal::XMLCONTEXTNAME) ).toString();
if ( whoAmI == "Sect4" ){
int newIndex = newIndexLastChild();
Sect5 *sect5 = new Sect5(m_currentItem, NULL, i18n("Section Level 5"));
- sect5->setText(3, QString("%1").arg(newIndex).rightJustify(8,'0') );
+ sect5->setText(3, TQString("%1").arg(newIndex).rightJustify(8,'0') );
- QString newTitle = i18n("New Section Title");
+ TQString newTitle = i18n("New Section Title");
sect5->setValue( KSayItGlobal::RTFHEADER, newTitle );
sect5->setValue( KSayItGlobal::SPEAKERHEADER, newTitle );
@@ -1081,12 +1081,12 @@ int DocTreeViewImpl::newIndexFirstChild()
// indices greater than currentIndex
ListViewInterface *item = NULL;
int itemIndex;
- QListViewItemIterator it( m_rootItem );
+ TQListViewItemIterator it( m_rootItem );
while ( it.current() ) {
item = static_cast<ListViewInterface*>(it.current());
itemIndex = (item->text(3)).toInt();
if ( itemIndex > currentIndex ){
- item->setText(3, QString("%1").arg(itemIndex+1).rightJustify(8,'0') );;
+ item->setText(3, TQString("%1").arg(itemIndex+1).rightJustify(8,'0') );;
}
++it;
}
@@ -1111,12 +1111,12 @@ int DocTreeViewImpl::newIndexLastChild()
// indices greater than lastIndex
int itemIndex;
ListViewInterface *item;
- QListViewItemIterator it( m_rootItem );
+ TQListViewItemIterator it( m_rootItem );
while ( it.current() ) {
item = static_cast<ListViewInterface*>(it.current());
itemIndex = (item->text(3)).toInt();
if ( itemIndex > lastIndex ){
- item->setText(3, QString("%1").arg(itemIndex+1).rightJustify(8,'0') );
+ item->setText(3, TQString("%1").arg(itemIndex+1).rightJustify(8,'0') );
}
++it;
}
diff --git a/ksayit/src/doctreeviewimpl.h b/ksayit/src/doctreeviewimpl.h
index 4ad0c38..c42cab8 100644
--- a/ksayit/src/doctreeviewimpl.h
+++ b/ksayit/src/doctreeviewimpl.h
@@ -13,7 +13,7 @@
#define DOCTREEVIEWIMPL_H
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kurl.h>
@@ -32,7 +32,7 @@ class ContextMenuHandler;
/**
This class implements the TreeView object.\n
It takes a XML/DocBook file, parses it and builds up a hierarchical
-\p QListView structure corresponding to the structure of the document.
+\p TQListView structure corresponding to the structure of the document.
The objective of this class is to maintain the document and provide
all required methods to access or manipulate its content.
@author Robert Vogl
@@ -40,7 +40,7 @@ all required methods to access or manipulate its content.
class DocTreeViewImpl : public DocTreeView
{
public:
- DocTreeViewImpl(QWidget* parent=0, const char* name=0, WFlags fl=0);
+ DocTreeViewImpl(TQWidget* parent=0, const char* name=0, WFlags fl=0);
~DocTreeViewImpl();
@@ -78,7 +78,7 @@ public:
* persistent.
* \param text The content of the TextEdit view.
*/
- void setNodeContent(QString &text);
+ void setNodeContent(TQString &text);
/**
* Starting from the current selected node it travels recursively
@@ -102,10 +102,10 @@ public:
/**
* Sets the item active designated by the ID.
* \param ID The ID (column 3) of the TreeView item.
- * \returns <tt>QString::null</tt> if the operation was successfull,\n
+ * \returns <tt>TQString::null</tt> if the operation was successfull,\n
* an error message, if the item was not found.
*/
- QString selectItemByID(const QString &ID, const QString title);
+ TQString selectItemByID(const TQString &ID, const TQString title);
/**
* Enables/disables the contextmenus
@@ -145,30 +145,30 @@ protected slots:
*
* \param item The new active item of the TreeView.
*/
- void slotItemClicked(QListViewItem *item);
+ void slotItemClicked(TQListViewItem *item);
/**
* Reimplemented from base class.
* Called when the right button was pressed.
* \param item The new active item of the TreeView.
*/
- void slotRightButtonPressed(QListViewItem *item, const QPoint &pos, int);
+ void slotRightButtonPressed(TQListViewItem *item, const TQPoint &pos, int);
/**
- * Reimplemented from QWidget class.
+ * Reimplemented from TQWidget class.
*/
- // void contextMenuEvent(QContextMenuEvent *e);
+ // void contextMenuEvent(TQContextMenuEvent *e);
private: // Methods
- void recursiveTextCollector(ListViewInterface* item, QTextStream &msg, bool header=true);
+ void recursiveTextCollector(ListViewInterface* item, TQTextStream &msg, bool header=true);
void recursiveSayNodes(ListViewInterface* item);
- void recursiveBuildItemIdentifier(ListViewInterface* item, QTextStream &idstring);
+ void recursiveBuildItemIdentifier(ListViewInterface* item, TQTextStream &idstring);
void makeCurrentNodePersistent();
int newIndexFirstChild();
int newIndexLastChild();
void findHighestIndex(ListViewInterface* item, int &index);
- QString getItemTitle( ListViewInterface *item);
- void makeToSingleLine( QString &content );
+ TQString getItemTitle( ListViewInterface *item);
+ void makeToSingleLine( TQString &content );
private: // Attributes
@@ -176,7 +176,7 @@ private: // Attributes
KPopupMenu *m_contextmenu;
ListViewInterface *m_rootItem;
ListViewInterface *m_currentItem;
- QString m_changedContent;
+ TQString m_changedContent;
int m_idCounter;
bool m_stopped;
KURL m_url;
diff --git a/ksayit/src/effectstack.cpp b/ksayit/src/effectstack.cpp
index 7497847..67cfb44 100644
--- a/ksayit/src/effectstack.cpp
+++ b/ksayit/src/effectstack.cpp
@@ -11,7 +11,7 @@
//
// Qt includes
-#include <qstringlist.h>
+#include <tqstringlist.h>
// KDE includes
#include <kdebug.h>
@@ -37,8 +37,8 @@ bool EffectStack::loadEffects()
{
kdDebug(100200) << "EffectStack::loadEffects()" << endl;
- QStringList c_active;
- QStringList::Iterator fx_it;
+ TQStringList c_active;
+ TQStringList::Iterator fx_it;
// create filterstack
FX_Stack = server.server().outstack();
diff --git a/ksayit/src/fxpluginhandler.cpp b/ksayit/src/fxpluginhandler.cpp
index 8e6f68d..ec68de8 100644
--- a/ksayit/src/fxpluginhandler.cpp
+++ b/ksayit/src/fxpluginhandler.cpp
@@ -11,7 +11,7 @@
//
// QT includes
-#include <qdir.h>
+#include <tqdir.h>
// KDE includes
#include <kdebug.h>
@@ -26,8 +26,8 @@
#include "ksayit_ttsplugin.h"
-FXPluginHandler::FXPluginHandler(QObject *parent, const char *name, KConfig *config)
- : QObject(parent, name), m_config(config)
+FXPluginHandler::FXPluginHandler(TQObject *parent, const char *name, KConfig *config)
+ : TQObject(parent, name), m_config(config)
{
m_mapPluginList.clear();
m_lstActivePlugins.clear();
@@ -36,7 +36,7 @@ FXPluginHandler::FXPluginHandler(QObject *parent, const char *name, KConfig *con
FXPluginHandler::~FXPluginHandler()
{
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
for (mit=m_mapPluginList.begin(); mit!=m_mapPluginList.end(); ++mit){
if ( (*mit).p != 0 ){
@@ -50,7 +50,7 @@ void FXPluginHandler::searchPlugins()
{
kdDebug(100200) << "FXPluginHandler::searchPlugins()" << endl;
- QStringList sRegistered;
+ TQStringList sRegistered;
fx_struct plugin;
sRegistered.clear();
@@ -58,8 +58,8 @@ void FXPluginHandler::searchPlugins()
KTrader::OfferList offers = KTrader::self()->query("KSayIt/FXPlugin");
KLibFactory *factory = NULL;
- QString library = QString::null;
- QString name = QString::null;
+ TQString library = TQString::null;
+ TQString name = TQString::null;
KTrader::OfferList::Iterator it=offers.begin();
for ( ;it!=offers.end(); ++it ){
@@ -70,11 +70,11 @@ void FXPluginHandler::searchPlugins()
if ( factory ){
kdDebug(100200) << "FXPluginHandler::searchPlugins(): Plugin factory found." << endl;
// register found plugin
- if ( !sRegistered.contains( QString(name) )){
- sRegistered.append( QString(name) );
+ if ( !sRegistered.contains( TQString(name) )){
+ sRegistered.append( TQString(name) );
plugin.name = name;
plugin.library = library;
- plugin.description = QString::null;
+ plugin.description = TQString::null;
plugin.EffectID = 0;
plugin.p = NULL;
m_mapPluginList[plugin.name] = plugin; // update Plugin Map
@@ -90,8 +90,8 @@ void FXPluginHandler::readConfiguration()
kdDebug(100200) << "+++ entering FXPluginHandler::readConfiguration()" << endl;
fx_struct plugin;
- QMap<QString, fx_struct>::Iterator mit;
- QStringList::Iterator lit;
+ TQMap<TQString, fx_struct>::Iterator mit;
+ TQStringList::Iterator lit;
// unload all plugins and destroy the effect objects
lit = m_lstActivePlugins.begin();
@@ -112,7 +112,7 @@ void FXPluginHandler::readConfiguration()
// load active plugins as given in config file
m_config->setGroup("Effect Stack Configuration");
- QStringList conf_active = m_config->readListEntry("Activated");
+ TQStringList conf_active = m_config->readListEntry("Activated");
KLibFactory *factory = NULL;
for (lit=conf_active.begin(); lit!=conf_active.end(); ++lit){ // for all in config
@@ -123,7 +123,7 @@ void FXPluginHandler::readConfiguration()
// load plugin
factory = KLibLoader::self()->factory( (plugin.library).latin1() );
if ( factory ){
- plugin.p = static_cast<FXPlugin*>( factory->create( (QObject*)this, (plugin.name).latin1() ) );
+ plugin.p = static_cast<FXPlugin*>( factory->create( (TQObject*)this, (plugin.name).latin1() ) );
if ( plugin.p ){ // Plugin found
plugin.p->setApplication( KApplication::kApplication() );
plugin.description = plugin.p->getDescription_KS();
@@ -138,11 +138,11 @@ void FXPluginHandler::readConfiguration()
}
-void FXPluginHandler::showEffectGUI(const QString &pname)
+void FXPluginHandler::showEffectGUI(const TQString &pname)
{
kdDebug(100200) << "FXPluginHandler::showEffectGUI(): " << pname << endl;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
fx_struct plugin;
// find plugin with name==pname in list and show its GUI
@@ -156,7 +156,7 @@ void FXPluginHandler::showEffectGUI(const QString &pname)
kdDebug(100200) << "Effect not active yet. Loading..." << endl;
KLibFactory *factory = KLibLoader::self()->factory( (plugin.library).latin1() );
if ( factory ){
- plugin.p = static_cast<FXPlugin*>( factory->create( (QObject*)this, (plugin.name).latin1() ) );
+ plugin.p = static_cast<FXPlugin*>( factory->create( (TQObject*)this, (plugin.name).latin1() ) );
if ( plugin.p ){ // Plugin found
plugin.p->setApplication( KApplication::kApplication() );
plugin.description = plugin.p->getDescription_KS();
@@ -173,14 +173,14 @@ void FXPluginHandler::showEffectGUI(const QString &pname)
}
-void FXPluginHandler::getPlugins(QStringList &pluginlist)
+void FXPluginHandler::getPlugins(TQStringList &pluginlist)
{
// kdDebug(100200) << "FXPluginHandler::getPlugins" << endl;
pluginlist.clear();
- QString sPname;
+ TQString sPname;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
for (mit=m_mapPluginList.begin(); mit!=m_mapPluginList.end(); ++mit){
sPname = (*mit).name; //testing
pluginlist.append( sPname );
@@ -188,13 +188,13 @@ void FXPluginHandler::getPlugins(QStringList &pluginlist)
}
-void FXPluginHandler::activateEffect(const QString &pname,
+void FXPluginHandler::activateEffect(const TQString &pname,
KArtsServer *server,
StereoEffectStack *fx_stack)
{
kdDebug(100200) << "FXPluginHandler::activateEffect: " << pname << endl;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
fx_struct plugin;
// find plugin with name==pname
@@ -215,7 +215,7 @@ void FXPluginHandler::deactivateEffects(StereoEffectStack *fx_stack)
{
kdDebug(100200) << "FXPluginHandler::deactivateEffects." << endl;
- QMap<QString, fx_struct>::Iterator mit;
+ TQMap<TQString, fx_struct>::Iterator mit;
fx_struct plugin;
for (mit=m_mapPluginList.begin(); mit!=m_mapPluginList.end(); ++mit){
diff --git a/ksayit/src/fxpluginhandler.h b/ksayit/src/fxpluginhandler.h
index 1a3d54a..43c820f 100644
--- a/ksayit/src/fxpluginhandler.h
+++ b/ksayit/src/fxpluginhandler.h
@@ -13,12 +13,12 @@
#define FXPLUGINHANDLER_H
// QT includes
-#include <qobject.h>
-#include <qlibrary.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qmap.h>
-// #include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqlibrary.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqmap.h>
+// #include <tqvaluelist.h>
// KDE includes
#include <kconfig.h>
@@ -36,9 +36,9 @@ using namespace Arts;
/** Internal structure of the effect plugin
*/
typedef struct {
- QString name; // KService::Ptr->name()
- QString library; // KService::Ptr->library()
- QString description;
+ TQString name; // KService::Ptr->name()
+ TQString library; // KService::Ptr->library()
+ TQString description;
long EffectID; // !=0, if effect is on the effect stack.
FXPlugin *p; // factory->create(...)
} fx_struct;
@@ -48,7 +48,7 @@ class FXPluginHandler : public QObject
{
Q_OBJECT
public:
- FXPluginHandler(QObject *parent = 0, const char *name = 0, KConfig *config=0);
+ FXPluginHandler(TQObject *parent = 0, const char *name = 0, KConfig *config=0);
~FXPluginHandler();
public: // Methods
@@ -64,14 +64,14 @@ public: // Methods
/** Shows the GUI to setup the effect named name
\param pname The name of the effect to configure.
*/
- void showEffectGUI(const QString &pname);
+ void showEffectGUI(const TQString &pname);
/** Activates the named effect
\param pname Name of the effect to activate.
\param server A pointer to the soundserver instance.
\param fx_stack A pointer to the effect stack of the soundserver.
*/
- void activateEffect(const QString &pname,
+ void activateEffect(const TQString &pname,
KArtsServer *server,
StereoEffectStack *fx_stack);
@@ -81,15 +81,15 @@ public: // Methods
void deactivateEffects(StereoEffectStack *fx_stack);
/** Returns a list of all available plugins.
- \param pluginlist A reference to a QStringList that contains the available plugins.
+ \param pluginlist A reference to a TQStringList that contains the available plugins.
*/
- void getPlugins(QStringList &pluginlist);
+ void getPlugins(TQStringList &pluginlist);
private: // Attributes
KConfig *m_config;
- QMap<QString, fx_struct> m_mapPluginList; // holds all plugins found on the system
- // QMap<QString, fx_struct> m_mapActivePlugins; // holds the active effects
- QStringList m_lstActivePlugins;
+ TQMap<TQString, fx_struct> m_mapPluginList; // holds all plugins found on the system
+ // TQMap<TQString, fx_struct> m_mapActivePlugins; // holds the active effects
+ TQStringList m_lstActivePlugins;
};
diff --git a/ksayit/src/fxsetupimpl.cpp b/ksayit/src/fxsetupimpl.cpp
index cb85080..fc0100e 100644
--- a/ksayit/src/fxsetupimpl.cpp
+++ b/ksayit/src/fxsetupimpl.cpp
@@ -16,8 +16,8 @@
***************************************************************************/
// QT includes
-#include <qstringlist.h>
-#include <qpushbutton.h>
+#include <tqstringlist.h>
+#include <tqpushbutton.h>
// KDE includes
#include <kdebug.h>
@@ -27,7 +27,7 @@
// #include "freeverbsetupimpl.h"
#include "fxpluginhandler.h"
-FX_SetupImpl::FX_SetupImpl(QWidget *parent, const char *name,
+FX_SetupImpl::FX_SetupImpl(TQWidget *parent, const char *name,
KConfig *config,
FXPluginHandler *fxpluginhandler )
: FX_Setup(parent,name), m_config(config), m_fxpluginhandler(fxpluginhandler)
@@ -89,18 +89,18 @@ void FX_SetupImpl::slotReload()
}
-void FX_SetupImpl::slotConfigureEffect(QListBoxItem *item)
+void FX_SetupImpl::slotConfigureEffect(TQListBoxItem *item)
{
m_fxpluginhandler->showEffectGUI(item->text());
}
-void FX_SetupImpl::Init(QStringList c_avail)
+void FX_SetupImpl::Init(TQStringList c_avail)
{
m_config->setGroup("Effect Stack Configuration");
- QStringList conf_active = m_config->readListEntry("Activated");
- QStringList c_active;
- QStringList::Iterator sit, it;
+ TQStringList conf_active = m_config->readListEntry("Activated");
+ TQStringList c_active;
+ TQStringList::Iterator sit, it;
listBox_Available->clear();
listBox_Active->clear();
@@ -135,7 +135,7 @@ void FX_SetupImpl::slotSaveWasClicked()
m_config->setGroup("Effect Stack Configuration");
// Read ListBox Available FX
- QStringList slist;
+ TQStringList slist;
for(uint i=0; i<listBox_Available->count(); i++){
slist.append( listBox_Available->text( (int)i) );
}
@@ -144,7 +144,7 @@ void FX_SetupImpl::slotSaveWasClicked()
// Read ListBox Activated FX
slist.clear();
- QString t;
+ TQString t;
for(uint i=0; i<listBox_Active->count(); i++){
t = listBox_Active->text( (int)i );
slist.append( t );
diff --git a/ksayit/src/fxsetupimpl.h b/ksayit/src/fxsetupimpl.h
index 403631d..ac256ed 100644
--- a/ksayit/src/fxsetupimpl.h
+++ b/ksayit/src/fxsetupimpl.h
@@ -19,8 +19,8 @@
#define FXSETUPIMPL_H
// QT includes
-#include <qwidget.h>
-#include <qlistbox.h>
+#include <tqwidget.h>
+#include <tqlistbox.h>
// KDE includes
@@ -39,7 +39,7 @@ class FX_SetupImpl : public FX_Setup {
Q_OBJECT
public:
- FX_SetupImpl(QWidget *parent=0, const char *name=0,
+ FX_SetupImpl(TQWidget *parent=0, const char *name=0,
KConfig *config=0,
FXPluginHandler *fxpluginhandler=0);
~FX_SetupImpl();
@@ -65,7 +65,7 @@ public slots:
Opens a modal dialog to configure the efffect.
\param item The double clicked item.
*/
- void slotConfigureEffect(QListBoxItem *item);
+ void slotConfigureEffect(TQListBoxItem *item);
/** Saves the configuration
*/
@@ -75,12 +75,12 @@ private: // Methods
/** Loads the configuration and initializes the widget.
\param c_avail List of available plugins.
*/
- void Init(QStringList c_avail);
+ void Init(TQStringList c_avail);
private:
KConfig *m_config;
FXPluginHandler *m_fxpluginhandler;
- QStringList pluginlist;
+ TQStringList pluginlist;
};
diff --git a/ksayit/src/ksayit.cpp b/ksayit/src/ksayit.cpp
index 131db8c..877c60a 100644
--- a/ksayit/src/ksayit.cpp
+++ b/ksayit/src/ksayit.cpp
@@ -17,11 +17,11 @@
#include <stdlib.h> // getenv, system
// include files for QT
-#include <qdir.h>
-#include <qapplication.h>
-#include <qdockwindow.h>
-#include <qfileinfo.h>
-#include <qfile.h>
+#include <tqdir.h>
+#include <tqapplication.h>
+#include <tqdockwindow.h>
+#include <tqfileinfo.h>
+#include <tqfile.h>
// include files for KDE
#include <klocale.h>
@@ -55,8 +55,8 @@
#define KSAYITUI "ksayitui.rc"
#define ID_STATUS_MSG 1
-KSayItApp::KSayItApp(QWidget* parent, const char* name, WFlags f,
- const QCString &objID)
+KSayItApp::KSayItApp(TQWidget* parent, const char* name, WFlags f,
+ const TQCString &objID)
: KMainWindow(parent, name, f), DCOPObject(objID)
{
config = NULL;
@@ -67,7 +67,7 @@ KSayItApp::KSayItApp(QWidget* parent, const char* name, WFlags f,
bkManager = NULL;
bkHandler = NULL;
bkMenu = NULL;
- m_currentBookmarkFile = QString::null;
+ m_currentBookmarkFile = TQString::null;
config=kapp->config();
m_kttslib = new KTTSDLib(this, "KTTSD-Library", kapp);
@@ -83,27 +83,27 @@ KSayItApp::KSayItApp(QWidget* parent, const char* name, WFlags f,
readOptions();
// connect TTS plugin handler to this object
- connect(m_kttslib, SIGNAL(signalFinished()),
- this, SLOT(slotTTSFinished()) );
+ connect(m_kttslib, TQT_SIGNAL(signalFinished()),
+ this, TQT_SLOT(slotTTSFinished()) );
// only used if library thinks it has to call the preferences dialog.
// e.g. when it detects a bad configuration.
- connect(m_kttslib, SIGNAL(signalCallPreferences()),
- this, SLOT(slotPreferences()) );
+ connect(m_kttslib, TQT_SIGNAL(signalCallPreferences()),
+ this, TQT_SLOT(slotPreferences()) );
// init Clipboard
- cb = QApplication::clipboard();
- connect(cb, SIGNAL(dataChanged()), this, SLOT(slotClipboardChanged()) );
+ cb = TQApplication::clipboard();
+ connect(cb, TQT_SIGNAL(dataChanged()), this, TQT_SLOT(slotClipboardChanged()) );
// create SystemTray object
tray = new KSayItSystemTray(this, "system_tray");
- connect(tray, SIGNAL(signalCallPreferences()), this, SLOT(slotPreferences()) );
- connect(tray, SIGNAL(signalSayActivated()), this, SLOT(slotSayText()) );
- connect(tray, SIGNAL(signalSayClipboard()), this, SLOT(slotSayClipboard()) );
- connect(tray, SIGNAL(signalShutUpActivated()), this, SLOT(slotStopActivated()) );
- connect(tray, SIGNAL(signalPauseActivated()), this, SLOT(slotPauseActivated()) );
- connect(tray, SIGNAL(signalNextActivated()), this, SLOT(slotNextSentenceActivated()) );
- connect(tray, SIGNAL(signalPrevActivated()), this, SLOT(slotPrevSentenceActivated()) );
+ connect(tray, TQT_SIGNAL(signalCallPreferences()), this, TQT_SLOT(slotPreferences()) );
+ connect(tray, TQT_SIGNAL(signalSayActivated()), this, TQT_SLOT(slotSayText()) );
+ connect(tray, TQT_SIGNAL(signalSayClipboard()), this, TQT_SLOT(slotSayClipboard()) );
+ connect(tray, TQT_SIGNAL(signalShutUpActivated()), this, TQT_SLOT(slotStopActivated()) );
+ connect(tray, TQT_SIGNAL(signalPauseActivated()), this, TQT_SLOT(slotPauseActivated()) );
+ connect(tray, TQT_SIGNAL(signalNextActivated()), this, TQT_SLOT(slotNextSentenceActivated()) );
+ connect(tray, TQT_SIGNAL(signalPrevActivated()), this, TQT_SLOT(slotPrevSentenceActivated()) );
tray->show();
tray->setEnabled(true);
@@ -141,61 +141,61 @@ KSayItApp::~KSayItApp()
void KSayItApp::initActions()
{
// Standard-Actions
- open = KStdAction::open(this, SLOT(slotFileOpen()), actionCollection());
- save = KStdAction::save(this, SLOT(slotFileSave()), actionCollection());
- saveAs = KStdAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection());
- KStdAction::quit(this, SLOT(slotFileQuit()), actionCollection());
- KStdAction::close(this, SLOT(slotCloseMainWindow()), actionCollection());
- cut = KStdAction::cut(view, SLOT(slotCut()), actionCollection());
- copy = KStdAction::copy(view, SLOT(slotCopy()), actionCollection());
- paste = KStdAction::paste(view, SLOT(slotPaste()), actionCollection());
- preferences = KStdAction::preferences(this, SLOT(slotPreferences()), actionCollection());
- KStdAction::keyBindings(this, SLOT(slotEditKeys()), actionCollection());
- KStdAction::configureToolbars(this, SLOT(slotConfigureToolbar()), actionCollection());
+ open = KStdAction::open(this, TQT_SLOT(slotFileOpen()), actionCollection());
+ save = KStdAction::save(this, TQT_SLOT(slotFileSave()), actionCollection());
+ saveAs = KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
+ KStdAction::quit(this, TQT_SLOT(slotFileQuit()), actionCollection());
+ KStdAction::close(this, TQT_SLOT(slotCloseMainWindow()), actionCollection());
+ cut = KStdAction::cut(view, TQT_SLOT(slotCut()), actionCollection());
+ copy = KStdAction::copy(view, TQT_SLOT(slotCopy()), actionCollection());
+ paste = KStdAction::paste(view, TQT_SLOT(slotPaste()), actionCollection());
+ preferences = KStdAction::preferences(this, TQT_SLOT(slotPreferences()), actionCollection());
+ KStdAction::keyBindings(this, TQT_SLOT(slotEditKeys()), actionCollection());
+ KStdAction::configureToolbars(this, TQT_SLOT(slotConfigureToolbar()), actionCollection());
KStdAction::showToolbar("mainToolBar", actionCollection());
- statusBarAction = KStdAction::showStatusbar(this, SLOT(slotToggleStatusBar()), actionCollection());
+ statusBarAction = KStdAction::showStatusbar(this, TQT_SLOT(slotToggleStatusBar()), actionCollection());
// User defined actions
say = new KAction (i18n("Say"),
Qt::Key_F9,
- this, SLOT (slotSayText()),
+ this, TQT_SLOT (slotSayText()),
actionCollection(),
"say_it");
pause = new KAction (i18n("Pause"),
Qt::Key_Pause,
- this, SLOT (slotPauseActivated()),
+ this, TQT_SLOT (slotPauseActivated()),
actionCollection(),
"pause");
shutup = new KAction (i18n("Shut Up"),
Qt::Key_F10,
- this, SLOT (slotStopActivated()),
+ this, TQT_SLOT (slotStopActivated()),
actionCollection(),
"shut_up");
next_sentence = new KAction (i18n("Next Sentence"),
Qt::Key_Next,
- this, SLOT (slotNextSentenceActivated()),
+ this, TQT_SLOT (slotNextSentenceActivated()),
actionCollection(),
"next_sentence");
prev_sentence = new KAction (i18n("Previous Sentence"),
Qt::Key_Prior,
- this, SLOT(slotPrevSentenceActivated()),
+ this, TQT_SLOT(slotPrevSentenceActivated()),
actionCollection(),
"prev_sentence");
clear = new KAction (i18n("Clear"),
Qt::Key_F12,
- this, SLOT(slotClear()),
+ this, TQT_SLOT(slotClear()),
actionCollection(),
"clear");
edit = new KToggleAction( i18n("Edit Text"),
0,
- this, SLOT(slotEditToggled()),
+ this, TQT_SLOT(slotEditToggled()),
actionCollection(),
"edittext");
@@ -225,9 +225,9 @@ void KSayItApp::initActions()
}
-void KSayItApp::initBookmarkManager(const QString &filename)
+void KSayItApp::initBookmarkManager(const TQString &filename)
{
- QString bkFile = getBookmarkDir( filename );
+ TQString bkFile = getBookmarkDir( filename );
if ( bkFile.isNull() )
return;
@@ -247,14 +247,14 @@ void KSayItApp::initBookmarkManager(const QString &filename)
}
-void KSayItApp::slotNotifyBookmarkHandler(const QString &ID, const QString &title)
+void KSayItApp::slotNotifyBookmarkHandler(const TQString &ID, const TQString &title)
{
if ( bkHandler )
bkHandler->notifyBookmarkHandler(ID, title);
}
-void KSayItApp::slotDeleteBookmark(const QString &url, const QString &title)
+void KSayItApp::slotDeleteBookmark(const TQString &url, const TQString &title)
{
kdDebug(100200) << "KSayItApp::slotDeleteBookmark(" << url << ")" << endl;
if ( bkHandler )
@@ -262,16 +262,16 @@ void KSayItApp::slotDeleteBookmark(const QString &url, const QString &title)
}
-QString KSayItApp::getBookmarkDir(const QString &filename)
+TQString KSayItApp::getBookmarkDir(const TQString &filename)
{
- QString bkRelPath = "ksayit/ksayit_bookmarks/" + filename + ".bookmarks";
- QString bkFile;
+ TQString bkRelPath = "ksayit/ksayit_bookmarks/" + filename + ".bookmarks";
+ TQString bkFile;
bkFile = locateLocal("data", bkRelPath);
return bkFile;
}
-void KSayItApp::slotSetBookmarkFilename(const QString &newname)
+void KSayItApp::slotSetBookmarkFilename(const TQString &newname)
{
kdDebug(100200) << "KSayItApp::slotSetBookmarkFilename(" << newname << ")" << endl;
@@ -279,21 +279,21 @@ void KSayItApp::slotSetBookmarkFilename(const QString &newname)
}
-void KSayItApp::slotChangeBookmarkFilename(const QString &newname)
+void KSayItApp::slotChangeBookmarkFilename(const TQString &newname)
{
kdDebug(100200) << "KSayItApp::slotChangeBookmarkFilename(" << newname << ")" << endl;
if ( m_currentBookmarkFile.isNull() )
return;
- QString newbkFile = getBookmarkDir(newname);
+ TQString newbkFile = getBookmarkDir(newname);
if ( newbkFile.isNull() )
return;
// copy old bookmarkfile to new file
if ( m_currentBookmarkFile != newbkFile ){
- if ( QFile::exists(m_currentBookmarkFile) ){
- QString command = QString("cp %1 %2").arg(m_currentBookmarkFile).arg(newbkFile);
+ if ( TQFile::exists(m_currentBookmarkFile) ){
+ TQString command = TQString("cp %1 %2").arg(m_currentBookmarkFile).arg(newbkFile);
system( command.ascii() );
}
// install new BookmarkHandler based on the new file
@@ -302,9 +302,9 @@ void KSayItApp::slotChangeBookmarkFilename(const QString &newname)
}
-QString KSayItApp::setItemByBookmark( const QString &ID, const QString &title )
+TQString KSayItApp::setItemByBookmark( const TQString &ID, const TQString &title )
{
- QString result;
+ TQString result;
result = treeview->selectItemByID( ID, title );
return result;
}
@@ -325,17 +325,17 @@ void KSayItApp::initView()
view->setMinimumSize(view->sizeHint());
setCentralWidget(view);
// connections
- connect( view, SIGNAL(signalEnableCopyCut(bool)),
- this, SLOT(slotEnableCopyCut(bool)));
- connect( view, SIGNAL(signalShowStatus(const QString &)),
- this, SLOT(slotStatusMsg(const QString &)));
- connect( view, SIGNAL(signalSetCaption(const QString &)),
- this, SLOT(slotSetCaption(const QString &)));
- connect( view, SIGNAL(signalTextChanged(bool)),
- this, SLOT(slotTextChanged(bool)) );
+ connect( view, TQT_SIGNAL(signalEnableCopyCut(bool)),
+ this, TQT_SLOT(slotEnableCopyCut(bool)));
+ connect( view, TQT_SIGNAL(signalShowStatus(const TQString &)),
+ this, TQT_SLOT(slotStatusMsg(const TQString &)));
+ connect( view, TQT_SIGNAL(signalSetCaption(const TQString &)),
+ this, TQT_SLOT(slotSetCaption(const TQString &)));
+ connect( view, TQT_SIGNAL(signalTextChanged(bool)),
+ this, TQT_SLOT(slotTextChanged(bool)) );
// DockWindow
- QDockWindow *docview = new QDockWindow(QDockWindow::InDock, this, "docview");
+ TQDockWindow *docview = new TQDockWindow(TQDockWindow::InDock, this, "docview");
treeview = new DocTreeViewImpl(docview, "treeview");
treeview->enableContextMenus( true );
// treeview->clear();
@@ -344,22 +344,22 @@ void KSayItApp::initView()
this->setDockEnabled(docview, Qt::DockTop, false);
this->setDockEnabled(docview, Qt::DockBottom, false);
this->moveDockWindow(docview, Qt::DockLeft);
- connect( treeview, SIGNAL(signalContentChanged(const QString&)),
- this, SLOT(slotTreeViewChanged(const QString&)) );
- connect( treeview, SIGNAL(signalSetText(const QString&)),
- this, SLOT(slotSetText(const QString&)) );
- connect( treeview, SIGNAL(signalAllNodesProcessed()),
- this, SLOT(slotSayNode()) );
- connect( treeview, SIGNAL(signalEnableTextedit(bool)),
- this, SLOT(slotEnableTextedit(bool)) );
- connect( treeview, SIGNAL(signalNotifyBookmarkManager(const QString&, const QString&)),
- this, SLOT(slotNotifyBookmarkHandler(const QString&, const QString&)) );
- connect( treeview, SIGNAL(signalSetBookmarkFilename(const QString&)),
- this, SLOT(slotSetBookmarkFilename(const QString&)) );
- connect( treeview, SIGNAL(signalChangeBookmarkFilename(const QString&)),
- this, SLOT(slotChangeBookmarkFilename(const QString&)) );
- connect( treeview, SIGNAL(signalDeleteBookmark(const QString&, const QString&)),
- this, SLOT(slotDeleteBookmark(const QString&, const QString&)) );
+ connect( treeview, TQT_SIGNAL(signalContentChanged(const TQString&)),
+ this, TQT_SLOT(slotTreeViewChanged(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalSetText(const TQString&)),
+ this, TQT_SLOT(slotSetText(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalAllNodesProcessed()),
+ this, TQT_SLOT(slotSayNode()) );
+ connect( treeview, TQT_SIGNAL(signalEnableTextedit(bool)),
+ this, TQT_SLOT(slotEnableTextedit(bool)) );
+ connect( treeview, TQT_SIGNAL(signalNotifyBookmarkManager(const TQString&, const TQString&)),
+ this, TQT_SLOT(slotNotifyBookmarkHandler(const TQString&, const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalSetBookmarkFilename(const TQString&)),
+ this, TQT_SLOT(slotSetBookmarkFilename(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalChangeBookmarkFilename(const TQString&)),
+ this, TQT_SLOT(slotChangeBookmarkFilename(const TQString&)) );
+ connect( treeview, TQT_SIGNAL(signalDeleteBookmark(const TQString&, const TQString&)),
+ this, TQT_SLOT(slotDeleteBookmark(const TQString&, const TQString&)) );
}
@@ -369,7 +369,7 @@ void KSayItApp::readOptions()
statusBarAction->setChecked(!statusBar()->isHidden());
}
-void KSayItApp::closeEvent(QCloseEvent *ce)
+void KSayItApp::closeEvent(TQCloseEvent *ce)
{
ce->ignore();
if ( !this->isVisible() ){
@@ -384,7 +384,7 @@ void KSayItApp::closeEvent(QCloseEvent *ce)
// DCOP FUNCTIONS
/////////////////////////////////////////////////////////////////////
-ASYNC KSayItApp::dcopSayText(QString msg)
+ASYNC KSayItApp::dcopSayText(TQString msg)
{
slotSetText( msg );
sayActivated();
@@ -412,7 +412,7 @@ ASYNC KSayItApp::dcopSayXmlFile(KURL url)
treeview->setEditMode( false );
}
}
- catch( QString err ){
+ catch( TQString err ){
KMessageBox::error(this, err);
save ->setEnabled(false);
saveAs->setEnabled(true);
@@ -425,7 +425,7 @@ ASYNC KSayItApp::dcopSayXmlFile(KURL url)
/////////////////////////////////////////////////////////////////////
-// SLOT IMPLEMENTATION
+// TQT_SLOT IMPLEMENTATION
/////////////////////////////////////////////////////////////////////
void KSayItApp::slotEditToggled()
@@ -451,7 +451,7 @@ void KSayItApp::slotConfigureToolbar()
{
saveMainWindowSettings( config, "MainWindow" );
KEditToolbar dlg(actionCollection(), KSAYITUI);
- connect(&dlg,SIGNAL(newToolbarConfig()),this,SLOT(slotNewToolbarConfig()));
+ connect(&dlg,TQT_SIGNAL(newToolbarConfig()),this,TQT_SLOT(slotNewToolbarConfig()));
if (dlg.exec())
{
createGUI(KSAYITUI);
@@ -471,9 +471,9 @@ void KSayItApp::slotFileOpen()
m_enableChangeNotifications = false;
// open filerequester
- QString fn;
- QString usershome( getenv("HOME") );
- KURL url = KFileDialog::getOpenURL(usershome, QString::null, this, i18n("File to Speak") );
+ TQString fn;
+ TQString usershome( getenv("HOME") );
+ KURL url = KFileDialog::getOpenURL(usershome, TQString::null, this, i18n("File to Speak") );
try{
if ( !url.isEmpty() ){
resetView();
@@ -486,7 +486,7 @@ void KSayItApp::slotFileOpen()
bookmarkmenu->setEnabled(true);
}
}
- catch( QString err ){
+ catch( TQString err ){
KMessageBox::error(this, err);
save ->setEnabled(false);
saveAs->setEnabled(true);
@@ -505,7 +505,7 @@ void KSayItApp::slotFileSave()
save ->setEnabled(false);
saveAs->setEnabled(true);
}
- catch ( QString err )
+ catch ( TQString err )
{
KMessageBox::error(this, err);
save ->setEnabled(false);
@@ -523,7 +523,7 @@ void KSayItApp::slotFileSaveAs()
saveAs->setEnabled(true);
bookmarkmenu->setEnabled(true);
}
- catch ( QString err )
+ catch ( TQString err )
{
KMessageBox::error(this, err);
save ->setEnabled(true);
@@ -549,7 +549,7 @@ void KSayItApp::slotEditKeys()
void KSayItApp::slotFileQuit()
{
slotStatusMsg(i18n("Exiting..."));
- int really = KMessageBox::questionYesNo( this, i18n("Do you really want to quit?"), QString::null, KStdGuiItem::quit(), KStdGuiItem::cancel() );
+ int really = KMessageBox::questionYesNo( this, i18n("Do you really want to quit?"), TQString::null, KStdGuiItem::quit(), KStdGuiItem::cancel() );
if (really == KMessageBox::Yes){
slotSaveOptions();
kapp->quit();
@@ -578,7 +578,7 @@ void KSayItApp::slotToggleStatusBar()
}
-void KSayItApp::slotStatusMsg(const QString &text)
+void KSayItApp::slotStatusMsg(const TQString &text)
{
// change status message permanently
statusBar()->clear();
@@ -586,7 +586,7 @@ void KSayItApp::slotStatusMsg(const QString &text)
}
-void KSayItApp::slotSetCaption(const QString &caption)
+void KSayItApp::slotSetCaption(const TQString &caption)
{
this->setCaption(caption);
}
@@ -600,7 +600,7 @@ void KSayItApp::slotPreferences()
m_fxpluginhandler,
m_kttslib);
- if (prefs->exec() == QDialog::Accepted){
+ if (prefs->exec() == TQDialog::Accepted){
delete prefs;
m_kttslib->reloadConfiguration();
m_fxpluginhandler ->readConfiguration();
@@ -719,7 +719,7 @@ void KSayItApp::slotSayNode()
}
-void KSayItApp::slotSetText(const QString &text)
+void KSayItApp::slotSetText(const TQString &text)
{
// also invoked by the treeview for the each node
if ( text.isNull() )
@@ -739,7 +739,7 @@ void KSayItApp::sayActivated()
try {
m_kttslib->sayText();
}
- catch (QString err){
+ catch (TQString err){
kdDebug(100200) << "Exception catched in KSayItApp::sayActivated()" << endl;
KMessageBox::sorry(0, err, i18n("Unable to speak text"));
slotFinished();
@@ -813,7 +813,7 @@ void KSayItApp::setActions(int actions)
// Get the mask of supported actions from the plugin.
int mask = m_kttslib->getActions();
- kdDebug(100200) << QString("KSayItApp:PSA: %1").arg(mask, 0, 2) << endl;
+ kdDebug(100200) << TQString("KSayItApp:PSA: %1").arg(mask, 0, 2) << endl;
// disable actions not supported by the plugin
int ma = actions & mask;
@@ -849,7 +849,7 @@ void KSayItApp::setActions(int actions)
}
-void KSayItApp::slotTreeViewChanged(const QString &str)
+void KSayItApp::slotTreeViewChanged(const TQString &str)
{
kdDebug(100200) << "KSayItApp::slotTreeViewChanged()" << endl;
diff --git a/ksayit/src/ksayit.h b/ksayit/src/ksayit.h
index 6da1465..fc8fef9 100644
--- a/ksayit/src/ksayit.h
+++ b/ksayit/src/ksayit.h
@@ -25,8 +25,8 @@
using namespace std;
// include files for Qt
-#include <qstringlist.h>
-#include <qclipboard.h>
+#include <tqstringlist.h>
+#include <tqclipboard.h>
// include files for KDE
#include <kapplication.h>
@@ -73,15 +73,15 @@ class KSayItApp : public KMainWindow, public DCOPObject
public:
/** construtor of KSayItApp, calls all init functions to create the application.
*/
- KSayItApp(QWidget* parent=0, const char* name=0, WFlags f=0,
- const QCString &objID=0);
+ KSayItApp(TQWidget* parent=0, const char* name=0, WFlags f=0,
+ const TQCString &objID=0);
~KSayItApp();
k_dcop:
/** DCOP interface for say operation
\param msg The text to speak.
*/
- ASYNC dcopSayText(QString msg);
+ ASYNC dcopSayText(TQString msg);
/** DCOP interface for stop operation
*/
@@ -101,7 +101,7 @@ private slots:
/** Puts the given text on the Job-Stack of KTTSD.
* \param text The text to say.
*/
- void slotSetText(const QString &text);
+ void slotSetText(const TQString &text);
/** Called from the ListView widget after one or many
* 'setText'-Calls. Starts to say the text.
@@ -112,7 +112,7 @@ private slots:
* new content in the edit window must be shown.
* \str The new content of the EditView.
*/
- void slotTreeViewChanged(const QString &str);
+ void slotTreeViewChanged(const TQString &str);
/** save general Options like all bar positions and status as well as the geometry to
* the configuration file.
@@ -127,7 +127,7 @@ private slots:
* current actions.
* @param text the text that is displayed in the statusbar
*/
- void slotStatusMsg(const QString &text);
+ void slotStatusMsg(const TQString &text);
/** opens the Preferences-Dialog.
*/
@@ -167,7 +167,7 @@ private slots:
void slotEnableCopyCut(bool enable);
/** sets the Caption of the MainWindow */
- void slotSetCaption(const QString &caption);
+ void slotSetCaption(const TQString &caption);
/** called when the Text was changed.
* \param empty True if the TextEdit view is empty.
@@ -193,7 +193,7 @@ private slots:
/** Called to delete a bookmark
*/
- void slotDeleteBookmark(const QString &url, const QString &title);
+ void slotDeleteBookmark(const TQString &url, const TQString &title);
/** Called to edit bookmarks.
*/
@@ -245,7 +245,7 @@ private slots:
* Catches the signal from the TreeView object
* and forwards it to the BookmarkHandler object.
*/
- void slotNotifyBookmarkHandler(const QString &ID, const QString &title);
+ void slotNotifyBookmarkHandler(const TQString &ID, const TQString &title);
/**
* Copies the content of the current bookmark file to the
@@ -253,22 +253,22 @@ private slots:
* BookmarkHandler.
* \param newname The name of the new bookmark file.
*/
- void slotChangeBookmarkFilename(const QString &newname);
+ void slotChangeBookmarkFilename(const TQString &newname);
/** Loads bookmark file corresponding to the given file.
* \param newname The name of the new file.
*/
- void slotSetBookmarkFilename(const QString &newname);
+ void slotSetBookmarkFilename(const TQString &newname);
public:
/**
* Selects the item with the given ID in the TreeView.
* \param ID The ID of the item to select.
* \param title The title of the bookmark.
- * \returns <tt>QString::null</tt>, if the operation was successfull,
+ * \returns <tt>TQString::null</tt>, if the operation was successfull,
* an error message, if the ID was not found.
*/
- QString setItemByBookmark( const QString &ID, const QString &title );
+ TQString setItemByBookmark( const TQString &ID, const TQString &title );
private: // Methods
/** read general Options again and initialize all variables.
@@ -284,7 +284,7 @@ private: // Methods
/**
*/
- void initBookmarkManager(const QString &filename);
+ void initBookmarkManager(const TQString &filename);
/** creates the centerwidget of the KTMainWindow instance and sets it as the view.
*/
@@ -300,7 +300,7 @@ private: // Methods
/** reimplemented from baseclass
*/
- virtual void closeEvent(QCloseEvent *ce);
+ virtual void closeEvent(TQCloseEvent *ce);
/** disable/enable Actions.
* \param actions An OR'ed integer of enum ACTIONS. A '1' is supposed
@@ -315,9 +315,9 @@ private: // Methods
* \p ksayit/ksayit_bookmarks/.
* \param filename The name of the bookmark file.
* \returns The absolute pathname of the given bookmark file.
- * Returns \p QString::null if the operation was not successfull.
+ * Returns \p TQString::null if the operation was not successfull.
*/
- QString getBookmarkDir(const QString &filename);
+ TQString getBookmarkDir(const TQString &filename);
private:
@@ -350,14 +350,14 @@ private:
// Misc stuff
QClipboard *cb;
- QString clip;
+ TQString clip;
KTTSDLib *m_kttslib;
FXPluginHandler *m_fxpluginhandler;
bool m_ap_saying;
bool m_ap_paused;
bool m_textview_empty;
bool m_enableChangeNotifications;
- QString m_currentBookmarkFile;
+ TQString m_currentBookmarkFile;
};
diff --git a/ksayit/src/ksayit_fxplugin.h b/ksayit/src/ksayit_fxplugin.h
index 9956df6..852c522 100644
--- a/ksayit/src/ksayit_fxplugin.h
+++ b/ksayit/src/ksayit_fxplugin.h
@@ -13,8 +13,8 @@
#define FXPLUGIN_H
// QT includes
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
// KDE includes
#include <kapplication.h>
@@ -37,7 +37,7 @@ class FXPlugin : public QObject
{
// Q_OBJECT
public:
- FXPlugin(QObject *parent=0, const char* name=0){};
+ FXPlugin(TQObject *parent=0, const char* name=0){};
/** Sets the Main application object. Useful for config objects etc.
*/
@@ -49,12 +49,12 @@ public:
* The PluginHandler internally references to each effect plugin by this name.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getName_KS() const = 0;
+ virtual TQString getName_KS() const = 0;
/** Returns the description of the plugin.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getDescription_KS() const = 0;
+ virtual TQString getDescription_KS() const = 0;
/** Shows the GUI to configure the plugin. The configuration can to be
* stored in the global configuration file of KSayIt.\n
diff --git a/ksayit/src/ksayit_ttsplugin.h b/ksayit/src/ksayit_ttsplugin.h
index 1035993..e0f8d31 100644
--- a/ksayit/src/ksayit_ttsplugin.h
+++ b/ksayit/src/ksayit_ttsplugin.h
@@ -14,10 +14,10 @@
#define KSAYIT_TTSPLUGIN
// QT includes
-#include <qobject.h>
-#include <qwidget.h>
-#include <qframe.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqwidget.h>
+#include <tqframe.h>
+#include <tqstring.h>
// KDE includes
@@ -65,7 +65,7 @@
class TTSPlugin : public QObject
{
protected:
- TTSPlugin(QObject *parent, const char *name) : QObject(parent, name){};
+ TTSPlugin(TQObject *parent, const char *name) : TQObject(parent, name){};
public:
/** Returns the name of the plugin. This name is the unique identifier
@@ -74,12 +74,12 @@ public:
* The PluginHandler internally references to each TTS plugin by this name.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getName_KS() const = 0;
+ virtual TQString getName_KS() const = 0;
/** Returns the description of the plugin.\n
* Has to be reimplemented by the plugin implementation.
*/
- virtual QString getDescription_KS() const = 0;
+ virtual TQString getDescription_KS() const = 0;
/** Returns the supported control actions of the plugin.
* It is represented as an OR'ed value of enum \pACTIONS.
@@ -88,10 +88,10 @@ public:
/** Returnes a pointer to the GUI widget to configure the plugin.\n
* Will be deleted by the PluginHandler.\n
- * \param frame A pointer to the QFrame object in which the dialog will
+ * \param frame A pointer to the TQFrame object in which the dialog will
* be embedded.
*/
- virtual const QWidget* getGUI_KS(QFrame *frame) = 0;
+ virtual const TQWidget* getGUI_KS(TQFrame *frame) = 0;
/** Let the plugin (re)load its configuration
*/
@@ -109,14 +109,14 @@ public:
* In this case, KSayIt uses a built-in audio player to play back
* the file via aRts.\n
* If this plugin provides its own audio output mechanisms, then return
- * \p QString::null.\n
+ * \p TQString::null.\n
* The TTS processing shall be implemented non-blocking, i.e. this function has
* to return a valid string as soon as possible, before the typically time
* consuming TTS processing starts. The synchronization with KSayIt shall
* be performed by the status flags (see \p getStatus_KS()).
* \param text The text to speach.
*/
- virtual QString sayText_KS(const QString &text) = 0;
+ virtual TQString sayText_KS(const TQString &text) = 0;
/** Returns an OR'ed value of status bits of the plugin.\n
* Currently only \p TTS::AUDIOFILE is defined.\n This
diff --git a/ksayit/src/ksayitbookmarkhandler.cpp b/ksayit/src/ksayitbookmarkhandler.cpp
index b52cdd7..7a45247 100644
--- a/ksayit/src/ksayitbookmarkhandler.cpp
+++ b/ksayit/src/ksayitbookmarkhandler.cpp
@@ -11,7 +11,7 @@
//
// Qt include
-#include <qregexp.h>
+#include <tqregexp.h>
// KDE includes
#include <kdebug.h>
@@ -26,8 +26,8 @@
KSayItBookmarkHandler::KSayItBookmarkHandler(KBookmarkManager *bkManager, KSayItApp* parent)
: KBookmarkOwner(), m_bkManager(bkManager), m_parent(parent)
{
- m_ID = QString::null;
- m_title = QString::null;
+ m_ID = TQString::null;
+ m_title = TQString::null;
}
KSayItBookmarkHandler::~KSayItBookmarkHandler()
@@ -35,7 +35,7 @@ KSayItBookmarkHandler::~KSayItBookmarkHandler()
}
-void KSayItBookmarkHandler::notifyBookmarkHandler(const QString &ID, const QString &title)
+void KSayItBookmarkHandler::notifyBookmarkHandler(const TQString &ID, const TQString &title)
{
kdDebug(100200) << "KSayItBookmarkHandler::notifyBookmarkManager()" << endl;
@@ -44,15 +44,15 @@ void KSayItBookmarkHandler::notifyBookmarkHandler(const QString &ID, const QStri
}
-void KSayItBookmarkHandler::openBookmarkURL(const QString &url)
+void KSayItBookmarkHandler::openBookmarkURL(const TQString &url)
{
kdDebug(100200) << "KSayItBookmarkHandler::openBookmarkURL(" << url << ")" << endl;
- QString l_url = url;
- QString title = QString::null;
- QString type = l_url.section( "://", 0, 0 );
- QString ID = l_url.section( QRegExp("/+"), 1, 1 );
- QString err = QString::null;
+ TQString l_url = url;
+ TQString title = TQString::null;
+ TQString type = l_url.section( "://", 0, 0 );
+ TQString ID = l_url.section( TQRegExp("/+"), 1, 1 );
+ TQString err = TQString::null;
// Some checks
if ( type != "ksayit" ){
@@ -71,7 +71,7 @@ void KSayItBookmarkHandler::openBookmarkURL(const QString &url)
title = bookmark.text();
}
- QString result = QString::null;
+ TQString result = TQString::null;
result = m_parent->setItemByBookmark( ID, title );
if ( !result.isNull() ){
KMessageBox::sorry( 0, result, i18n("Bookmark not found") );
@@ -79,11 +79,11 @@ void KSayItBookmarkHandler::openBookmarkURL(const QString &url)
}
-QString KSayItBookmarkHandler::currentTitle() const
+TQString KSayItBookmarkHandler::currentTitle() const
{
kdDebug(100200) << "KSayItBookmarkHandler::currentTitle()" << endl;
- QString result;
+ TQString result;
if ( m_title.isEmpty()){
result = i18n("untitled");
} else {
@@ -94,18 +94,18 @@ QString KSayItBookmarkHandler::currentTitle() const
}
-QString KSayItBookmarkHandler::currentURL() const
+TQString KSayItBookmarkHandler::currentURL() const
{
kdDebug(100200) << "KSayItBookmarkHandler::currentURL()" << endl;
- QString url;
+ TQString url;
url = "ksayit://" + m_ID;
return url;
}
-void KSayItBookmarkHandler::deleteBookmark(const QString &url, const QString &title)
+void KSayItBookmarkHandler::deleteBookmark(const TQString &url, const TQString &title)
{
kdDebug(100200) << "KSayItBookmarkHandler::deleteBookmark()" << endl;
@@ -129,8 +129,8 @@ void KSayItBookmarkHandler::deleteBookmark(const QString &url, const QString &ti
int qty = 0;
qty = recursiveGetBkByTitle( bookmark, group, bkRoot, title );
if ( qty == 1 ){
- QString url = bookmark.url().url();
- QString title = bookmark.text();
+ TQString url = bookmark.url().url();
+ TQString title = bookmark.text();
group.deleteBookmark( bookmark );
m_bkManager->emitChanged( group );
m_bkManager->save(); // make persistent
@@ -142,7 +142,7 @@ bool KSayItBookmarkHandler::recursiveGetBkByURL(
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &url)
+ const TQString &url)
{
KBookmark bkNext;
bool found = false;
@@ -156,7 +156,7 @@ bool KSayItBookmarkHandler::recursiveGetBkByURL(
return true;
bkNext = bkGroup.next( bk );
} else {
- QString l_url = bk.url().url();
+ TQString l_url = bk.url().url();
if ( l_url == url ){
bookmark = bk;
group = bkGroup;
@@ -174,7 +174,7 @@ int KSayItBookmarkHandler::recursiveGetBkByTitle(
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &title)
+ const TQString &title)
{
KBookmark bkNext;
int qty = 0;
@@ -186,7 +186,7 @@ int KSayItBookmarkHandler::recursiveGetBkByTitle(
qty += recursiveGetBkByTitle( bookmark, group, bk.toGroup(), title );
bkNext = bkGroup.next( bk );
} else {
- QString l_title = bk.text();
+ TQString l_title = bk.text();
if ( l_title == title ){
bookmark = bk;
group = bkGroup;
@@ -208,7 +208,7 @@ void KSayItBookmarkHandler::traverseBookmarks(KBookmarkGroup bkGroup)
return;
KURL url;
- QString title;
+ TQString title;
KBookmark bkNext, bkPrev, bkNew;
KBookmark bk = bkGroup.first();
@@ -228,7 +228,7 @@ void KSayItBookmarkHandler::traverseBookmarks(KBookmarkGroup bkGroup)
//
// Modifications on URL/Title END
- bkNew = bkGroup.addBookmark( m_bkManager, title, url, QString::null, false );
+ bkNew = bkGroup.addBookmark( m_bkManager, title, url, TQString::null, false );
bkGroup.moveItem( bkNew, bkPrev );
bkGroup.deleteBookmark( bk );
}
diff --git a/ksayit/src/ksayitbookmarkhandler.h b/ksayit/src/ksayitbookmarkhandler.h
index edab6d6..018ea39 100644
--- a/ksayit/src/ksayitbookmarkhandler.h
+++ b/ksayit/src/ksayitbookmarkhandler.h
@@ -13,7 +13,7 @@
#define KSAYITBOOKMARKHANDLER_H
// Qt includes
-#include <qstring.h>
+#include <tqstring.h>
// KDE includes
#include <kbookmarkmanager.h>
@@ -40,14 +40,14 @@ public:
* Called when a bookmark in the menu was clicked.
* \param url The URL of the selected bookmark.
*/
- void openBookmarkURL(const QString &url);
+ void openBookmarkURL(const TQString &url);
/**
* Reimplemented from base class.\n
* Returns the Title when a new bookmark is about to be created.
* \returns The title of the bookmark.
*/
- QString currentTitle() const;
+ TQString currentTitle() const;
/**
@@ -55,20 +55,20 @@ public:
* Returns the URL when a new bookmark is about to be created.
* \returns The URL of the bookmark.
*/
- QString currentURL() const;
+ TQString currentURL() const;
/**
* Sets ID and title of the current TreeView item.
* \param ID The unique ID of the item.
* \param title The bookmark title of the item.
*/
- void notifyBookmarkHandler(const QString &ID, const QString &title);
+ void notifyBookmarkHandler(const TQString &ID, const TQString &title);
/**
* Deletes the bookmark designated by the given url.
* \param url The url of the bookmark.
*/
- void deleteBookmark(const QString &url, const QString &title);
+ void deleteBookmark(const TQString &url, const TQString &title);
/**
* Iterates recursively through all bookmarks below the
@@ -92,7 +92,7 @@ private:
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &url);
+ const TQString &url);
/**
* Searches the Bookmark designted by its URL.
@@ -108,10 +108,10 @@ private:
KBookmark &bookmark,
KBookmarkGroup &group,
const KBookmarkGroup &bkGroup,
- const QString &title);
+ const TQString &title);
private:
- QString m_ID;
- QString m_title;
+ TQString m_ID;
+ TQString m_title;
KBookmarkManager *m_bkManager;
KSayItApp *m_parent;
diff --git a/ksayit/src/ksayitsystemtray.cpp b/ksayit/src/ksayitsystemtray.cpp
index 82bda61..e2001cd 100644
--- a/ksayit/src/ksayitsystemtray.cpp
+++ b/ksayit/src/ksayitsystemtray.cpp
@@ -17,7 +17,7 @@
#include <iostream>
// QT includes
-#include <qtranslator.h>
+#include <tqtranslator.h>
// KDE includes
#include <kglobal.h>
@@ -26,7 +26,7 @@
// App specific includes
#include "ksayitsystemtray.h"
-KSayItSystemTray::KSayItSystemTray(QWidget *parent, const char *name)
+KSayItSystemTray::KSayItSystemTray(TQWidget *parent, const char *name)
: KSystemTray(parent,name)
{
initActions();
@@ -46,36 +46,36 @@ void KSayItSystemTray::initActions()
menu = this->contextMenu();
help = new KHelpMenu(this, kapp->aboutData(), false, actionCollection());
// Standard actions
- settings = KStdAction::preferences(this, SLOT(slotPreferences()), actionCollection());
- help_about = KStdAction::aboutApp(help, SLOT(aboutApplication()), actionCollection());
- help_kde = KStdAction::aboutKDE(help, SLOT(aboutKDE()), actionCollection());
+ settings = KStdAction::preferences(this, TQT_SLOT(slotPreferences()), actionCollection());
+ help_about = KStdAction::aboutApp(help, TQT_SLOT(aboutApplication()), actionCollection());
+ help_kde = KStdAction::aboutKDE(help, TQT_SLOT(aboutKDE()), actionCollection());
// User defined actions
say = new KAction(i18n("Say"),
"player_play",
0,
- this, SLOT (slotSayActivated()),
+ this, TQT_SLOT (slotSayActivated()),
actionCollection(),
"say_it");
shutup = new KAction(i18n("Shut Up"),
"player_stop",
0,
- this, SLOT (slotStopActivated()),
+ this, TQT_SLOT (slotStopActivated()),
actionCollection(),
"shut_up");
pause = new KAction (i18n("Pause"),
"player_pause",
0,
- this, SLOT (slotPauseActivated()),
+ this, TQT_SLOT (slotPauseActivated()),
actionCollection(),
"pause");
next_sentence = new KAction (i18n("Next Sentence"),
"2rightarrow",
0,
- this, SLOT (slotNextSentenceActivated()),
+ this, TQT_SLOT (slotNextSentenceActivated()),
actionCollection(),
"next_sentence");
@@ -83,7 +83,7 @@ void KSayItSystemTray::initActions()
prev_sentence = new KAction (i18n("Previous Sentence"),
"2leftarrow",
0,
- this, SLOT(slotPrevSentenceActivated()),
+ this, TQT_SLOT(slotPrevSentenceActivated()),
actionCollection(),
"prev_sentence");
@@ -112,12 +112,12 @@ void KSayItSystemTray::slotPreferences()
emit signalCallPreferences();
}
-void KSayItSystemTray::mousePressEvent(QMouseEvent *me)
+void KSayItSystemTray::mousePressEvent(TQMouseEvent *me)
{
_state->mousePressEvent(this, me);
}
-void KSayItSystemTray::mouseReleaseEvent(QMouseEvent *me)
+void KSayItSystemTray::mouseReleaseEvent(TQMouseEvent *me)
{
_state->mouseReleaseEvent(this, me);
}
@@ -170,12 +170,12 @@ void KSayItSystemTray::setActions(bool sayEnabled, bool pauseEnabled, bool shutu
}
-void KSayItSystemTray::normalMousePressEvent(QMouseEvent *e)
+void KSayItSystemTray::normalMousePressEvent(TQMouseEvent *e)
{
KSystemTray::mousePressEvent(e);
}
-void KSayItSystemTray::normalMouseReleaseEvent(QMouseEvent *e)
+void KSayItSystemTray::normalMouseReleaseEvent(TQMouseEvent *e)
{
KSystemTray::mouseReleaseEvent(e);
}
@@ -194,12 +194,12 @@ State::State(){
State::~State(){
}
-void State::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
// reimplemented by subclasses
}
-void State::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
// reimplemented by subclasses
}
@@ -219,12 +219,12 @@ void State::say(KSayItSystemTray *caller)
caller->sayClipboard();
}
-void State::mousePressEventCall(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mousePressEventCall(KSayItSystemTray *caller, TQMouseEvent *e)
{
caller->normalMousePressEvent(e);
}
-void State::mouseReleaseEventCall(KSayItSystemTray *caller, QMouseEvent *e)
+void State::mouseReleaseEventCall(KSayItSystemTray *caller, TQMouseEvent *e)
{
caller->normalMouseReleaseEvent(e);
}
@@ -251,16 +251,16 @@ void StateWAIT::setContext(KSayItSystemTray *caller)
caller->setPixmap( m_traypixmap );
}
-void StateWAIT::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateWAIT::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button pressed
- QWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mousePressEventCall(caller, e); // normal mouse-handling
}
}
-void StateWAIT::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateWAIT::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button released
say(caller);
@@ -292,19 +292,19 @@ void StateSAY::setContext(KSayItSystemTray *caller)
caller->setPixmap( m_traypixmap );
}
-void StateSAY::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateSAY::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button pressed
- QWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mousePressEventCall(caller, e); // normal mouse-handling
}
}
-void StateSAY::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateSAY::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button released
- QWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mouseReleaseEventCall(caller, e); // normal mouse-handling
}
@@ -334,19 +334,19 @@ void StateCLIPEMPTY::setContext(KSayItSystemTray *caller)
caller->setPixmap( m_traypixmap );
}
-void StateCLIPEMPTY::mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateCLIPEMPTY::mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button pressed
- QWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mousePressEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mousePressEventCall(caller, e); // normal mouse-handling
}
}
-void StateCLIPEMPTY::mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e)
+void StateCLIPEMPTY::mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e)
{
if (e->button()==LeftButton){ // left Mouse-button released
- QWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
+ TQWidget::mouseReleaseEvent(e); // do nothing (see mouseReleaseEvent)
} else {
mouseReleaseEventCall(caller, e); // normal mouse-handling
}
diff --git a/ksayit/src/ksayitsystemtray.h b/ksayit/src/ksayitsystemtray.h
index 90db592..90b15fb 100644
--- a/ksayit/src/ksayitsystemtray.h
+++ b/ksayit/src/ksayitsystemtray.h
@@ -19,8 +19,8 @@
#define KSAYITSYSTEMTRAY_H
// QT includes
-#include <qwidget.h>
-#include <qpixmap.h>
+#include <tqwidget.h>
+#include <tqpixmap.h>
// KDE includes
#include <kapplication.h>
@@ -43,7 +43,7 @@ class KSayItSystemTray : public KSystemTray {
friend class State;
public:
- KSayItSystemTray(QWidget *parent=0, const char *name=0);
+ KSayItSystemTray(TQWidget *parent=0, const char *name=0);
~KSayItSystemTray();
signals:
@@ -105,19 +105,19 @@ public:
protected: // Methods
/** Reimplementation from base class
*/
- void mousePressEvent(QMouseEvent *);
+ void mousePressEvent(TQMouseEvent *);
/** Reimplementation from base class
*/
- void mouseReleaseEvent(QMouseEvent *);
+ void mouseReleaseEvent(TQMouseEvent *);
/** KSystemTray default mouse handling
*/
- void normalMousePressEvent(QMouseEvent *e);
+ void normalMousePressEvent(TQMouseEvent *e);
/** KSystemTray default mouse handling
*/
- void normalMouseReleaseEvent(QMouseEvent *e);
+ void normalMouseReleaseEvent(TQMouseEvent *e);
/** Called if the Tray icon was clicked.
*/
@@ -153,15 +153,15 @@ public:
State();
~State();
- virtual void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- virtual void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ virtual void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ virtual void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
virtual void setContext(KSayItSystemTray *caller);
protected:
void changeState(KSayItSystemTray *caller, State *state);
void say(KSayItSystemTray *caller);
- void mousePressEventCall(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEventCall(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEventCall(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEventCall(KSayItSystemTray *caller, TQMouseEvent *e);
};
@@ -175,13 +175,13 @@ public:
protected:
StateWAIT();
- void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
void setContext(KSayItSystemTray *caller);
private:
static StateWAIT *_instance;
- QPixmap m_traypixmap;
+ TQPixmap m_traypixmap;
};
@@ -195,13 +195,13 @@ public:
protected:
StateSAY();
- void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
void setContext(KSayItSystemTray *caller);
private:
static StateSAY *_instance;
- QPixmap m_traypixmap;
+ TQPixmap m_traypixmap;
};
@@ -215,13 +215,13 @@ public:
protected:
StateCLIPEMPTY();
- void mousePressEvent(KSayItSystemTray *caller, QMouseEvent *e);
- void mouseReleaseEvent(KSayItSystemTray *caller, QMouseEvent *e);
+ void mousePressEvent(KSayItSystemTray *caller, TQMouseEvent *e);
+ void mouseReleaseEvent(KSayItSystemTray *caller, TQMouseEvent *e);
void setContext(KSayItSystemTray *caller);
private:
static StateCLIPEMPTY *_instance;
- QPixmap m_traypixmap;
+ TQPixmap m_traypixmap;
};
diff --git a/ksayit/src/ksayitviewimpl.cpp b/ksayit/src/ksayitviewimpl.cpp
index e619f8c..dfda154 100644
--- a/ksayit/src/ksayitviewimpl.cpp
+++ b/ksayit/src/ksayitviewimpl.cpp
@@ -20,9 +20,9 @@
using namespace std;
// QT includes
-#include <qradiobutton.h>
-#include <qtextstream.h>
-#include <qstring.h>
+#include <tqradiobutton.h>
+#include <tqtextstream.h>
+#include <tqstring.h>
// KDE includes
#include <kdebug.h>
@@ -33,7 +33,7 @@ using namespace std;
// App specific includes
#include "ksayitviewimpl.h"
-KSayItViewImpl::KSayItViewImpl(QWidget *parent, const char *name ) : KSayItView(parent,name) {
+KSayItViewImpl::KSayItViewImpl(TQWidget *parent, const char *name ) : KSayItView(parent,name) {
// some presets
@@ -41,7 +41,7 @@ KSayItViewImpl::KSayItViewImpl(QWidget *parent, const char *name ) : KSayItView(
KSayItViewImpl::~KSayItViewImpl(){
}
-QString& KSayItViewImpl::getText(){
+TQString& KSayItViewImpl::getText(){
t = TextEdit->text();
return t;
}
@@ -104,7 +104,7 @@ void KSayItViewImpl::textClear()
TextEdit->clear();
}
-void KSayItViewImpl::setText(const QString &text)
+void KSayItViewImpl::setText(const TQString &text)
{
// set text to text
TextEdit->setText( text );
diff --git a/ksayit/src/ksayitviewimpl.h b/ksayit/src/ksayitviewimpl.h
index fea6c36..eb288e7 100644
--- a/ksayit/src/ksayitviewimpl.h
+++ b/ksayit/src/ksayitviewimpl.h
@@ -19,8 +19,8 @@
#define KSAYITVIEWIMPL_H
// QT includes
-#include <qwidget.h>
-#include <qstring.h>
+#include <tqwidget.h>
+#include <tqstring.h>
// KDE includes
@@ -35,12 +35,12 @@ class KSayItViewImpl : public KSayItView {
Q_OBJECT
public:
- KSayItViewImpl(QWidget *parent=0, const char *name=0);
+ KSayItViewImpl(TQWidget *parent=0, const char *name=0);
~KSayItViewImpl();
signals:
- void signalSetCaption(const QString &caption);
- void signalShowStatus(const QString &status);
+ void signalSetCaption(const TQString &caption);
+ void signalShowStatus(const TQString &status);
void signalEnableCopyCut(bool enable);
/** Emitted when the text in the TextEditor view cahnges.
@@ -73,11 +73,11 @@ private slots:
public: // Methods
/** Returns the text of the TextEdit-Widget
*/
- QString& getText();
+ TQString& getText();
/** Set the content of the textEdit-Widget to text
*/
- void setText(const QString &text);
+ void setText(const TQString &text);
/** Enables/disables the Textedit
* \param enable true=enabled, false=diabled
@@ -89,7 +89,7 @@ public: // Methods
void textClear();
private:
- QString t;
+ TQString t;
};
diff --git a/ksayit/src/main.cpp b/ksayit/src/main.cpp
index 9dcf0fe..61935da 100644
--- a/ksayit/src/main.cpp
+++ b/ksayit/src/main.cpp
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
KArtsDispatcher dispatcher;
// setup DCOP
- QCString appID = app.dcopClient()->registerAs( app.name(), false );
+ TQCString appID = app.dcopClient()->registerAs( app.name(), false );
KSayItApp *ksayit = new KSayItApp(0, "MainWindow", 0, appID);
// ksayit->hide();
diff --git a/ksayit/src/parasaxparser.cpp b/ksayit/src/parasaxparser.cpp
index 575df06..9a61e0a 100644
--- a/ksayit/src/parasaxparser.cpp
+++ b/ksayit/src/parasaxparser.cpp
@@ -22,7 +22,7 @@
ParaSaxParser::ParaSaxParser()
{
- m_reader = new QXmlSimpleReader();
+ m_reader = new TQXmlSimpleReader();
m_handler = new SaxHandler();
m_reader->setContentHandler(m_handler);
@@ -30,8 +30,8 @@ ParaSaxParser::ParaSaxParser()
m_reader->setEntityResolver(m_handler);
m_reader->setDeclHandler(m_handler);
- m_XmlInputHeader = QString::null;
- m_XmlInputBody = QString::null;
+ m_XmlInputHeader = TQString::null;
+ m_XmlInputBody = TQString::null;
}
ParaSaxParser::~ParaSaxParser()
@@ -51,23 +51,23 @@ ParaSaxParser* ParaSaxParser::Instance()
}
-void ParaSaxParser::setProcessingInstruction(const QString &data)
+void ParaSaxParser::setProcessingInstruction(const TQString &data)
{
m_XmlInputHeader = data;
}
-void ParaSaxParser::setData(const QString &data)
+void ParaSaxParser::setData(const TQString &data)
{
m_XmlInputBody = data;
}
-void ParaSaxParser::getText(QString &data)
+void ParaSaxParser::getText(TQString &data)
{
- QString XmlPart = m_XmlInputHeader + m_XmlInputBody;
+ TQString XmlPart = m_XmlInputHeader + m_XmlInputBody;
- QXmlInputSource input;
+ TQXmlInputSource input;
input.setData(XmlPart);
m_handler->reset();
@@ -78,12 +78,12 @@ void ParaSaxParser::getText(QString &data)
}
-void ParaSaxParser::getRTFText(QString &data)
+void ParaSaxParser::getRTFText(TQString &data)
{
- QString XmlPart = m_XmlInputHeader + m_XmlInputBody;
+ TQString XmlPart = m_XmlInputHeader + m_XmlInputBody;
kdDebug(100200) << "ParaSaxParser::getRTFText(): " << XmlPart << endl;
- QXmlInputSource input;
+ TQXmlInputSource input;
input.setData(XmlPart);
m_handler->reset();
diff --git a/ksayit/src/parasaxparser.h b/ksayit/src/parasaxparser.h
index e76d652..6f46156 100644
--- a/ksayit/src/parasaxparser.h
+++ b/ksayit/src/parasaxparser.h
@@ -13,8 +13,8 @@
#define PARASAXPARSER_H
// Qt includes
-#include <qxml.h>
-#include <qstring.h>
+#include <tqxml.h>
+#include <tqstring.h>
// App specific includes
#include "saxhandler.h"
@@ -39,27 +39,27 @@ public:
* info, e.g. to resolve entities defined in the internal DTD.
* \param data The header (preamble) of the DocBook document.
*/
- void setProcessingInstruction(const QString &data);
+ void setProcessingInstruction(const TQString &data);
/**
* This is the 'para' element to parse. It has to be encapsulated
* in <para> and </para>. Nested 'para' elements are not supported.
* \param data See description.
*/
- void setData(const QString &data);
+ void setData(const TQString &data);
/**
* Returns the pure text content of the paragraph without tags.
* \param data See description.
*/
- void getText(QString &data);
+ void getText(TQString &data);
/**
* Returns the text in RTF format, i.e. replaces DocBook tags
* with RTF tags.
* \param data See description.
*/
- void getRTFText(QString &data);
+ void getRTFText(TQString &data);
protected:
ParaSaxParser();
@@ -67,9 +67,9 @@ protected:
private:
static ParaSaxParser* _instance;
SaxHandler* m_handler;
- QXmlSimpleReader* m_reader;
- QString m_XmlInputHeader;
- QString m_XmlInputBody;
+ TQXmlSimpleReader* m_reader;
+ TQString m_XmlInputHeader;
+ TQString m_XmlInputBody;
};
diff --git a/ksayit/src/saxhandler.cpp b/ksayit/src/saxhandler.cpp
index 2f8d49c..9f6354c 100644
--- a/ksayit/src/saxhandler.cpp
+++ b/ksayit/src/saxhandler.cpp
@@ -21,9 +21,9 @@
#include "saxhandler.h"
SaxHandler::SaxHandler()
- : QXmlDefaultHandler()
+ : TQXmlDefaultHandler()
{
- m_output = QString::null;
+ m_output = TQString::null;
m_rtf = true;
m_tagmap["action"] = "B";
m_tagmap["application"] = "B";
@@ -74,21 +74,21 @@ void SaxHandler::setRTF(bool rtf)
}
-bool SaxHandler::startElement(const QString &,
- const QString &,
- const QString & qName,
- const QXmlAttributes & atts )
+bool SaxHandler::startElement(const TQString &,
+ const TQString &,
+ const TQString & qName,
+ const TQXmlAttributes & atts )
{
if ( !m_rtf )
return true;
- QString tag = qName.lower();
+ TQString tag = qName.lower();
TagMapT::iterator it;
it = m_tagmap.find(tag);
if ( it != m_tagmap.end() ){
// tag found in hash table
- QString rtftag = (*it).second;
+ TQString rtftag = (*it).second;
m_output += "<" + rtftag + ">";
}
@@ -96,20 +96,20 @@ bool SaxHandler::startElement(const QString &,
}
-bool SaxHandler::endElement(const QString &,
- const QString &,
- const QString & qName)
+bool SaxHandler::endElement(const TQString &,
+ const TQString &,
+ const TQString & qName)
{
if ( !m_rtf )
return true;
- QString tag = qName.lower();
+ TQString tag = qName.lower();
TagMapT::iterator it;
it = m_tagmap.find(tag);
if ( it != m_tagmap.end() ){
// tag found in hash table
- QString rtftag = (*it).second;
+ TQString rtftag = (*it).second;
m_output += "</" + rtftag.section(" ", 0, 0) + ">";
}
@@ -117,50 +117,50 @@ bool SaxHandler::endElement(const QString &,
}
-bool SaxHandler::characters(const QString & ch)
+bool SaxHandler::characters(const TQString & ch)
{
m_output += ch;
return true;
}
-bool SaxHandler::fatalError(const QXmlParseException &exc)
+bool SaxHandler::fatalError(const TQXmlParseException &exc)
{
- QString err = i18n("Fatal error while parsing XML-Paragraph:\n");
+ TQString err = i18n("Fatal error while parsing XML-Paragraph:\n");
err += i18n("%1, Line: %2").arg(exc.message()).arg(exc.lineNumber());
KMessageBox::error(0, err, i18n("Fatal error") );
return false;
}
-bool SaxHandler::resolveEntity(const QString &publicId,
- const QString &systemId,
- QXmlInputSource* &ret)
+bool SaxHandler::resolveEntity(const TQString &publicId,
+ const TQString &systemId,
+ TQXmlInputSource* &ret)
{
return true;
}
-bool SaxHandler::externalEntityDecl(const QString & name,
- const QString & publicId,
- const QString & systemId)
+bool SaxHandler::externalEntityDecl(const TQString & name,
+ const TQString & publicId,
+ const TQString & systemId)
{
kdDebug(100200) << "externalEntityDecl(): " << name << ", " << publicId << ", " << systemId << endl;
return true;
}
-bool SaxHandler::internalEntityDecl(const QString & name,
- const QString & value)
+bool SaxHandler::internalEntityDecl(const TQString & name,
+ const TQString & value)
{
kdDebug() << "internalEntityDecl(): " << name << ", " << value << endl;
return true;
}
-bool SaxHandler::skippedEntity(const QString &name)
+bool SaxHandler::skippedEntity(const TQString &name)
{
- QString warn = i18n("Unresolved entity found: %1.\n").arg(name);
+ TQString warn = i18n("Unresolved entity found: %1.\n").arg(name);
warn += i18n("KSayIt does not support DocBook files with external entities. ");
warn += i18n("Parsing can continue, but the resulting text will contain gaps.");
@@ -173,7 +173,7 @@ bool SaxHandler::skippedEntity(const QString &name)
}
-void SaxHandler::getData( QString &data ) const
+void SaxHandler::getData( TQString &data ) const
{
data = m_output;
}
@@ -181,7 +181,7 @@ void SaxHandler::getData( QString &data ) const
void SaxHandler::reset()
{
- m_output = QString::null;
+ m_output = TQString::null;
}
diff --git a/ksayit/src/saxhandler.h b/ksayit/src/saxhandler.h
index 45061f3..4e611b7 100644
--- a/ksayit/src/saxhandler.h
+++ b/ksayit/src/saxhandler.h
@@ -17,10 +17,10 @@
using namespace std;
// Qt includes
-#include <qxml.h>
-#include <qstring.h>
+#include <tqxml.h>
+#include <tqstring.h>
-typedef map<QString, QString> TagMapT;
+typedef map<TQString, TQString> TagMapT;
/**
@@ -33,36 +33,36 @@ public:
~SaxHandler();
// Reimplementations from base class
- bool startElement(const QString &namespaceURI,
- const QString &localName,
- const QString &qName,
- const QXmlAttributes &atts );
+ bool startElement(const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName,
+ const TQXmlAttributes &atts );
- bool endElement(const QString &namespaceURI,
- const QString &localName,
- const QString &qName);
+ bool endElement(const TQString &namespaceURI,
+ const TQString &localName,
+ const TQString &qName);
- bool characters(const QString &ch);
+ bool characters(const TQString &ch);
- bool fatalError(const QXmlParseException &exc);
+ bool fatalError(const TQXmlParseException &exc);
- bool resolveEntity(const QString &publicId,
- const QString &systemId,
- QXmlInputSource* &ret);
+ bool resolveEntity(const TQString &publicId,
+ const TQString &systemId,
+ TQXmlInputSource* &ret);
- bool externalEntityDecl(const QString &name,
- const QString &publicId,
- const QString &systemId);
+ bool externalEntityDecl(const TQString &name,
+ const TQString &publicId,
+ const TQString &systemId);
- bool internalEntityDecl(const QString &name,
- const QString &value);
+ bool internalEntityDecl(const TQString &name,
+ const TQString &value);
- bool skippedEntity(const QString &name);
+ bool skippedEntity(const TQString &name);
/**
* Returns the parser result.
*/
- void getData( QString &data ) const;
+ void getData( TQString &data ) const;
/**
* Reset
@@ -78,7 +78,7 @@ public:
private:
- QString m_output;
+ TQString m_output;
bool m_rtf;
TagMapT m_tagmap;
diff --git a/ksayit/src/voicesetupdlg.cpp b/ksayit/src/voicesetupdlg.cpp
index bdf6db3..d8df70a 100644
--- a/ksayit/src/voicesetupdlg.cpp
+++ b/ksayit/src/voicesetupdlg.cpp
@@ -19,12 +19,12 @@
// using namespace std;
// QT includes
-#include <qpixmap.h>
-#include <qstringlist.h>
-#include <qcombobox.h>
-#include <qcolor.h>
-#include <qlayout.h>
-#include <qwidget.h>
+#include <tqpixmap.h>
+#include <tqstringlist.h>
+#include <tqcombobox.h>
+#include <tqcolor.h>
+#include <tqlayout.h>
+#include <tqwidget.h>
// KDE includes
#include <kdebug.h>
@@ -39,7 +39,7 @@
#include "fxpluginhandler.h"
#include "kttsdlib.h"
-VoiceSetupDlg::VoiceSetupDlg(QWidget *parent, const char *name, const QString &caption,
+VoiceSetupDlg::VoiceSetupDlg(TQWidget *parent, const char *name, const TQString &caption,
bool modal,
KConfig *config,
FXPluginHandler *fxpluginhandler,
@@ -51,7 +51,7 @@ VoiceSetupDlg::VoiceSetupDlg(QWidget *parent, const char *name, const QString &c
{
setIconListAllVisible(true);
- connect (this, SIGNAL(aboutToShowPage(QWidget*)), this, SLOT(slotPageChanged(QWidget*)));
+ connect (this, TQT_SIGNAL(aboutToShowPage(TQWidget*)), this, TQT_SLOT(slotPageChanged(TQWidget*)));
initVoicePage();
initFXPage();
@@ -66,26 +66,26 @@ VoiceSetupDlg::~VoiceSetupDlg()
void VoiceSetupDlg::initVoicePage()
{
- QPixmap icon = KGlobal::iconLoader()->loadIcon("ksayit", KIcon::Toolbar, KIcon::SizeMedium);
- QFrame *voicePage = addPage( i18n( "Voice" ), i18n("Voice Settings"), icon );
- QVBoxLayout *voiceLayout = new QVBoxLayout( voicePage, 0, spacingHint() );
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon("ksayit", KIcon::Toolbar, KIcon::SizeMedium);
+ TQFrame *voicePage = addPage( i18n( "Voice" ), i18n("Voice Settings"), icon );
+ TQVBoxLayout *voiceLayout = new TQVBoxLayout( voicePage, 0, spacingHint() );
- const QWidget *voiceDialog = m_kttslib->getGUI( voicePage );
- voiceLayout->addWidget( const_cast<QWidget*>(voiceDialog) );
+ const TQWidget *voiceDialog = m_kttslib->getGUI( voicePage );
+ voiceLayout->addWidget( const_cast<TQWidget*>(voiceDialog) );
}
void VoiceSetupDlg::initFXPage()
{
- QPixmap icon = KGlobal::iconLoader()->loadIcon("ksysguard", KIcon::Toolbar, KIcon::SizeMedium);
+ TQPixmap icon = KGlobal::iconLoader()->loadIcon("ksysguard", KIcon::Toolbar, KIcon::SizeMedium);
m_fxPage = addPage( i18n( "Audio FX" ), i18n("Effect Stack"), icon );
- QVBoxLayout *fxLayout = new QVBoxLayout( m_fxPage, 0, spacingHint() );
+ TQVBoxLayout *fxLayout = new TQVBoxLayout( m_fxPage, 0, spacingHint() );
FX_SetupImpl *fxDialog = new FX_SetupImpl(m_fxPage, "fxsetup", m_config, m_fxpluginhandler);
fxLayout->addWidget(fxDialog);
- connect( this, SIGNAL(signalOKWasClicked()), fxDialog, SLOT(slotSaveWasClicked()) );
- connect( this, SIGNAL(signalRemoveAllFX()), fxDialog, SLOT(slotRemoveAll()) );
- connect( this, SIGNAL(signalReloadFX()), fxDialog, SLOT(slotReload()) );
+ connect( this, TQT_SIGNAL(signalOKWasClicked()), fxDialog, TQT_SLOT(slotSaveWasClicked()) );
+ connect( this, TQT_SIGNAL(signalRemoveAllFX()), fxDialog, TQT_SLOT(slotRemoveAll()) );
+ connect( this, TQT_SIGNAL(signalReloadFX()), fxDialog, TQT_SLOT(slotReload()) );
// Disable/enable FX-Setup depending on TTS-libs capability
int status = m_kttslib->getStatus() & TTS::AUDIOFILE;
@@ -98,7 +98,7 @@ void VoiceSetupDlg::initFXPage()
}
-void VoiceSetupDlg::slotPageChanged(QWidget *page)
+void VoiceSetupDlg::slotPageChanged(TQWidget *page)
{
kdDebug(100200) << "+++ entering VoiceSetupDlg::slotPageChanged: " << page << endl;
@@ -109,7 +109,7 @@ void VoiceSetupDlg::slotPageChanged(QWidget *page)
if ( status ){
m_fxPage->setEnabled(true);
} else {
- QString q = i18n("The active TTS system does not make use of aRts effects.");
+ TQString q = i18n("The active TTS system does not make use of aRts effects.");
KMessageBox::information( this, q, i18n("Plugin Configuration"), "KSayIt_Audiofile" );
m_fxPage->setEnabled(false);
}
@@ -131,7 +131,7 @@ void VoiceSetupDlg::slotOk()
// check if configuration was saved O.K.
if ( m_kttslib->saveWasClicked() ){
kdDebug(100200) << "--- leaving VoiceSetupDlg::slotOk" << endl;
- QDialog::accept();
+ TQDialog::accept();
}
}
@@ -139,7 +139,7 @@ void VoiceSetupDlg::slotOk()
void VoiceSetupDlg::slotCancel()
{
kdDebug(100200) << "VoiceSetupDlg::slotCancel()" << endl;
- QDialog::reject();
+ TQDialog::reject();
}
#include "voicesetupdlg.moc"
diff --git a/ksayit/src/voicesetupdlg.h b/ksayit/src/voicesetupdlg.h
index 510c591..c9063e4 100644
--- a/ksayit/src/voicesetupdlg.h
+++ b/ksayit/src/voicesetupdlg.h
@@ -19,7 +19,7 @@
#define VOICESETUPDLG_H
// QT includes
-#include <qframe.h>
+#include <tqframe.h>
// KDE includes
#include <kdialogbase.h>
@@ -35,7 +35,7 @@ class VoiceSetupDlg : public KDialogBase {
Q_OBJECT
public:
- VoiceSetupDlg(QWidget *parent=0, const char *name=0, const QString &caption=NULL,
+ VoiceSetupDlg(TQWidget *parent=0, const char *name=0, const TQString &caption=NULL,
bool modal=true,
KConfig *config=0,
FXPluginHandler *fxpluginhandler=0,
@@ -69,7 +69,7 @@ private: // Methods
private slots:
/** Called when the Page changes.
*/
- void slotPageChanged(QWidget *page);
+ void slotPageChanged(TQWidget *page);
/** Reimplementation from base class.
*/
@@ -83,7 +83,7 @@ private:
KConfig *m_config;
FXPluginHandler *m_fxpluginhandler;
KTTSDLib *m_kttslib;
- QFrame *m_fxPage;
+ TQFrame *m_fxPage;
};