From 28bf3cbba4139c8a0f81dc9d1a2f6c4ed724f22c Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:20:30 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1157633 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksayit/Freeverb_plugin/freeverbsetupimpl.cpp | 6 +- ksayit/Freeverb_plugin/freeverbsetupimpl.h | 4 +- ksayit/Freeverb_plugin/ksayitfreeverblib.cpp | 18 +- ksayit/Freeverb_plugin/ksayitfreeverblib.h | 18 +- ksayit/KTTSD_Lib/kttsdlib.cpp | 32 +- ksayit/KTTSD_Lib/kttsdlib.h | 16 +- ksayit/KTTSD_Lib/kttsdlibsetupimpl.cpp | 12 +- ksayit/KTTSD_Lib/kttsdlibsetupimpl.h | 2 +- ksayit/KTTSD_Lib/kttsdlibtalker2.cpp | 30 +- ksayit/KTTSD_Lib/kttsdlibtalker2.h | 18 +- ksayit/src/DocTreeView.ui.h | 4 +- ksayit/src/Types.h | 22 +- ksayit/src/contextmenuhandler.cpp | 88 +++--- ksayit/src/contextmenuhandler.h | 46 +-- ksayit/src/docbookclasses.cpp | 444 +++++++++++++-------------- ksayit/src/docbookclasses.h | 136 ++++---- ksayit/src/docbookgenerator.cpp | 120 ++++---- ksayit/src/docbookgenerator.h | 36 +-- ksayit/src/docbookparser.cpp | 132 ++++---- ksayit/src/docbookparser.h | 30 +- ksayit/src/doctreeviewimpl.cpp | 268 ++++++++-------- ksayit/src/doctreeviewimpl.h | 30 +- ksayit/src/effectstack.cpp | 6 +- ksayit/src/fxpluginhandler.cpp | 46 +-- ksayit/src/fxpluginhandler.h | 34 +- ksayit/src/fxsetupimpl.cpp | 20 +- ksayit/src/fxsetupimpl.h | 12 +- ksayit/src/ksayit.cpp | 196 ++++++------ ksayit/src/ksayit.h | 42 +-- ksayit/src/ksayit_fxplugin.h | 10 +- ksayit/src/ksayit_ttsplugin.h | 22 +- ksayit/src/ksayitbookmarkhandler.cpp | 48 +-- ksayit/src/ksayitbookmarkhandler.h | 20 +- ksayit/src/ksayitsystemtray.cpp | 58 ++-- ksayit/src/ksayitsystemtray.h | 40 +-- ksayit/src/ksayitviewimpl.cpp | 12 +- ksayit/src/ksayitviewimpl.h | 16 +- ksayit/src/main.cpp | 2 +- ksayit/src/parasaxparser.cpp | 22 +- ksayit/src/parasaxparser.h | 18 +- ksayit/src/saxhandler.cpp | 56 ++-- ksayit/src/saxhandler.h | 46 +-- ksayit/src/voicesetupdlg.cpp | 44 +-- ksayit/src/voicesetupdlg.h | 8 +- 44 files changed, 1145 insertions(+), 1145 deletions(-) (limited to 'ksayit') 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 -#include +#include +#include // KDE includes #include @@ -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 +#include // KDE includes #include @@ -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 -#include +// #include +#include // KDE includes #include @@ -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 -#include +#include +#include // KDE includes #include @@ -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 // nanosleep // Qt includes -#include -#include +#include +#include // KDE includes #include @@ -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(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(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("Description:
"); 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 -#include -#include +#include +#include +#include #include #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 // Qt includes -#include +#include // KDE includes #include @@ -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 //sleep // Qt includes -#include +#include // KDE includes #include @@ -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 -#include +#include +#include #include #include @@ -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 // QT includes -#include -#include +#include +#include // KDE includes #include -typedef QValueList ParameterList_type; -typedef QMap EffectConfig_type; +typedef TQValueList ParameterList_type; +typedef TQMap 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 true if the operation was successfully performed, * in all other cases false. */ - 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 setValue(). - * \returns The requested data as a QVariant or a invalid - * QVariant() if the data was not available. + * \returns The requested data as a TQVariant or a invalid + * TQVariant() 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 -#include +#include +#include // KDE includes #include @@ -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(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 -#include -#include +#include +#include +#include // KDE includes #include @@ -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 -#include -#include -#include -#include +#include +#include +#include +#include +#include //KDE includes #include @@ -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("

" + i18n("unnamed") + "

"); // 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::Iterator it = m_valueList.at(index); + TQValueList::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("

" + i18n("Overview") + "

"); // 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::Iterator it = m_valueList.at(index); + TQValueList::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("" + i18n("Date") +": "); // 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::Iterator it = m_valueList.at(index); + TQValueList::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("" + i18n("Release") + ": "); // 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::Iterator it = m_valueList.at(index); + TQValueList::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("

" + i18n("Author(s)")+ "

"); // 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::Iterator it = m_valueList.at(index); + TQValueList::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("" + i18n("Author") + ": "); // 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::Iterator it = m_valueList.at(index); + TQValueList::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("

" + i18n("Keywords") + "

"); // 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::Iterator it = m_valueList.at(index); + TQValueList::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::Iterator it = m_valueList.at(index); + TQValueList::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("

" + i18n("Abstract") + "

"); // 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::Iterator it = m_valueList.at(index); + TQValueList::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::Iterator it = m_valueList.at(index); - QString sData = QString::null; + TQValueList::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::Iterator it = m_valueList.at(index); + TQValueList::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::Iterator it = m_valueList.at(index); + TQValueList::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::Iterator it = m_valueList.at(index); + TQValueList::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::Iterator it = m_valueList.at(index); + TQValueList::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::Iterator it = m_valueList.at(index); + TQValueList::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::Iterator it = m_valueList.at(index); + TQValueList::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 +#include -#include -#include +#include +#include // KDE includes #include @@ -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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 m_valueList; + TQValueList 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 -#include +#include +#include //KDE includes #include @@ -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(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(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(item->parent()); if ( parent ){ - QString title = parent->text(0); + TQString title = parent->text(0); // add node to document doc << "" << 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(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 << "" << 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 << "" << 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(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(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 << "" << endl; @@ -285,7 +285,7 @@ void DocbookGenerator::writeChapter( QTextStream &doc, ListViewInterface *item) // process childs ListViewInterface *i = static_cast(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 << "" << endl; @@ -317,7 +317,7 @@ void DocbookGenerator::writeSect1(QTextStream &doc, ListViewInterface *item) // process childs ListViewInterface *i = static_cast(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 << "" << endl; @@ -349,7 +349,7 @@ void DocbookGenerator::writeSect2(QTextStream &doc, ListViewInterface *item) // process childs ListViewInterface *i = static_cast(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 << "" << endl; @@ -381,7 +381,7 @@ void DocbookGenerator::writeSect3(QTextStream &doc, ListViewInterface *item) // process childs ListViewInterface *i = static_cast(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 << "" << endl; @@ -413,7 +413,7 @@ void DocbookGenerator::writeSect4(QTextStream &doc, ListViewInterface *item) // process childs ListViewInterface *i = static_cast(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 << "" << endl; @@ -445,7 +445,7 @@ void DocbookGenerator::writeSect5(QTextStream &doc, ListViewInterface *item) // process childs ListViewInterface *i = static_cast(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 << "" << 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 +#include // 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 -#include -#include +#include +#include +#include //KDE includes #include @@ -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 tags - raw.replace( QRegExp(""),""); - raw.replace( QRegExp("^ "),"" ); - raw.replace( QRegExp("^\n"), "" ); + raw.replace( TQRegExp(""),""); + 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 +#include // 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 // getenv // Qt includes -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include //KDE includes #include @@ -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 << "" << endl; wrapped << "" << endl; - QString header(data); + TQString header(data); m_parasaxparser->setProcessingInstruction( header ); wrapped << "" << endl; @@ -153,15 +153,15 @@ void DocTreeViewImpl::createEmptyDocument() wrapped << "" << endl; wrapped << "" << 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("" << 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 << "" << endl; wrapped << "<![CDATA[" << i18n("Plain File") << "]]>" << endl; wrapped << "" << endl; wrapped << "" << endl; wrapped << "" << 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 << "" << endl; doc << "