summaryrefslogtreecommitdiffstats
path: root/parts/documentation
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/documentation
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/documentation')
-rw-r--r--parts/documentation/KDevDocumentationIface.cpp12
-rw-r--r--parts/documentation/KDevDocumentationIface.h14
-rw-r--r--parts/documentation/addcatalogdlg.cpp28
-rw-r--r--parts/documentation/addcatalogdlg.h18
-rw-r--r--parts/documentation/bookmarkview.cpp64
-rw-r--r--parts/documentation/bookmarkview.h16
-rw-r--r--parts/documentation/contentsview.cpp24
-rw-r--r--parts/documentation/contentsview.h8
-rw-r--r--parts/documentation/docconfiglistview.cpp20
-rw-r--r--parts/documentation/docconfiglistview.h4
-rw-r--r--parts/documentation/docglobalconfigwidget.cpp38
-rw-r--r--parts/documentation/docglobalconfigwidget.h4
-rw-r--r--parts/documentation/docprojectconfigwidget.cpp18
-rw-r--r--parts/documentation/docprojectconfigwidget.h6
-rw-r--r--parts/documentation/documentation_part.cpp196
-rw-r--r--parts/documentation/documentation_part.h36
-rw-r--r--parts/documentation/documentation_widget.cpp20
-rw-r--r--parts/documentation/documentation_widget.h12
-rw-r--r--parts/documentation/docutils.cpp16
-rw-r--r--parts/documentation/docutils.h14
-rw-r--r--parts/documentation/editcatalogdlg.cpp16
-rw-r--r--parts/documentation/editcatalogdlg.h12
-rw-r--r--parts/documentation/find_documentation.cpp64
-rw-r--r--parts/documentation/find_documentation.h12
-rw-r--r--parts/documentation/find_documentation_options.cpp30
-rw-r--r--parts/documentation/find_documentation_options.h22
-rw-r--r--parts/documentation/indexview.cpp52
-rw-r--r--parts/documentation/indexview.h14
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.cpp176
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.h106
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.cpp46
-rw-r--r--parts/documentation/plugins/chm/docchmplugin.h14
-rw-r--r--parts/documentation/plugins/custom/doccustomplugin.cpp18
-rw-r--r--parts/documentation/plugins/custom/doccustomplugin.h12
-rw-r--r--parts/documentation/plugins/devhelp/docdevhelpplugin.cpp156
-rw-r--r--parts/documentation/plugins/devhelp/docdevhelpplugin.h22
-rw-r--r--parts/documentation/plugins/djvu/docdjvuplugin.cpp18
-rw-r--r--parts/documentation/plugins/djvu/docdjvuplugin.h12
-rw-r--r--parts/documentation/plugins/doxygen/docdoxygenplugin.cpp234
-rw-r--r--parts/documentation/plugins/doxygen/docdoxygenplugin.h28
-rw-r--r--parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp120
-rw-r--r--parts/documentation/plugins/kdevtoc/dockdevtocplugin.h18
-rw-r--r--parts/documentation/plugins/pdb/docpdbplugin.cpp18
-rw-r--r--parts/documentation/plugins/pdb/docpdbplugin.h12
-rw-r--r--parts/documentation/plugins/pdf/docpdfplugin.cpp18
-rw-r--r--parts/documentation/plugins/pdf/docpdfplugin.h12
-rw-r--r--parts/documentation/plugins/qt/docqtplugin.cpp136
-rw-r--r--parts/documentation/plugins/qt/docqtplugin.h18
-rw-r--r--parts/documentation/protocols/chm/chm.cpp88
-rw-r--r--parts/documentation/protocols/chm/chm.h12
-rw-r--r--parts/documentation/protocols/chm/chmfile.cpp20
-rw-r--r--parts/documentation/protocols/chm/chmfile.h18
-rw-r--r--parts/documentation/protocols/chm/kchmpart.cpp20
-rw-r--r--parts/documentation/protocols/chm/kchmpart.h16
-rw-r--r--parts/documentation/searchview.cpp128
-rw-r--r--parts/documentation/searchview.h16
-rw-r--r--parts/documentation/selecttopic.cpp4
-rw-r--r--parts/documentation/selecttopic.h2
-rw-r--r--parts/documentation/tools/htdig/htdigindex.cpp94
-rw-r--r--parts/documentation/tools/htdig/htdigindex.h14
60 files changed, 1208 insertions, 1208 deletions
diff --git a/parts/documentation/KDevDocumentationIface.cpp b/parts/documentation/KDevDocumentationIface.cpp
index 2d64f193..329b8474 100644
--- a/parts/documentation/KDevDocumentationIface.cpp
+++ b/parts/documentation/KDevDocumentationIface.cpp
@@ -22,7 +22,7 @@
#include "documentation_part.h"
KDevDocumentationIface::KDevDocumentationIface(DocumentationPart *part)
- :QObject(part), DCOPObject("KDevDocumentation"), m_part(part)
+ :TQObject(part), DCOPObject("KDevDocumentation"), m_part(part)
{
}
@@ -30,17 +30,17 @@ KDevDocumentationIface::~KDevDocumentationIface()
{
}
-void KDevDocumentationIface::lookupInIndex(QString term)
+void KDevDocumentationIface::lookupInIndex(TQString term)
{
m_part->lookInDocumentationIndex(term);
}
-void KDevDocumentationIface::findInFinder(QString term)
+void KDevDocumentationIface::findInFinder(TQString term)
{
m_part->findInDocumentation(term);
}
-void KDevDocumentationIface::searchInDocumentation(QString term)
+void KDevDocumentationIface::searchInDocumentation(TQString term)
{
m_part->searchInDocumentation(term);
}
@@ -55,12 +55,12 @@ void KDevDocumentationIface::searchInDocumentation()
m_part->searchInDocumentation();
}
-void KDevDocumentationIface::manPage(QString term)
+void KDevDocumentationIface::manPage(TQString term)
{
m_part->manPage(term);
}
-void KDevDocumentationIface::infoPage(QString term)
+void KDevDocumentationIface::infoPage(TQString term)
{
m_part->infoPage(term);
}
diff --git a/parts/documentation/KDevDocumentationIface.h b/parts/documentation/KDevDocumentationIface.h
index 35cd17fb..e398e89d 100644
--- a/parts/documentation/KDevDocumentationIface.h
+++ b/parts/documentation/KDevDocumentationIface.h
@@ -20,12 +20,12 @@
#ifndef KDEVDOCUMENTATIONIFACE_H
#define KDEVDOCUMENTATIONIFACE_H
-#include <qobject.h>
+#include <tqobject.h>
#include <dcopobject.h>
class DocumentationPart;
-class KDevDocumentationIface : public QObject, public DCOPObject {
+class KDevDocumentationIface : public TQObject, public DCOPObject {
Q_OBJECT
K_DCOP
public:
@@ -33,11 +33,11 @@ public:
~KDevDocumentationIface();
k_dcop:
- void lookupInIndex(QString term);
- void findInFinder(QString term);
- void searchInDocumentation(QString term);
- void manPage(QString term);
- void infoPage(QString term);
+ void lookupInIndex(TQString term);
+ void findInFinder(TQString term);
+ void searchInDocumentation(TQString term);
+ void manPage(TQString term);
+ void infoPage(TQString term);
void lookupInIndex();
void findInFinder();
diff --git a/parts/documentation/addcatalogdlg.cpp b/parts/documentation/addcatalogdlg.cpp
index 867f6f6b..21913089 100644
--- a/parts/documentation/addcatalogdlg.cpp
+++ b/parts/documentation/addcatalogdlg.cpp
@@ -20,8 +20,8 @@
#include "addcatalogdlg.h"
-#include <qlabel.h>
-#include <qcombobox.h>
+#include <tqlabel.h>
+#include <tqcombobox.h>
#include <klineedit.h>
#include <kurlrequester.h>
@@ -31,23 +31,23 @@
#include "docutils.h"
#include "kdevdocumentationplugin.h"
-AddCatalogDlg::AddCatalogDlg( QValueList<DocumentationPlugin*> const & plugins,
- QWidget* parent, const char* name, bool modal, WFlags fl)
+AddCatalogDlg::AddCatalogDlg( TQValueList<DocumentationPlugin*> const & plugins,
+ TQWidget* parent, const char* name, bool modal, WFlags fl)
:AddCatalogDlgBase(parent,name, modal,fl), m_plugins( plugins )
{
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
{
docTypeCombo->insertItem( (*it)->pluginName() );
}
- docTypeChanged( QString() );
+ docTypeChanged( TQString() );
}
AddCatalogDlg::~AddCatalogDlg()
{
}
-void AddCatalogDlg::locationURLChanged(const QString &text)
+void AddCatalogDlg::locationURLChanged(const TQString &text)
{
DocumentationPlugin * plugin = this->plugin();
if ( !plugin ) return;
@@ -57,32 +57,32 @@ void AddCatalogDlg::locationURLChanged(const QString &text)
void AddCatalogDlg::accept()
{
- QDialog::accept();
+ TQDialog::accept();
}
-QString AddCatalogDlg::title() const
+TQString AddCatalogDlg::title() const
{
return titleEdit->text();
}
-QString AddCatalogDlg::url() const
+TQString AddCatalogDlg::url() const
{
return DocUtils::envURL(locationURL);
}
-void AddCatalogDlg::setTitle(const QString &title)
+void AddCatalogDlg::setTitle(const TQString &title)
{
titleEdit->setText(title);
}
-void AddCatalogDlg::setURL(const QString &url)
+void AddCatalogDlg::setURL(const TQString &url)
{
locationURL->setURL(url);
}
DocumentationPlugin * AddCatalogDlg::plugin( )
{
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin(); it != m_plugins.constEnd(); ++it)
{
if ( docTypeCombo->currentText() == (*it)->pluginName() )
{
@@ -92,7 +92,7 @@ DocumentationPlugin * AddCatalogDlg::plugin( )
return 0;
}
-void AddCatalogDlg::docTypeChanged( const QString & )
+void AddCatalogDlg::docTypeChanged( const TQString & )
{
kdDebug() << k_funcinfo << endl;
diff --git a/parts/documentation/addcatalogdlg.h b/parts/documentation/addcatalogdlg.h
index 4599dc8d..0a437294 100644
--- a/parts/documentation/addcatalogdlg.h
+++ b/parts/documentation/addcatalogdlg.h
@@ -21,7 +21,7 @@
#ifndef ADDCATALOGDLG_H
#define ADDCATALOGDLG_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "addcatalogdlgbase.h"
class DocumentationPlugin;
@@ -30,24 +30,24 @@ class AddCatalogDlg: public AddCatalogDlgBase
{
Q_OBJECT
public:
- AddCatalogDlg( QValueList<DocumentationPlugin*> const & plugins, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+ AddCatalogDlg( TQValueList<DocumentationPlugin*> const & plugins, TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~AddCatalogDlg();
- QString title() const;
- void setTitle(const QString &title);
- QString url() const;
- void setURL(const QString &url);
+ TQString title() const;
+ void setTitle(const TQString &title);
+ TQString url() const;
+ void setURL(const TQString &url);
DocumentationPlugin * plugin();
public slots:
- virtual void locationURLChanged(const QString &text);
- virtual void docTypeChanged( const QString & );
+ virtual void locationURLChanged(const TQString &text);
+ virtual void docTypeChanged( const TQString & );
protected slots:
virtual void accept();
private:
- QValueList<DocumentationPlugin*> const & m_plugins;
+ TQValueList<DocumentationPlugin*> const & m_plugins;
};
#endif
diff --git a/parts/documentation/bookmarkview.cpp b/parts/documentation/bookmarkview.cpp
index 742c300a..ff2bbece 100644
--- a/parts/documentation/bookmarkview.cpp
+++ b/parts/documentation/bookmarkview.cpp
@@ -19,9 +19,9 @@
***************************************************************************/
#include "bookmarkview.h"
-#include <qlayout.h>
-#include <qheader.h>
-#include <qpoint.h>
+#include <tqlayout.h>
+#include <tqheader.h>
+#include <tqpoint.h>
#include <klineedit.h>
#include <kstandarddirs.h>
@@ -54,21 +54,21 @@ DocBookmarkOwner::DocBookmarkOwner(DocumentationPart *part)
{
}
-void DocBookmarkOwner::openBookmarkURL(const QString &_url)
+void DocBookmarkOwner::openBookmarkURL(const TQString &_url)
{
m_part->partController()->showDocument(KURL(_url));
}
-QString DocBookmarkOwner::currentURL() const
+TQString DocBookmarkOwner::currentURL() const
{
KParts::ReadOnlyPart *activePart = dynamic_cast<KParts::ReadOnlyPart*>(m_part->partController()->activePart());
if (activePart)
return activePart->url().url();
else
- return QString::null;
+ return TQString::null;
}
-QString DocBookmarkOwner::currentTitle() const
+TQString DocBookmarkOwner::currentTitle() const
{
KParts::ReadOnlyPart *activePart = dynamic_cast<KParts::ReadOnlyPart*>(m_part->partController()->activePart());
if (activePart)
@@ -79,20 +79,20 @@ QString DocBookmarkOwner::currentTitle() const
return activePart->url().prettyURL();
}
else
- return QString::null;
+ return TQString::null;
}
class DocBookmarkItem: public DocumentationItem {
public:
- DocBookmarkItem(Type type, KListView *parent, const QString &name)
+ DocBookmarkItem(Type type, KListView *parent, const TQString &name)
:DocumentationItem(type, parent, name)
{
}
- DocBookmarkItem(Type type, KListView *parent, DocumentationItem *after, const QString &name)
+ DocBookmarkItem(Type type, KListView *parent, DocumentationItem *after, const TQString &name)
:DocumentationItem(type, parent, after, name)
{
}
- DocBookmarkItem(Type type, DocumentationItem *parent, const QString &name)
+ DocBookmarkItem(Type type, DocumentationItem *parent, const TQString &name)
:DocumentationItem(type, parent, name)
{
}
@@ -108,41 +108,41 @@ private:
//class BookmarkView
BookmarkView::BookmarkView(DocumentationWidget *parent, const char *name)
- :QWidget(parent, name), m_widget(parent)
+ :TQWidget(parent, name), m_widget(parent)
{
m_bmManager = new DocBookmarkManager(m_widget->part());
m_bmOwner = new DocBookmarkOwner(m_widget->part());
- QVBoxLayout *l = new QVBoxLayout(this, 0, KDialog::spacingHint());
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, KDialog::spacingHint());
m_view = new KListView(this);
m_view->addColumn(i18n("Title"));
m_view->setSorting(-1);
m_view->header()->hide();
- m_view->setResizeMode(QListView::AllColumns);
+ m_view->setResizeMode(TQListView::AllColumns);
m_view->setAllColumnsShowFocus( true );
l->addWidget(m_view);
- QHBoxLayout *l2 = new QHBoxLayout(l, KDialog::spacingHint());
+ TQHBoxLayout *l2 = new TQHBoxLayout(l, KDialog::spacingHint());
m_addButton = new KPushButton(i18n("Add"), this);
m_editButton = new KPushButton(i18n("Edit..."), this);
m_removeButton = new KPushButton(i18n("Remove"), this);
l2->addWidget(m_addButton);
l2->addWidget(m_editButton);
l2->addWidget(m_removeButton);
- l2->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Fixed));
+ l2->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Expanding, TQSizePolicy::Fixed));
l->addSpacing(2);
showBookmarks();
- connect(m_view, SIGNAL(executed(QListViewItem*, const QPoint&, int )),
- this, SLOT(itemExecuted(QListViewItem*, const QPoint&, int )));
- connect(m_addButton, SIGNAL(pressed()), this, SLOT(addBookmark()));
- connect(m_editButton, SIGNAL(clicked()), this, SLOT(editBookmark()));
- connect(m_removeButton, SIGNAL(clicked()), this, SLOT(removeBookmark()));
+ connect(m_view, TQT_SIGNAL(executed(TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemExecuted(TQListViewItem*, const TQPoint&, int )));
+ connect(m_addButton, TQT_SIGNAL(pressed()), this, TQT_SLOT(addBookmark()));
+ connect(m_editButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(editBookmark()));
+ connect(m_removeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeBookmark()));
- connect(m_widget->part(), SIGNAL(bookmarkLocation(const QString&, const KURL& )),
- this, SLOT(addBookmark(const QString&, const KURL& )));
- connect(m_view, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int )),
- this, SLOT(itemMouseButtonPressed(int, QListViewItem*, const QPoint&, int )));
+ connect(m_widget->part(), TQT_SIGNAL(bookmarkLocation(const TQString&, const KURL& )),
+ this, TQT_SLOT(addBookmark(const TQString&, const KURL& )));
+ connect(m_view, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )));
}
BookmarkView::~BookmarkView()
@@ -166,7 +166,7 @@ void BookmarkView::showBookmarks()
}
}
-void BookmarkView::itemExecuted(QListViewItem *item, const QPoint &// p
+void BookmarkView::itemExecuted(TQListViewItem *item, const TQPoint &// p
, int // col
)
{
@@ -212,8 +212,8 @@ void BookmarkView::editBookmark()
void BookmarkView::addBookmark()
{
- QString title = m_bmOwner->currentTitle();
- QString url = m_bmOwner->currentURL();
+ TQString title = m_bmOwner->currentTitle();
+ TQString url = m_bmOwner->currentURL();
KPopupMenu menu;
bool useMenu = false;
@@ -227,7 +227,7 @@ void BookmarkView::addBookmark()
if (useMenu)
{
m_addButton->setDown(true);
- mode = menu.exec(mapToGlobal(QPoint(m_addButton->x(), m_addButton->y()+m_addButton->height())));
+ mode = menu.exec(mapToGlobal(TQPoint(m_addButton->x(), m_addButton->y()+m_addButton->height())));
m_addButton->setDown(false);
}
@@ -249,7 +249,7 @@ void BookmarkView::addBookmark()
}
}
-void BookmarkView::addBookmark(const QString &title, const KURL &url)
+void BookmarkView::addBookmark(const TQString &title, const KURL &url)
{
KBookmark bm = m_bmManager->root().addBookmark(m_bmManager, title, url);
m_bmManager->save();
@@ -265,7 +265,7 @@ void BookmarkView::addBookmark(const QString &title, const KURL &url)
item->setBookmark(bm);
}
-void BookmarkView::itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int // c
+void BookmarkView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -277,7 +277,7 @@ void BookmarkView::itemMouseButtonPressed(int button, QListViewItem *item, const
DocUtils::docItemPopup(m_widget->part(), docItem, pos, false, true);
}
-void BookmarkView::focusInEvent(QFocusEvent */*e*/)
+void BookmarkView::focusInEvent(TQFocusEvent */*e*/)
{
m_view->setFocus();
}
diff --git a/parts/documentation/bookmarkview.h b/parts/documentation/bookmarkview.h
index 82bcaf4b..aaae4a29 100644
--- a/parts/documentation/bookmarkview.h
+++ b/parts/documentation/bookmarkview.h
@@ -20,7 +20,7 @@
#ifndef BOOKMARKVIEW_H
#define BOOKMARKVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
#include <kbookmarkmanager.h>
@@ -39,9 +39,9 @@ class DocBookmarkOwner: public KBookmarkOwner {
public:
DocBookmarkOwner(DocumentationPart *part);
- virtual void openBookmarkURL(const QString &_url);
- virtual QString currentTitle() const;
- virtual QString currentURL() const;
+ virtual void openBookmarkURL(const TQString &_url);
+ virtual TQString currentTitle() const;
+ virtual TQString currentURL() const;
private:
DocumentationPart *m_part;
@@ -55,18 +55,18 @@ public:
~BookmarkView();
public slots:
- void addBookmark(const QString &title, const KURL &url);
+ void addBookmark(const TQString &title, const KURL &url);
protected:
void showBookmarks();
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
protected slots:
- void itemExecuted(QListViewItem *item, const QPoint &p, int col);
+ void itemExecuted(TQListViewItem *item, const TQPoint &p, int col);
void addBookmark();
void editBookmark();
void removeBookmark();
- void itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int c);
+ void itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int c);
private:
DocumentationWidget *m_widget;
diff --git a/parts/documentation/contentsview.cpp b/parts/documentation/contentsview.cpp
index b2725e1c..2581f5a0 100644
--- a/parts/documentation/contentsview.cpp
+++ b/parts/documentation/contentsview.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "contentsview.h"
-#include <qheader.h>
-#include <qlayout.h>
+#include <tqheader.h>
+#include <tqlayout.h>
#include <kdebug.h>
#include <klistview.h>
@@ -34,23 +34,23 @@
#include "docutils.h"
ContentsView::ContentsView(DocumentationWidget *parent, const char *name)
- :QWidget(parent, name), m_widget(parent)
+ :TQWidget(parent, name), m_widget(parent)
{
- QVBoxLayout *cl = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *cl = new TQVBoxLayout(this, 0, 0);
m_view = new KListView(this);
cl->addWidget(m_view);
m_view->addColumn(i18n( "Contents" ));
m_view->header()->hide();
- m_view->setResizeMode(QListView::AllColumns);
+ m_view->setResizeMode(TQListView::AllColumns);
m_view->setRootIsDecorated(true);
m_view->setSorting(-1);
m_view->setAllColumnsShowFocus( true );
- connect(m_view, SIGNAL(executed(QListViewItem*, const QPoint&, int )),
- this, SLOT(itemExecuted(QListViewItem*, const QPoint&, int )));
- connect(m_view, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int )),
- this, SLOT(itemMouseButtonPressed(int, QListViewItem*, const QPoint&, int )));
+ connect(m_view, TQT_SIGNAL(executed(TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemExecuted(TQListViewItem*, const TQPoint&, int )));
+ connect(m_view, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )));
}
ContentsView::~ContentsView()
@@ -59,7 +59,7 @@ ContentsView::~ContentsView()
m_widget->index()->clear();
}
-void ContentsView::itemExecuted(QListViewItem *item, const QPoint &// p
+void ContentsView::itemExecuted(TQListViewItem *item, const TQPoint &// p
, int // col
)
{
@@ -72,7 +72,7 @@ void ContentsView::itemExecuted(QListViewItem *item, const QPoint &// p
m_widget->part()->partController()->showDocument(url);
}
-void ContentsView::itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int // c
+void ContentsView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -84,7 +84,7 @@ void ContentsView::itemMouseButtonPressed(int button, QListViewItem *item, const
DocUtils::docItemPopup(m_widget->part(), docItem, pos, true, true);
}
-void ContentsView::focusInEvent(QFocusEvent */*e*/)
+void ContentsView::focusInEvent(TQFocusEvent */*e*/)
{
m_view->setFocus();
}
diff --git a/parts/documentation/contentsview.h b/parts/documentation/contentsview.h
index 54c16486..35595bca 100644
--- a/parts/documentation/contentsview.h
+++ b/parts/documentation/contentsview.h
@@ -20,7 +20,7 @@
#ifndef CONTENTSVIEW_H
#define CONTENTSVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
class FindDocumentation;
class DocumentationWidget;
@@ -37,11 +37,11 @@ public:
KListView *view() const { return m_view; }
protected slots:
- void itemExecuted(QListViewItem *item, const QPoint &p, int col);
- void itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int c);
+ void itemExecuted(TQListViewItem *item, const TQPoint &p, int col);
+ void itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int c);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
private:
DocumentationWidget *m_widget;
diff --git a/parts/documentation/docconfiglistview.cpp b/parts/documentation/docconfiglistview.cpp
index f09a860b..b8d6071c 100644
--- a/parts/documentation/docconfiglistview.cpp
+++ b/parts/documentation/docconfiglistview.cpp
@@ -23,7 +23,7 @@
#include "kdevdocumentationplugin.h"
-DocConfigListView::DocConfigListView(QWidget *parent, const char *name)
+DocConfigListView::DocConfigListView(TQWidget *parent, const char *name)
:KListView(parent, name)
{
// setSorting(-1);
@@ -32,23 +32,23 @@ DocConfigListView::DocConfigListView(QWidget *parent, const char *name)
addColumn(i18n("Search"));
addColumn(i18n("Title"));
// addColumn(i18n("URL"));
- setColumnWidthMode(0, QListView::Maximum);
- setColumnWidthMode(1, QListView::Maximum);
- setColumnWidthMode(2, QListView::Maximum);
- setColumnWidthMode(3, QListView::Maximum);
-// setColumnWidthMode(4, QListView::Maximum);
+ setColumnWidthMode(0, TQListView::Maximum);
+ setColumnWidthMode(1, TQListView::Maximum);
+ setColumnWidthMode(2, TQListView::Maximum);
+ setColumnWidthMode(3, TQListView::Maximum);
+// setColumnWidthMode(4, TQListView::Maximum);
setAllColumnsShowFocus(true);
- setResizeMode( QListView::LastColumn );
+ setResizeMode( TQListView::LastColumn );
- connect(this, SIGNAL(clicked(QListViewItem*, const QPoint&, int)),
- this, SLOT(clickedItem(QListViewItem*, const QPoint&, int )));
+ connect(this, TQT_SIGNAL(clicked(TQListViewItem*, const TQPoint&, int)),
+ this, TQT_SLOT(clickedItem(TQListViewItem*, const TQPoint&, int )));
}
DocConfigListView::~DocConfigListView()
{
}
-void DocConfigListView::clickedItem(QListViewItem *item, const QPoint &// pnt
+void DocConfigListView::clickedItem(TQListViewItem *item, const TQPoint &// pnt
, int c)
{
if (!item)
diff --git a/parts/documentation/docconfiglistview.h b/parts/documentation/docconfiglistview.h
index 0f320099..a7c0aea0 100644
--- a/parts/documentation/docconfiglistview.h
+++ b/parts/documentation/docconfiglistview.h
@@ -26,11 +26,11 @@ class DocConfigListView : public KListView
{
Q_OBJECT
public:
- DocConfigListView(QWidget *parent = 0, const char *name = 0);
+ DocConfigListView(TQWidget *parent = 0, const char *name = 0);
~DocConfigListView();
protected slots:
- void clickedItem(QListViewItem *item, const QPoint &pnt, int c);
+ void clickedItem(TQListViewItem *item, const TQPoint &pnt, int c);
};
#endif
diff --git a/parts/documentation/docglobalconfigwidget.cpp b/parts/documentation/docglobalconfigwidget.cpp
index 5cd6ff31..0184c4c9 100644
--- a/parts/documentation/docglobalconfigwidget.cpp
+++ b/parts/documentation/docglobalconfigwidget.cpp
@@ -23,10 +23,10 @@
***************************************************************************/
#include "docglobalconfigwidget.h"
-#include <qlayout.h>
-#include <qtoolbox.h>
-#include <qcheckbox.h>
-#include <qwidgetstack.h>
+#include <tqlayout.h>
+#include <tqtoolbox.h>
+#include <tqcheckbox.h>
+#include <tqwidgetstack.h>
#include <kdebug.h>
#include <kconfig.h>
@@ -51,13 +51,13 @@
#include "docutils.h"
DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
- DocumentationWidget *widget, QWidget *parent, const char *name, WFlags fl)
+ DocumentationWidget *widget, TQWidget *parent, const char *name, WFlags fl)
:DocGlobalConfigWidgetBase(parent, name, fl), m_part(part), m_widget(widget)
{
m_View = new DocConfigListView( viewHolder );
viewHolder->addWidget( m_View );
viewHolder->raiseWidget( m_View );
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
(*it)->loadCatalogConfiguration( m_View );
@@ -66,7 +66,7 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
KConfig *config = m_part->config();
//read full text search settings
config->setGroup("htdig");
- QString databaseDir = kapp->dirs()->saveLocation("data",
+ TQString databaseDir = kapp->dirs()->saveLocation("data",
"kdevdocumentation/search");
databaseDirEdit->setURL(config->readPathEntry("databaseDir", databaseDir));
htdigbinEdit->setURL(config->readPathEntry("htdigbin", kapp->dirs()->findExe("htdig")));
@@ -74,15 +74,15 @@ DocGlobalConfigWidget::DocGlobalConfigWidget(DocumentationPart *part,
htsearchbinEdit->setURL(config->readPathEntry("htsearchbin", kapp->dirs()->findExe("htsearch")));
if (config->readBoolEntry("IsSetup", false) == false)
{
- QFileInfo fi(htsearchbinEdit->url());
+ TQFileInfo fi(htsearchbinEdit->url());
if (!fi.exists())
{
//try to guess htsearch location on Debian
- QFileInfo fi("/usr/lib/cgi-bin/htsearch");
+ TQFileInfo fi("/usr/lib/cgi-bin/htsearch");
if (!fi.exists())
{
//try to guess htsearch location on SuSE
- QFileInfo fi("/srv/www/cgi-bin/htsearch");
+ TQFileInfo fi("/srv/www/cgi-bin/htsearch");
if (fi.exists())
htsearchbinEdit->setURL("/srv/www/cgi-bin/htsearch");
}
@@ -165,12 +165,12 @@ KListView *DocGlobalConfigWidget::activeView()
void DocGlobalConfigWidget::accept()
{
//write catalog settings
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
(*it)->saveCatalogConfiguration( m_View );
//@todo: take restrictions into account
- (*it)->reinit(m_widget->contents(), m_widget->index(), QStringList());
+ (*it)->reinit(m_widget->contents(), m_widget->index(), TQStringList());
}
KConfig *config = m_part->config();
@@ -182,17 +182,17 @@ void DocGlobalConfigWidget::accept()
config->writePathEntry("htsearchbin", DocUtils::envURL(htsearchbinEdit));
//write full text search locations file
- QString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
- QFile f(ftsLocationsFile);
- QStringList locs;
+ TQString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
+ TQFile f(ftsLocationsFile);
+ TQStringList locs;
if (f.open(IO_ReadWrite | IO_Truncate))
{
- QTextStream str(&f);
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ TQTextStream str(&f);
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++ it)
{
- QStringList app = (*it)->fullTextSearchLocations();
- for (QStringList::const_iterator it2 = app.constBegin();
+ TQStringList app = (*it)->fullTextSearchLocations();
+ for (TQStringList::const_iterator it2 = app.constBegin();
it2 != app.constEnd(); ++it2)
{
if (!locs.contains(*it2))
diff --git a/parts/documentation/docglobalconfigwidget.h b/parts/documentation/docglobalconfigwidget.h
index 41b0ba85..afef5730 100644
--- a/parts/documentation/docglobalconfigwidget.h
+++ b/parts/documentation/docglobalconfigwidget.h
@@ -22,7 +22,7 @@
#include "docglobalconfigwidgetbase.h"
-#include <qmap.h>
+#include <tqmap.h>
class DocumentationPart;
class DocumentationWidget;
@@ -34,7 +34,7 @@ class DocGlobalConfigWidget : public DocGlobalConfigWidgetBase
Q_OBJECT
public:
DocGlobalConfigWidget(DocumentationPart *part, DocumentationWidget *widget,
- QWidget *parent = 0, const char *name = 0, WFlags fl = 0);
+ TQWidget *parent = 0, const char *name = 0, WFlags fl = 0);
~DocGlobalConfigWidget();
/*$PUBLIC_FUNCTIONS$*/
diff --git a/parts/documentation/docprojectconfigwidget.cpp b/parts/documentation/docprojectconfigwidget.cpp
index 90950a80..a37ad5cb 100644
--- a/parts/documentation/docprojectconfigwidget.cpp
+++ b/parts/documentation/docprojectconfigwidget.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "docprojectconfigwidget.h"
-#include <qdir.h>
-#include <qcombobox.h>
+#include <tqdir.h>
+#include <tqcombobox.h>
#include <kdebug.h>
#include <kurlrequester.h>
@@ -33,10 +33,10 @@
#include "documentation_part.h"
#include "documentation_widget.h"
-DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, QWidget *parent, const char *name)
+DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, TQWidget *parent, const char *name)
:DocProjectConfigWidgetBase(parent, name), m_part(part)
{
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
if ((*it)->hasCapability(DocumentationPlugin::ProjectDocumentation))
@@ -45,7 +45,7 @@ DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, QWidget
m_plugins[(*it)->pluginName()] = *it;
}
}
- QString projectDocSystem = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docsystem");
+ TQString projectDocSystem = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docsystem");
bool hasProjectDoc = false;
for (int i = 0; i < docSystemCombo->count(); ++i)
@@ -67,7 +67,7 @@ DocProjectConfigWidget::DocProjectConfigWidget(DocumentationPart *part, QWidget
manualURL->setURL(DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/usermanualurl"));
}
-void DocProjectConfigWidget::changeDocSystem(const QString &text)
+void DocProjectConfigWidget::changeDocSystem(const TQString &text)
{
if (text.isEmpty())
return;
@@ -79,9 +79,9 @@ void DocProjectConfigWidget::changeDocSystem(const QString &text)
catalogURL->setMode(plugin->catalogLocatorProps().first);
catalogURL->setFilter(plugin->catalogLocatorProps().second);
- QString projectDocURL = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docurl");
+ TQString projectDocURL = DomUtil::readEntry(*(m_part->projectDom()), "/kdevdocumentation/projectdoc/docurl");
if (!projectDocURL.isEmpty())
- projectDocURL = QDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + projectDocURL);
+ projectDocURL = TQDir::cleanDirPath(m_part->project()->projectDirectory() + "/" + projectDocURL);
catalogURL->setURL(projectDocURL);
catalogURL->setEnabled(true);
@@ -104,7 +104,7 @@ void DocProjectConfigWidget::accept()
delete m_part->m_userManualPlugin;
m_part->m_userManualPlugin = 0;
}
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_part->m_plugins.constBegin();
it != m_part->m_plugins.constEnd(); ++it)
{
if ((*it)->hasCapability(DocumentationPlugin::ProjectUserManual))
diff --git a/parts/documentation/docprojectconfigwidget.h b/parts/documentation/docprojectconfigwidget.h
index df64f31b..c5d904b5 100644
--- a/parts/documentation/docprojectconfigwidget.h
+++ b/parts/documentation/docprojectconfigwidget.h
@@ -28,14 +28,14 @@ class DocumentationPlugin;
class DocProjectConfigWidget: public DocProjectConfigWidgetBase {
Q_OBJECT
public:
- DocProjectConfigWidget(DocumentationPart *part, QWidget *parent = 0, const char *name = 0);
+ DocProjectConfigWidget(DocumentationPart *part, TQWidget *parent = 0, const char *name = 0);
public slots:
- virtual void changeDocSystem(const QString &text);
+ virtual void changeDocSystem(const TQString &text);
virtual void accept();
private:
DocumentationPart *m_part;
- QMap<QString, DocumentationPlugin*> m_plugins;
+ TQMap<TQString, DocumentationPlugin*> m_plugins;
};
#endif
diff --git a/parts/documentation/documentation_part.cpp b/parts/documentation/documentation_part.cpp
index 9e978f09..32e57d9e 100644
--- a/parts/documentation/documentation_part.cpp
+++ b/parts/documentation/documentation_part.cpp
@@ -21,13 +21,13 @@
#include <unistd.h>
-#include <qtimer.h>
-#include <qdir.h>
-#include <qwhatsthis.h>
-#include <qlayout.h>
-#include <qpopupmenu.h>
-#include <qtabwidget.h>
-#include <qapplication.h>
+#include <tqtimer.h>
+#include <tqdir.h>
+#include <tqwhatsthis.h>
+#include <tqlayout.h>
+#include <tqpopupmenu.h>
+#include <tqtabwidget.h>
+#include <tqapplication.h>
#include <kapplication.h>
#include <dcopclient.h>
@@ -76,7 +76,7 @@ static const KDevPluginInfo data("kdevdocumentation");
typedef KDevGenericFactory<DocumentationPart> DocumentationFactory;
K_EXPORT_COMPONENT_FACTORY( libkdevdocumentation, DocumentationFactory( data ) )
-DocumentationPart::DocumentationPart(QObject *parent, const char *name, const QStringList& )
+DocumentationPart::DocumentationPart(TQObject *parent, const char *name, const TQStringList& )
:KDevPlugin(&data, parent, name ? name : "DocumentationPart" ),
m_projectDocumentationPlugin(0), m_userManualPlugin(0), m_hasIndex(false)
{
@@ -86,17 +86,17 @@ DocumentationPart::DocumentationPart(QObject *parent, const char *name, const QS
m_configProxy = new ConfigWidgetProxy(core());
m_configProxy->createGlobalConfigPage(i18n("Documentation"), GLOBALDOC_OPTIONS, info()->icon() );
m_configProxy->createProjectConfigPage(i18n("Project Documentation"), PROJECTDOC_OPTIONS, info()->icon() );
- connect(m_configProxy, SIGNAL(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int )), this, SLOT(insertConfigWidget(const KDialogBase*, QWidget*, unsigned int)));
- connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)));
- connect(core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()));
- connect(core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()));
+ connect(m_configProxy, TQT_SIGNAL(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int )), this, TQT_SLOT(insertConfigWidget(const KDialogBase*, TQWidget*, unsigned int)));
+ connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)));
+ connect(core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()));
+ connect(core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()));
m_widget = new DocumentationWidget(this);
m_widget->setIcon(SmallIcon( info()->icon() ));
m_widget->setCaption(i18n("Documentation"));
- QWhatsThis::add(m_widget, i18n("<b>Documentation browser</b><p>"
+ TQWhatsThis::add(m_widget, i18n("<b>Documentation browser</b><p>"
"The documentation browser gives access to various "
"documentation sources (Qt DCF, Doxygen, KDoc, KDevelopTOC and DevHelp "
"documentation) and the KDevelop manuals. It also provides documentation index "
@@ -107,7 +107,7 @@ DocumentationPart::DocumentationPart(QObject *parent, const char *name, const QS
setupActions();
- QTimer::singleShot(0, this, SLOT(init()));
+ TQTimer::singleShot(0, this, TQT_SLOT(init()));
new KDevDocumentationIface(this);
}
@@ -125,8 +125,8 @@ DocumentationPart::~DocumentationPart()
void DocumentationPart::loadDocumentationPlugins()
{
KTrader::OfferList docPluginOffers =
- KTrader::self()->query(QString::fromLatin1("KDevelop/DocumentationPlugins"),
- QString("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION));
+ KTrader::self()->query(TQString::fromLatin1("KDevelop/DocumentationPlugins"),
+ TQString("[X-KDevelop-Version] == %1").arg(KDEVELOP_PLUGIN_VERSION));
KTrader::OfferList::ConstIterator serviceIt = docPluginOffers.begin();
for ( ; serviceIt != docPluginOffers.end(); ++serviceIt )
@@ -139,14 +139,14 @@ void DocumentationPart::loadDocumentationPlugins()
int error;
DocumentationPlugin *docPlugin = KParts::ComponentFactory
::createInstanceFromService<DocumentationPlugin>(docPluginService, 0,
- docPluginService->name().latin1(), QStringList(), &error);
+ docPluginService->name().latin1(), TQStringList(), &error);
if (!docPlugin)
kdDebug() << " failed to create doc plugin " << docPluginService->name() << endl;
else
{
kdDebug() << " success" << endl;
docPlugin->init(m_widget->contents());
- connect(this, SIGNAL(indexSelected(IndexBox* )), docPlugin, SLOT(createIndex(IndexBox* )));
+ connect(this, TQT_SIGNAL(indexSelected(IndexBox* )), docPlugin, TQT_SLOT(createIndex(IndexBox* )));
m_plugins.append(docPlugin);
}
}
@@ -156,28 +156,28 @@ void DocumentationPart::emitIndexSelected(IndexBox *indexBox)
{
if (!m_hasIndex)
{
- QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
+ TQApplication::setOverrideCursor(TQCursor(Qt::WaitCursor));
emit indexSelected(indexBox);
indexBox->fill();
m_hasIndex = true;
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
}
-void DocumentationPart::insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo)
+void DocumentationPart::insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo)
{
switch (pageNo)
{
case GLOBALDOC_OPTIONS:
{
DocGlobalConfigWidget *w1 = new DocGlobalConfigWidget(this, m_widget, page, "doc config widget");
- connect(dlg, SIGNAL(okClicked()), w1, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w1, TQT_SLOT(accept()));
break;
}
case PROJECTDOC_OPTIONS:
{
DocProjectConfigWidget *w1 = new DocProjectConfigWidget(this, page, "doc project config");
- connect(dlg, SIGNAL(okClicked()), w1, SLOT(accept()));
+ connect(dlg, TQT_SIGNAL(okClicked()), w1, TQT_SLOT(accept()));
break;
}
}
@@ -194,12 +194,12 @@ bool DocumentationPart::configure(int page)
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, m_widget,
"docsettings dialog");
- QVBoxLayout *l = new QVBoxLayout(dlg.plainPage(), 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(dlg.plainPage(), 0, 0);
DocGlobalConfigWidget *w1 = new DocGlobalConfigWidget(this, m_widget, dlg.plainPage());
l->addWidget(w1);
w1->docTab->setCurrentPage(page);
- connect(&dlg, SIGNAL(okClicked()), w1, SLOT(accept()));
- return (dlg.exec() == QDialog::Accepted);
+ connect(&dlg, TQT_SIGNAL(okClicked()), w1, TQT_SLOT(accept()));
+ return (dlg.exec() == TQDialog::Accepted);
}
void DocumentationPart::setupActions()
@@ -210,7 +210,7 @@ void DocumentationPart::setupActions()
KAction *action;
action = new KAction(i18n("&Search in Documentation..."), CTRL+ALT+Key_S,
- this, SLOT(searchInDocumentation()),
+ this, TQT_SLOT(searchInDocumentation()),
actionCollection(), "help_search_in_doc" );
action->setToolTip(i18n("Full text search in the documentation"));
action->setWhatsThis(i18n("<b>Search in documentation</b><p>"
@@ -221,7 +221,7 @@ void DocumentationPart::setupActions()
"configuration dialog of the documentation plugin."));
action = new KAction(i18n("&Look in Documentation Index..."), CTRL+ALT+Key_I,
- this, SLOT(lookInDocumentationIndex()),
+ this, TQT_SLOT(lookInDocumentationIndex()),
actionCollection(), "help_look_in_index" );
action->setToolTip(i18n("Look in the documentation index"));
action->setWhatsThis(i18n("<b>Look in documentation index</b><p>"
@@ -230,19 +230,19 @@ void DocumentationPart::setupActions()
"the documentation index."));
action = new KAction(i18n("Man Page..."), 0,
- this, SLOT(manPage()),
+ this, TQT_SLOT(manPage()),
actionCollection(), "help_manpage" );
action->setToolTip(i18n("Show a manpage"));
action->setWhatsThis(i18n("<b>Show a manpage</b><p>Opens a man page using embedded viewer."));
action = new KAction(i18n("Info Page..."), 0,
- this, SLOT(infoPage()),
+ this, TQT_SLOT(infoPage()),
actionCollection(), "help_infopage");
action->setToolTip(i18n("Show an infopage"));
action->setWhatsThis(i18n("<b>Show an infopage</b><p>Opens an info page using embedded viewer."));
action = new KAction(i18n("Find Documentation..."), 0,
- this, SLOT(findInDocumentation()),
+ this, TQT_SLOT(findInDocumentation()),
actionCollection(), "help_find_documentation");
action->setToolTip(i18n("Find Documentation"));
action->setWhatsThis(i18n("<b>Find documentation</b><p>"
@@ -252,14 +252,14 @@ void DocumentationPart::setupActions()
"Google, etc."));
}
-void DocumentationPart::emitBookmarkLocation(const QString &title, const KURL &url)
+void DocumentationPart::emitBookmarkLocation(const TQString &title, const KURL &url)
{
emit bookmarkLocation(title, url);
}
void DocumentationPart::searchInDocumentation()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( word.isEmpty() )
{
@@ -274,7 +274,7 @@ void DocumentationPart::searchInDocumentation()
else
{
if ( isAssistantUsed() )
- callAssistant ( "KDevDocumentation", "searchInDocumentation(QString)", word );
+ callAssistant ( "KDevDocumentation", "searchInDocumentation(TQString)", word );
else
{
mainWindow()->raiseView ( m_widget );
@@ -283,7 +283,7 @@ void DocumentationPart::searchInDocumentation()
}
}
-void DocumentationPart::searchInDocumentation(const QString &term)
+void DocumentationPart::searchInDocumentation(const TQString &term)
{
mainWindow()->raiseView(m_widget);
m_widget->searchInDocumentation(term);
@@ -292,14 +292,14 @@ void DocumentationPart::searchInDocumentation(const QString &term)
void DocumentationPart::contextSearchInDocumentation()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "searchInDocumentation(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "searchInDocumentation(TQString)", m_contextStr);
else
searchInDocumentation(m_contextStr);
}
void DocumentationPart::manPage()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( isAssistantUsed() )
{
@@ -309,13 +309,13 @@ void DocumentationPart::manPage()
}
else
{
- callAssistant ( "KDevDocumentation", "manPage(QString)", word );
+ callAssistant ( "KDevDocumentation", "manPage(TQString)", word );
}
}
else
{
bool ok;
- QString manpage = KInputDialog::getText ( i18n ( "Show Manual Page" ), i18n ( "Show manpage on:" ), word, &ok, 0 );
+ TQString manpage = KInputDialog::getText ( i18n ( "Show Manual Page" ), i18n ( "Show manpage on:" ), word, &ok, 0 );
if ( ok && !manpage.isEmpty() )
manPage ( manpage );
}
@@ -323,7 +323,7 @@ void DocumentationPart::manPage()
void DocumentationPart::infoPage()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( isAssistantUsed() )
{
@@ -333,34 +333,34 @@ void DocumentationPart::infoPage()
}
else
{
- callAssistant ( "KDevDocumentation", "infoPage(QString)", word );
+ callAssistant ( "KDevDocumentation", "infoPage(TQString)", word );
}
}
else
{
bool ok;
- QString infopage = KInputDialog::getText ( i18n ( "Show Info Page" ), i18n ( "Show infopage on:" ), word, &ok, 0 );
+ TQString infopage = KInputDialog::getText ( i18n ( "Show Info Page" ), i18n ( "Show infopage on:" ), word, &ok, 0 );
if ( ok && !infopage.isEmpty() )
infoPage ( infopage );
}
}
-void DocumentationPart::manPage(const QString &term)
+void DocumentationPart::manPage(const TQString &term)
{
- QString url = QString::fromLatin1("man:/%1").arg(term);
+ TQString url = TQString::fromLatin1("man:/%1").arg(term);
partController()->showDocument(KURL(url));
}
-void DocumentationPart::infoPage(const QString &term)
+void DocumentationPart::infoPage(const TQString &term)
{
- QString url = QString::fromLatin1("info:/%1").arg(term);
+ TQString url = TQString::fromLatin1("info:/%1").arg(term);
partController()->showDocument(KURL(url));
}
void DocumentationPart::contextManPage()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "manPage(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "manPage(TQString)", m_contextStr);
else
manPage(m_contextStr);
}
@@ -368,7 +368,7 @@ void DocumentationPart::contextManPage()
void DocumentationPart::contextInfoPage()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "infoPage(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "infoPage(TQString)", m_contextStr);
else
infoPage(m_contextStr);
}
@@ -376,14 +376,14 @@ void DocumentationPart::contextInfoPage()
void DocumentationPart::contextFindDocumentation()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "findInFinder(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "findInFinder(TQString)", m_contextStr);
else
findInDocumentation(m_contextStr);
}
void DocumentationPart::findInDocumentation()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( word.isEmpty() )
{
@@ -398,7 +398,7 @@ void DocumentationPart::findInDocumentation()
else
{
if ( isAssistantUsed() )
- callAssistant ( "KDevDocumentation", "findInFinder(QString)", word );
+ callAssistant ( "KDevDocumentation", "findInFinder(TQString)", word );
else
{
mainWindow()->raiseView ( m_widget );
@@ -407,7 +407,7 @@ void DocumentationPart::findInDocumentation()
}
}
-void DocumentationPart::findInDocumentation(const QString &term)
+void DocumentationPart::findInDocumentation(const TQString &term)
{
mainWindow()->raiseView(m_widget);
m_widget->findInDocumentation(term);
@@ -415,7 +415,7 @@ void DocumentationPart::findInDocumentation(const QString &term)
void DocumentationPart::lookInDocumentationIndex()
{
- QString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString word = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( word.isEmpty() )
{
@@ -430,7 +430,7 @@ void DocumentationPart::lookInDocumentationIndex()
else
{
if ( isAssistantUsed() )
- callAssistant ( "KDevDocumentation", "lookupInIndex(QString)", word );
+ callAssistant ( "KDevDocumentation", "lookupInIndex(TQString)", word );
else
{
mainWindow()->raiseView ( m_widget );
@@ -439,7 +439,7 @@ void DocumentationPart::lookInDocumentationIndex()
}
}
-void DocumentationPart::lookInDocumentationIndex(const QString &term)
+void DocumentationPart::lookInDocumentationIndex(const TQString &term)
{
mainWindow()->raiseView(m_widget);
m_widget->lookInDocumentationIndex(term);
@@ -448,25 +448,25 @@ void DocumentationPart::lookInDocumentationIndex(const QString &term)
void DocumentationPart::contextLookInDocumentationIndex()
{
if (isAssistantUsed())
- callAssistant("KDevDocumentation", "lookupInIndex(QString)", m_contextStr);
+ callAssistant("KDevDocumentation", "lookupInIndex(TQString)", m_contextStr);
else
lookInDocumentationIndex(m_contextStr);
}
-void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
+void DocumentationPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
if (context->hasType(Context::EditorContext))
{
const EditorContext *econtext = static_cast<const EditorContext*>(context);
- QString ident = econtext->currentWord();
+ TQString ident = econtext->currentWord();
if (!ident.isEmpty())
{
m_contextStr = ident;
- QString squeezed = KStringHandler::csqueeze(m_contextStr, 30);
+ TQString squeezed = KStringHandler::csqueeze(m_contextStr, 30);
int id = -1;
if (hasContextFeature(Finder)) {
id = popup->insertItem(i18n("Find Documentation: %1").arg(squeezed),
- this, SLOT(contextFindDocumentation()));
+ this, TQT_SLOT(contextFindDocumentation()));
popup->setWhatsThis(id, i18n("<b>Find documentation</b><p>"
"Opens the documentation finder tab and searches "
"all possible sources of documentation like "
@@ -475,7 +475,7 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
}
if (hasContextFeature(IndexLookup)) {
id = popup->insertItem(i18n("Look in Documentation Index: %1").arg(squeezed),
- this, SLOT(contextLookInDocumentationIndex()));
+ this, TQT_SLOT(contextLookInDocumentationIndex()));
popup->setWhatsThis(id, i18n("<b>Look in documentation index</b><p>"
"Opens the documentation index tab. It allows "
"a term to be entered which will be looked for in "
@@ -483,7 +483,7 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
}
if (hasContextFeature(FullTextSearch)) {
id = popup->insertItem(i18n("Search in Documentation: %1").arg(squeezed),
- this, SLOT(contextSearchInDocumentation()));
+ this, TQT_SLOT(contextSearchInDocumentation()));
popup->setWhatsThis(id, i18n("<b>Search in documentation</b><p>Searches "
"for a term under the cursor in "
"the documentation. For this to work, "
@@ -492,12 +492,12 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
}
if (hasContextFeature(GotoMan)) {
id = popup->insertItem(i18n("Goto Manpage: %1").arg(squeezed),
- this, SLOT(contextManPage()));
+ this, TQT_SLOT(contextManPage()));
popup->setWhatsThis(id, i18n("<b>Goto manpage</b><p>Tries to open a man page for the term under the cursor."));
}
if (hasContextFeature(GotoInfo)) {
id = popup->insertItem( i18n("Goto Infopage: %1").arg(squeezed),
- this, SLOT(contextInfoPage()) );
+ this, TQT_SLOT(contextInfoPage()) );
popup->setWhatsThis(id, i18n("<b>Goto infopage</b><p>Tries to open an info page for the term under the cursor."));
}
if (id != -1)
@@ -509,7 +509,7 @@ void DocumentationPart::contextMenu(QPopupMenu *popup, const Context *context)
bool DocumentationPart::hasContextFeature(ContextFeature feature)
{
KConfig *config = DocumentationFactory::instance()->config();
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("Context Features");
switch (feature)
{
@@ -536,9 +536,9 @@ bool DocumentationPart::hasContextFeature(ContextFeature feature)
void DocumentationPart::setContextFeature(ContextFeature feature, bool b)
{
KConfig *config = DocumentationFactory::instance()->config();
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("Context Features");
- QString key;
+ TQString key;
switch (feature)
{
case Finder:
@@ -564,13 +564,13 @@ void DocumentationPart::setContextFeature(ContextFeature feature, bool b)
void DocumentationPart::projectOpened()
{
- QString projectDocSystem = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docsystem");
- QString projectDocURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docurl");
+ TQString projectDocSystem = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docsystem");
+ TQString projectDocURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docurl");
if (!projectDocURL.isEmpty())
- projectDocURL = QDir::cleanDirPath(project()->projectDirectory() + "/" + projectDocURL);
- QString userManualURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/usermanualurl");
+ projectDocURL = TQDir::cleanDirPath(project()->projectDirectory() + "/" + projectDocURL);
+ TQString userManualURL = DomUtil::readEntry(*(projectDom()), "/kdevdocumentation/projectdoc/usermanualurl");
- for (QValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin();
+ for (TQValueList<DocumentationPlugin*>::const_iterator it = m_plugins.constBegin();
it != m_plugins.constEnd(); ++it)
{
if ((*it)->hasCapability(DocumentationPlugin::ProjectDocumentation) &&
@@ -604,7 +604,7 @@ void DocumentationPart::saveProjectDocumentationInfo()
{
DomUtil::writeEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docsystem", m_projectDocumentationPlugin->pluginName());
- QString relPath = URLUtil::extractPathNameRelative(project()->projectDirectory(),
+ TQString relPath = URLUtil::extractPathNameRelative(project()->projectDirectory(),
m_projectDocumentationPlugin->catalogURL());
DomUtil::writeEntry(*(projectDom()), "/kdevdocumentation/projectdoc/docurl", relPath);
}
@@ -619,21 +619,21 @@ void DocumentationPart::saveProjectDocumentationInfo()
DomUtil::writeEntry(*(projectDom()), "/kdevdocumentation/projectdoc/usermanualurl", "");
}
-QCString DocumentationPart::startAssistant()
+TQCString DocumentationPart::startAssistant()
{
- static QCString lastAssistant = "";
+ static TQCString lastAssistant = "";
if (!lastAssistant.isEmpty() && KApplication::dcopClient()->isApplicationRegistered(lastAssistant))
return lastAssistant;
const char *function = 0;
- QString app = "kdevassistant";
- function = "start_service_by_desktop_name(QString,QStringList)";
- QStringList URLs;
+ TQString app = "kdevassistant";
+ function = "start_service_by_desktop_name(TQString,TQStringList)";
+ TQStringList URLs;
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << app << URLs;
if (!KApplication::dcopClient()->call("klauncher", "klauncher", function, data, replyType, replyData))
@@ -643,7 +643,7 @@ QCString DocumentationPart::startAssistant()
}
else
{
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
if ( replyType != "serviceResult" )
{
@@ -651,8 +651,8 @@ QCString DocumentationPart::startAssistant()
lastAssistant = "";
}
int result;
- QCString dcopName;
- QString error;
+ TQCString dcopName;
+ TQString error;
reply >> result >> dcopName >> error;
if (result != 0)
{
@@ -692,40 +692,40 @@ void DocumentationPart::setAssistantUsed(bool b)
config->writeEntry("UseAssistant", isAssistantUsed());
}
-void DocumentationPart::activateAssistantWindow(const QCString &ref)
+void DocumentationPart::activateAssistantWindow(const TQCString &ref)
{
kdDebug() << "DocumentationPart::activateAssistantWindow" << endl;
- QByteArray data, replyData;
- QCString replyType;
+ TQByteArray data, replyData;
+ TQCString replyType;
if (KApplication::dcopClient()->call(ref, "MainWindow", "getWinID()", data, replyType, replyData))
{
kdDebug() << " call successful " << endl;
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
int winId;
reply >> winId;
kdDebug() << "Win ID: " << winId << endl;
KWin::forceActiveWindow(winId);
- KApplication::dcopClient()->send(ref, "MainWindow", "show()", QByteArray());
+ KApplication::dcopClient()->send(ref, "MainWindow", "show()", TQByteArray());
}
}
-void DocumentationPart::callAssistant(const QCString &interface, const QCString &method)
+void DocumentationPart::callAssistant(const TQCString &interface, const TQCString &method)
{
- QCString ref = startAssistant();
- QByteArray data;
+ TQCString ref = startAssistant();
+ TQByteArray data;
if (KApplication::dcopClient()->send(ref, interface, method, data))
activateAssistantWindow(ref);
else
kdDebug() << "problem communicating with: " << ref;
}
-void DocumentationPart::callAssistant(const QCString &interface, const QCString &method, const QString &dataStr)
+void DocumentationPart::callAssistant(const TQCString &interface, const TQCString &method, const TQString &dataStr)
{
- QCString ref = startAssistant();
- QByteArray data;
- QDataStream arg(data, IO_WriteOnly);
+ TQCString ref = startAssistant();
+ TQByteArray data;
+ TQDataStream arg(data, IO_WriteOnly);
arg << dataStr;
if (KApplication::dcopClient()->send(ref, interface, method, data))
activateAssistantWindow(ref);
@@ -739,7 +739,7 @@ void DocumentationPart::loadSettings()
config->setGroup("Documentation");
m_assistantUsed = config->readBoolEntry("UseAssistant", false);
- if (QString(KGlobal::instance()->aboutData()->appName()) == "kdevassistant")
+ if (TQString(KGlobal::instance()->aboutData()->appName()) == "kdevassistant")
{
int page = config->readNumEntry("LastPage", 0);
switch (page)
diff --git a/parts/documentation/documentation_part.h b/parts/documentation/documentation_part.h
index 9f08029f..a3f761ab 100644
--- a/parts/documentation/documentation_part.h
+++ b/parts/documentation/documentation_part.h
@@ -20,7 +20,7 @@
#ifndef __KDEVPART_DOCUMENTATION_H__
#define __KDEVPART_DOCUMENTATION_H__
-#include <qguardedptr.h>
+#include <tqguardedptr.h>
#include <kdevplugin.h>
@@ -45,11 +45,11 @@ class DocumentationPart : public KDevPlugin
public:
enum ContextFeature { Finder, IndexLookup, FullTextSearch, GotoMan, GotoInfo };
- DocumentationPart(QObject *parent, const char *name, const QStringList &);
+ DocumentationPart(TQObject *parent, const char *name, const TQStringList &);
~DocumentationPart();
void emitIndexSelected(IndexBox *indexBox);
- void emitBookmarkLocation(const QString &title, const KURL &url);
+ void emitBookmarkLocation(const TQString &title, const KURL &url);
bool configure(int page = 0);
bool hasContextFeature(ContextFeature feature);
@@ -60,26 +60,26 @@ public:
public slots:
void lookInDocumentationIndex();
- void lookInDocumentationIndex(const QString &term);
+ void lookInDocumentationIndex(const TQString &term);
void contextLookInDocumentationIndex();
void contextFindDocumentation();
void findInDocumentation();
- void findInDocumentation(const QString &term);
+ void findInDocumentation(const TQString &term);
void searchInDocumentation();
- void searchInDocumentation(const QString &term);
+ void searchInDocumentation(const TQString &term);
void contextSearchInDocumentation();
void manPage();
- void manPage(const QString &term);
+ void manPage(const TQString &term);
void contextManPage();
void infoPage();
- void infoPage(const QString &term);
+ void infoPage(const TQString &term);
void contextInfoPage();
void projectOpened();
void projectClosed();
signals:
void indexSelected(IndexBox *indexBox);
- void bookmarkLocation(const QString &title, const KURL &url);
+ void bookmarkLocation(const TQString &title, const KURL &url);
protected:
void loadDocumentationPlugins();
@@ -88,27 +88,27 @@ protected:
void loadSettings();
void saveProjectDocumentationInfo();
- QCString startAssistant();
- void activateAssistantWindow(const QCString &ref);
- void callAssistant(const QCString &interface, const QCString &method);
- void callAssistant(const QCString &interface, const QCString &method, const QString &dataStr);
+ TQCString startAssistant();
+ void activateAssistantWindow(const TQCString &ref);
+ void callAssistant(const TQCString &interface, const TQCString &method);
+ void callAssistant(const TQCString &interface, const TQCString &method, const TQString &dataStr);
protected slots:
- void insertConfigWidget(const KDialogBase *dlg, QWidget *page, unsigned int pageNo);
- void contextMenu(QPopupMenu *popup, const Context *context);
+ void insertConfigWidget(const KDialogBase *dlg, TQWidget *page, unsigned int pageNo);
+ void contextMenu(TQPopupMenu *popup, const Context *context);
private slots:
void init();
private:
- QGuardedPtr<DocumentationWidget> m_widget;
+ TQGuardedPtr<DocumentationWidget> m_widget;
ConfigWidgetProxy *m_configProxy;
- QValueList<DocumentationPlugin*> m_plugins;
+ TQValueList<DocumentationPlugin*> m_plugins;
ProjectDocumentationPlugin *m_projectDocumentationPlugin;
ProjectDocumentationPlugin *m_userManualPlugin;
- QString m_contextStr;
+ TQString m_contextStr;
bool m_hasIndex;
bool m_assistantUsed;
diff --git a/parts/documentation/documentation_widget.cpp b/parts/documentation/documentation_widget.cpp
index 6a19e896..90cd6234 100644
--- a/parts/documentation/documentation_widget.cpp
+++ b/parts/documentation/documentation_widget.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "documentation_widget.h"
-#include <qlayout.h>
-#include <qtoolbox.h>
+#include <tqlayout.h>
+#include <tqtoolbox.h>
#include <klineedit.h>
#include <kparts/part.h>
@@ -42,11 +42,11 @@
#include "find_documentation.h"
DocumentationWidget::DocumentationWidget(DocumentationPart *part)
- :QWidget(0, "documentation widget"), m_part(part)
+ :TQWidget(0, "documentation widget"), m_part(part)
{
- QVBoxLayout *l = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, 0);
- m_tab = new QToolBox(this);
+ m_tab = new TQToolBox(this);
l->addWidget(m_tab);
m_contents = new ContentsView(this);
@@ -64,7 +64,7 @@ DocumentationWidget::DocumentationWidget(DocumentationPart *part)
m_bookmarks = new BookmarkView(this);
m_tab->addItem(m_bookmarks, i18n("Bookmarks"));
- connect(m_tab, SIGNAL(currentChanged(int)), this, SLOT(tabChanged(int)));
+ connect(m_tab, TQT_SIGNAL(currentChanged(int)), this, TQT_SLOT(tabChanged(int)));
}
DocumentationWidget::~DocumentationWidget()
@@ -94,7 +94,7 @@ void DocumentationWidget::searchInDocumentation()
m_search->askSearchTerm();
}
-void DocumentationWidget::searchInDocumentation(const QString &term)
+void DocumentationWidget::searchInDocumentation(const TQString &term)
{
m_tab->setCurrentItem(m_search);
m_search->setSearchTerm(term);
@@ -107,7 +107,7 @@ void DocumentationWidget::lookInDocumentationIndex()
m_index->askSearchTerm();
}
-void DocumentationWidget::lookInDocumentationIndex(const QString &term)
+void DocumentationWidget::lookInDocumentationIndex(const TQString &term)
{
m_tab->setCurrentItem(m_index);
m_index->setSearchTerm(term);
@@ -115,7 +115,7 @@ void DocumentationWidget::lookInDocumentationIndex(const QString &term)
// m_index->searchInIndex();
}
-void DocumentationWidget::findInDocumentation(const QString &term)
+void DocumentationWidget::findInDocumentation(const TQString &term)
{
m_tab->setCurrentItem(m_finder);
m_finder->setSearchTerm(term);
@@ -128,7 +128,7 @@ void DocumentationWidget::findInDocumentation()
m_finder->search_term->setFocus();
}
-void DocumentationWidget::focusInEvent(QFocusEvent */*e*/)
+void DocumentationWidget::focusInEvent(TQFocusEvent */*e*/)
{
if (m_tab->currentItem())
m_tab->currentItem()->setFocus();
diff --git a/parts/documentation/documentation_widget.h b/parts/documentation/documentation_widget.h
index 0bc5fd4a..0043a78a 100644
--- a/parts/documentation/documentation_widget.h
+++ b/parts/documentation/documentation_widget.h
@@ -20,7 +20,7 @@
#ifndef __DOCUMENTATION_WIDGET_H__
#define __DOCUMENTATION_WIDGET_H__
-#include <qwidget.h>
+#include <tqwidget.h>
class FindDocumentation;
class KDevProject;
@@ -48,14 +48,14 @@ public:
public slots:
void lookInDocumentationIndex();
- void lookInDocumentationIndex(const QString &term);
+ void lookInDocumentationIndex(const TQString &term);
void searchInDocumentation();
- void searchInDocumentation(const QString &term);
+ void searchInDocumentation(const TQString &term);
void findInDocumentation();
- void findInDocumentation(const QString &term);
+ void findInDocumentation(const TQString &term);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
protected slots:
void tabChanged(int t);
@@ -67,7 +67,7 @@ private:
SearchView *m_search;
BookmarkView *m_bookmarks;
FindDocumentation *m_finder;
- QToolBox *m_tab;
+ TQToolBox *m_tab;
friend class FindDocumentation;
};
diff --git a/parts/documentation/docutils.cpp b/parts/documentation/docutils.cpp
index f0a00e4e..79fa9915 100644
--- a/parts/documentation/docutils.cpp
+++ b/parts/documentation/docutils.cpp
@@ -32,21 +32,21 @@
#include "kdevdocumentationplugin.h"
#include "documentation_part.h"
-QString DocUtils::noEnvURL(const QString &url)
+TQString DocUtils::noEnvURL(const TQString &url)
{
return KURLCompletion::replacedPath(url, true, true);
}
KURL DocUtils::noEnvURL(const KURL &url)
{
- QString replaced = KURLCompletion::replacedPath(url.url(), true, true);
+ TQString replaced = KURLCompletion::replacedPath(url.url(), true, true);
KURL kurl(replaced);
kurl.setQuery(url.query());
kurl.setRef(url.ref());
return kurl;
}
-QString DocUtils::envURL(KURLRequester *req)
+TQString DocUtils::envURL(KURLRequester *req)
{
if (req->lineEdit())
return req->lineEdit()->text();
@@ -57,12 +57,12 @@ QString DocUtils::envURL(KURLRequester *req)
}
void DocUtils::docItemPopup(DocumentationPart *part, DocumentationItem *docItem,
- const QPoint &pos, bool showBookmark, bool showSearch, int titleCol)
+ const TQPoint &pos, bool showBookmark, bool showSearch, int titleCol)
{
docItemPopup(part, docItem->text(titleCol), docItem->url(), pos, showBookmark, showSearch);
}
-void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const QPoint &pos,
+void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const TQPoint &pos,
bool showBookmark, bool showSearch)
{
//FIXME: index item can have more than one url, what to do?
@@ -72,8 +72,8 @@ void DocUtils::docItemPopup(DocumentationPart *part, IndexItem *docItem, const Q
docItemPopup(part, docItem->text(), url, pos, showBookmark, showSearch);
}
-void DocUtils::docItemPopup(DocumentationPart *part, const QString &title, const KURL &url,
- const QPoint &pos, bool showBookmark, bool showSearch)
+void DocUtils::docItemPopup(DocumentationPart *part, const TQString &title, const KURL &url,
+ const TQPoint &pos, bool showBookmark, bool showSearch)
{
KPopupMenu menu;
menu.insertTitle(i18n("Documentation"));
@@ -87,7 +87,7 @@ void DocUtils::docItemPopup(DocumentationPart *part, const QString &title, const
if (showSearch)
{
menu.insertSeparator();
- menu.insertItem(QString("%1: %2").arg(i18n("Search")).arg(KStringHandler::csqueeze(title,20)), 4);
+ menu.insertItem(TQString("%1: %2").arg(i18n("Search")).arg(KStringHandler::csqueeze(title,20)), 4);
}
switch (menu.exec(pos))
diff --git a/parts/documentation/docutils.h b/parts/documentation/docutils.h
index b4870809..e4d93e1d 100644
--- a/parts/documentation/docutils.h
+++ b/parts/documentation/docutils.h
@@ -20,7 +20,7 @@
#ifndef DOC_UTILS_H
#define DOC_UTILS_H
-#include <qstring.h>
+#include <tqstring.h>
class KURLRequester;
class KPopupMenu;
@@ -34,18 +34,18 @@ namespace DocUtils{
/**Returns an url selected in KURLRequester but does not
resolve environment variables.*/
-QString envURL(KURLRequester *req);
+TQString envURL(KURLRequester *req);
/**Resolves environment variables in url.*/
-QString noEnvURL(const QString &url);
+TQString noEnvURL(const TQString &url);
/**Resolves environment variables in url.*/
KURL noEnvURL(const KURL &url);
-void docItemPopup(DocumentationPart *part, DocumentationItem *docItem, const QPoint &pos,
+void docItemPopup(DocumentationPart *part, DocumentationItem *docItem, const TQPoint &pos,
bool showBookmark = false, bool showSearch = false, int titleCol = 0);
-void docItemPopup(DocumentationPart *part, IndexItem *docItem, const QPoint &pos,
+void docItemPopup(DocumentationPart *part, IndexItem *docItem, const TQPoint &pos,
bool showBookmark = false, bool showSearch = false);
-void docItemPopup(DocumentationPart *part, const QString &title, const KURL &url,
- const QPoint &pos, bool showBookmark = false, bool showSearch = false);
+void docItemPopup(DocumentationPart *part, const TQString &title, const KURL &url,
+ const TQPoint &pos, bool showBookmark = false, bool showSearch = false);
}
#endif
diff --git a/parts/documentation/editcatalogdlg.cpp b/parts/documentation/editcatalogdlg.cpp
index 9e83a7ba..8bdc19d5 100644
--- a/parts/documentation/editcatalogdlg.cpp
+++ b/parts/documentation/editcatalogdlg.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include "editcatalogdlg.h"
-#include <qlabel.h>
+#include <tqlabel.h>
#include <klineedit.h>
#include <kurlrequester.h>
@@ -28,7 +28,7 @@
#include "docutils.h"
#include "kdevdocumentationplugin.h"
-EditCatalogDlg::EditCatalogDlg(DocumentationPlugin *plugin, QWidget* parent,
+EditCatalogDlg::EditCatalogDlg(DocumentationPlugin *plugin, TQWidget* parent,
const char* name, bool modal, WFlags fl)
:EditCatalogBase(parent,name, modal,fl), m_plugin(plugin)
{
@@ -46,32 +46,32 @@ EditCatalogDlg::~EditCatalogDlg()
}
/*$SPECIALIZATION$*/
-void EditCatalogDlg::locationURLChanged(const QString &text)
+void EditCatalogDlg::locationURLChanged(const TQString &text)
{
titleEdit->setText(m_plugin->catalogTitle(DocUtils::noEnvURL(text)));
}
void EditCatalogDlg::accept()
{
- QDialog::accept();
+ TQDialog::accept();
}
-QString EditCatalogDlg::title() const
+TQString EditCatalogDlg::title() const
{
return titleEdit->text();
}
-QString EditCatalogDlg::url() const
+TQString EditCatalogDlg::url() const
{
return DocUtils::envURL(locationURL);
}
-void EditCatalogDlg::setTitle(const QString &title)
+void EditCatalogDlg::setTitle(const TQString &title)
{
titleEdit->setText(title);
}
-void EditCatalogDlg::setURL(const QString &url)
+void EditCatalogDlg::setURL(const TQString &url)
{
locationURL->setURL(url);
}
diff --git a/parts/documentation/editcatalogdlg.h b/parts/documentation/editcatalogdlg.h
index 7d31244c..f8f1fabf 100644
--- a/parts/documentation/editcatalogdlg.h
+++ b/parts/documentation/editcatalogdlg.h
@@ -29,18 +29,18 @@ class EditCatalogDlg : public EditCatalogBase
Q_OBJECT
public:
EditCatalogDlg(DocumentationPlugin *plugin,
- QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+ TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0);
~EditCatalogDlg();
/*$PUBLIC_FUNCTIONS$*/
- QString title() const;
- void setTitle(const QString &title);
- QString url() const;
- void setURL(const QString &url);
+ TQString title() const;
+ void setTitle(const TQString &title);
+ TQString url() const;
+ void setURL(const TQString &url);
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void locationURLChanged(const QString &text);
+ virtual void locationURLChanged(const TQString &text);
protected:
/*$PROTECTED_FUNCTIONS$*/
diff --git a/parts/documentation/find_documentation.cpp b/parts/documentation/find_documentation.cpp
index 1ca9e81a..782ef467 100644
--- a/parts/documentation/find_documentation.cpp
+++ b/parts/documentation/find_documentation.cpp
@@ -20,10 +20,10 @@
#include "find_documentation.h"
#include <stdlib.h>
-#include <qcheckbox.h>
-#include <qheader.h>
-#include <qapplication.h>
-#include <qstringlist.h>
+#include <tqcheckbox.h>
+#include <tqheader.h>
+#include <tqapplication.h>
+#include <tqstringlist.h>
#include <klineedit.h>
#include <kprocess.h>
@@ -46,20 +46,20 @@ FindDocumentation::FindDocumentation(DocumentationWidget* parent, const char* na
man_item(0), info_item(0), index_item(0), google_item(0), contents_item(0),
last_item(0), m_widget(parent)
{
- QWidget* tmp = QApplication::desktop();
+ TQWidget* tmp = TQApplication::desktop();
setGeometry(tmp->width()/2 - width()/2, tmp->height()/2 - height()/2, width(), height());
proc_man = new KProcess( this );
proc_info = new KProcess( this );
- connect( proc_man, SIGNAL(processExited( KProcess* )),
- this, SLOT(procManExited( KProcess* )) );
- connect( proc_man, SIGNAL(receivedStdout( KProcess*, char*, int)),
- this, SLOT(procManReadStdout( KProcess*, char*, int)) );
+ connect( proc_man, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(procManExited( KProcess* )) );
+ connect( proc_man, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)),
+ this, TQT_SLOT(procManReadStdout( KProcess*, char*, int)) );
- connect( proc_info, SIGNAL(processExited( KProcess* )),
- this, SLOT(procInfoExited( KProcess* )) );
- connect( proc_info, SIGNAL(receivedStdout( KProcess*, char*, int)),
- this, SLOT(procInfoReadStdout( KProcess*, char*, int)) );
+ connect( proc_info, TQT_SIGNAL(processExited( KProcess* )),
+ this, TQT_SLOT(procInfoExited( KProcess* )) );
+ connect( proc_info, TQT_SIGNAL(receivedStdout( KProcess*, char*, int)),
+ this, TQT_SLOT(procInfoReadStdout( KProcess*, char*, int)) );
result_list->header()->hide();
result_list->setSorting(-1);
@@ -72,7 +72,7 @@ FindDocumentation::~FindDocumentation()
}
/*$SPECIALIZATION$*/
-void FindDocumentation::buttonPressedOnItem( int button, QListViewItem * item, const QPoint & pos, int // c
+void FindDocumentation::buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -84,7 +84,7 @@ void FindDocumentation::buttonPressedOnItem( int button, QListViewItem * item, c
DocUtils::docItemPopup(m_widget->part(), docItem->text(0), docItem->url(), pos, true, false);
}
-void FindDocumentation::clickOnItem( QListViewItem * item )
+void FindDocumentation::clickOnItem( TQListViewItem * item )
{
if(!item)
return;
@@ -106,8 +106,8 @@ void FindDocumentation::procInfoExited( KProcess* )
{
if (proc_info->normalExit() && proc_info->exitStatus() == 0)
{
- QStringList lines = QStringList::split("\n", proc_info_out);
- for( QStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
+ TQStringList lines = TQStringList::split("\n", proc_info_out);
+ for( TQStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
{
if( (*it) == "*")
break;
@@ -129,8 +129,8 @@ void FindDocumentation::procManExited( KProcess* )
{
if (proc_man->normalExit() && proc_man->exitStatus() == 0)
{
- QStringList lines = QStringList::split("\n", proc_man_out);
- for( QStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
+ TQStringList lines = TQStringList::split("\n", proc_man_out);
+ for( TQStringList::const_iterator it = lines.begin(); it != lines.end(); ++it )
{
DocumentationItem* newitem = new DocumentationItem(DocumentationItem::Document, man_item, search_term->text());
newitem->setURL(KURL("man://" + *it));
@@ -147,12 +147,12 @@ void FindDocumentation::procManExited( KProcess* )
void FindDocumentation::procInfoReadStdout( KProcess*, char* buf, int len)
{
- proc_info_out += QString::fromLatin1( buf, len );
+ proc_info_out += TQString::fromLatin1( buf, len );
}
void FindDocumentation::procManReadStdout( KProcess*, char* buf, int len)
{
- proc_man_out += QString::fromLatin1( buf, len );
+ proc_man_out += TQString::fromLatin1( buf, len );
}
void FindDocumentation::searchInInfo()
@@ -217,7 +217,7 @@ void FindDocumentation::searchInContents()
contents_item->setOpen(true);
last_item = contents_item;
- QListViewItemIterator it( m_widget->m_contents->m_view );
+ TQListViewItemIterator it( m_widget->m_contents->m_view );
while ( it.current() )
{
DocumentationItem *docItem = dynamic_cast<DocumentationItem*>(it.current());
@@ -266,7 +266,7 @@ void FindDocumentation::searchInIndex()
IndexItem::List urls = item->urls();
for (IndexItem::List::const_iterator it = urls.begin(); it != urls.end(); ++it)
{
- QString text = item->text();
+ TQString text = item->text();
if (urls.count() > 1)
text = (*it).first;
if(newitem)
@@ -299,19 +299,19 @@ void FindDocumentation::startSearch()
last_item = NULL;
first_match_found = false;
- QListViewItem* item = m_options->source_list->firstChild();
+ TQListViewItem* item = m_options->source_list->firstChild();
while ( item && ( !m_options->goto_first_match->isOn() || !first_match_found ))
{
- if ( m_options->isMan(dynamic_cast<QCheckListItem*>(item)) )
+ if ( m_options->isMan(dynamic_cast<TQCheckListItem*>(item)) )
searchInMan();
- else if ( m_options->isInfo(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isInfo(dynamic_cast<TQCheckListItem*>(item)) )
searchInInfo();
- else if ( m_options->isIndex(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isIndex(dynamic_cast<TQCheckListItem*>(item)) )
searchInIndex();
- else if ( m_options->isGoogle(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isGoogle(dynamic_cast<TQCheckListItem*>(item)) )
searchInGoogle();
- else if ( m_options->isContents(dynamic_cast<QCheckListItem*>(item)) )
+ else if ( m_options->isContents(dynamic_cast<TQCheckListItem*>(item)) )
searchInContents();
item = item->itemBelow();
@@ -325,20 +325,20 @@ void FindDocumentation::startSearch()
}
-void FindDocumentation::setSearchTerm( const QString & term )
+void FindDocumentation::setSearchTerm( const TQString & term )
{
search_term->setText(term);
}
void FindDocumentation::clickOptions()
{
- if( m_options->exec() == QDialog::Accepted )
+ if( m_options->exec() == TQDialog::Accepted )
m_options->writeOptions();
else
m_options->readOptions();
}
-void FindDocumentation::focusInEvent( QFocusEvent * // e
+void FindDocumentation::focusInEvent( TQFocusEvent * // e
)
{
search_term->setFocus();
diff --git a/parts/documentation/find_documentation.h b/parts/documentation/find_documentation.h
index c02e1249..0a9a3e0a 100644
--- a/parts/documentation/find_documentation.h
+++ b/parts/documentation/find_documentation.h
@@ -38,8 +38,8 @@ public:
public slots:
/*$PUBLIC_SLOTS$*/
- virtual void buttonPressedOnItem( int button, QListViewItem * item, const QPoint & pos, int c );
- virtual void clickOnItem( QListViewItem * item );
+ virtual void buttonPressedOnItem( int button, TQListViewItem * item, const TQPoint & pos, int c );
+ virtual void clickOnItem( TQListViewItem * item );
virtual void procInfoExited( KProcess* );
virtual void procManExited( KProcess* );
virtual void procManReadStdout( KProcess*, char*, int );
@@ -50,12 +50,12 @@ public slots:
virtual void searchInContents();
virtual void searchInIndex();
virtual void startSearch();
- virtual void setSearchTerm( const QString & term );
+ virtual void setSearchTerm( const TQString & term );
virtual void clickOptions();
protected:
/*$PROTECTED_FUNCTIONS$*/
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
protected slots:
/*$PROTECTED_SLOTS$*/
@@ -63,8 +63,8 @@ protected slots:
private:
KProcess* proc_man;
KProcess* proc_info;
- QString proc_man_out;
- QString proc_info_out;
+ TQString proc_man_out;
+ TQString proc_info_out;
KListViewItem* man_item;
KListViewItem* info_item;
KListViewItem* index_item;
diff --git a/parts/documentation/find_documentation_options.cpp b/parts/documentation/find_documentation_options.cpp
index 68f37791..df04ca81 100644
--- a/parts/documentation/find_documentation_options.cpp
+++ b/parts/documentation/find_documentation_options.cpp
@@ -19,8 +19,8 @@
***************************************************************************/
#include "find_documentation_options.h"
-#include <qheader.h>
-#include <qcheckbox.h>
+#include <tqheader.h>
+#include <tqcheckbox.h>
#include <klistview.h>
#include <klocale.h>
@@ -28,7 +28,7 @@
#include <kconfig.h>
#include <kapplication.h>
-FindDocumentationOptions::FindDocumentationOptions(QWidget* parent, const char* name, bool modal)
+FindDocumentationOptions::FindDocumentationOptions(TQWidget* parent, const char* name, bool modal)
:FindDocumentationOptionsBase(parent,name, modal),
m_man_item(0), m_info_item(0), m_index_item(0), m_google_item(0), m_contents_item(0)
{
@@ -43,7 +43,7 @@ FindDocumentationOptions::~FindDocumentationOptions()
}
/*$SPECIALIZATION$*/
-bool FindDocumentationOptions::isContents( QCheckListItem * item )
+bool FindDocumentationOptions::isContents( TQCheckListItem * item )
{
if ( item == m_contents_item && m_contents_item->isOn() )
return true;
@@ -51,7 +51,7 @@ bool FindDocumentationOptions::isContents( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isGoogle( QCheckListItem * item )
+bool FindDocumentationOptions::isGoogle( TQCheckListItem * item )
{
if ( item == m_google_item && m_google_item->isOn() )
return true;
@@ -59,7 +59,7 @@ bool FindDocumentationOptions::isGoogle( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isIndex( QCheckListItem * item )
+bool FindDocumentationOptions::isIndex( TQCheckListItem * item )
{
if ( item == m_index_item && m_index_item->isOn() )
return true;
@@ -67,7 +67,7 @@ bool FindDocumentationOptions::isIndex( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isInfo( QCheckListItem * item )
+bool FindDocumentationOptions::isInfo( TQCheckListItem * item )
{
if ( item == m_info_item && m_info_item->isOn() )
return true;
@@ -75,7 +75,7 @@ bool FindDocumentationOptions::isInfo( QCheckListItem * item )
return false;
}
-bool FindDocumentationOptions::isMan( QCheckListItem * item )
+bool FindDocumentationOptions::isMan( TQCheckListItem * item )
{
if ( item == m_man_item && m_man_item->isOn() )
return true;
@@ -100,7 +100,7 @@ void FindDocumentationOptions::sourceMoveUp()
if (source_list->currentItem() == source_list->firstChild())
return;
- QListViewItem *item = source_list->firstChild();
+ TQListViewItem *item = source_list->firstChild();
while (item->nextSibling() != source_list->currentItem())
item = item->nextSibling();
item->moveItem( source_list->currentItem());
@@ -113,7 +113,7 @@ void FindDocumentationOptions::writeOptions()
config->writeEntry("goto_first_match", goto_first_match->isChecked());
- QListViewItemIterator it( source_list );
+ TQListViewItemIterator it( source_list );
int i = 0;
while ( it.current() )
{
@@ -160,27 +160,27 @@ void FindDocumentationOptions::readOptions()
{
if( config->readPropertyEntry( "Manpage" , 0 ) == i)
{
- m_man_item = new QCheckListItem( source_list, i18n("Manual"), QCheckListItem::CheckBox );
+ m_man_item = new TQCheckListItem( source_list, i18n("Manual"), TQCheckListItem::CheckBox );
m_man_item->setOn(config->readBoolEntry( "ManpageEnabled" , true));
}
if( config->readPropertyEntry( "Info" , 1 ) == i)
{
- m_info_item = new QCheckListItem( source_list, i18n("Info"), QCheckListItem::CheckBox );
+ m_info_item = new TQCheckListItem( source_list, i18n("Info"), TQCheckListItem::CheckBox );
m_info_item->setOn(config->readBoolEntry( "InfoEnabled" , true));
}
if( config->readPropertyEntry( "Index" , 2 ) == i)
{
- m_index_item = new QCheckListItem( source_list, i18n("Index"), QCheckListItem::CheckBox );
+ m_index_item = new TQCheckListItem( source_list, i18n("Index"), TQCheckListItem::CheckBox );
m_index_item->setOn(config->readBoolEntry( "IndexEnabled" , true));
}
if( config->readPropertyEntry( "Google" , 3 ) == i)
{
- m_google_item = new QCheckListItem( source_list, i18n("Google"), QCheckListItem::CheckBox );
+ m_google_item = new TQCheckListItem( source_list, i18n("Google"), TQCheckListItem::CheckBox );
m_google_item->setOn(config->readBoolEntry( "GoogleEnabled" , false));
}
if( config->readPropertyEntry( "Contents" , 4 ) == i)
{
- m_contents_item = new QCheckListItem( source_list, i18n("Contents"), QCheckListItem::CheckBox );
+ m_contents_item = new TQCheckListItem( source_list, i18n("Contents"), TQCheckListItem::CheckBox );
m_contents_item->setOn(config->readBoolEntry( "ContentsEnabled" , false));
}
}
diff --git a/parts/documentation/find_documentation_options.h b/parts/documentation/find_documentation_options.h
index e3da05be..c67206cb 100644
--- a/parts/documentation/find_documentation_options.h
+++ b/parts/documentation/find_documentation_options.h
@@ -30,14 +30,14 @@ class FindDocumentationOptions : public FindDocumentationOptionsBase
{
Q_OBJECT
public:
- FindDocumentationOptions(QWidget* parent = 0, const char* name = 0, bool modal = FALSE);
+ FindDocumentationOptions(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE);
~FindDocumentationOptions();
/*$PUBLIC_FUNCTIONS$*/
- virtual bool isContents( QCheckListItem * item );
- virtual bool isGoogle( QCheckListItem * item );
- virtual bool isIndex( QCheckListItem * item );
- virtual bool isInfo( QCheckListItem * item );
- virtual bool isMan( QCheckListItem * item );
+ virtual bool isContents( TQCheckListItem * item );
+ virtual bool isGoogle( TQCheckListItem * item );
+ virtual bool isIndex( TQCheckListItem * item );
+ virtual bool isInfo( TQCheckListItem * item );
+ virtual bool isMan( TQCheckListItem * item );
public slots:
/*$PUBLIC_SLOTS$*/
@@ -53,11 +53,11 @@ protected slots:
/*$PROTECTED_SLOTS$*/
private:
- QCheckListItem *m_man_item;
- QCheckListItem *m_info_item;
- QCheckListItem *m_index_item;
- QCheckListItem *m_google_item;
- QCheckListItem *m_contents_item;
+ TQCheckListItem *m_man_item;
+ TQCheckListItem *m_info_item;
+ TQCheckListItem *m_index_item;
+ TQCheckListItem *m_google_item;
+ TQCheckListItem *m_contents_item;
KConfig* config;
};
diff --git a/parts/documentation/indexview.cpp b/parts/documentation/indexview.cpp
index 29f0d9d5..6a7eddcf 100644
--- a/parts/documentation/indexview.cpp
+++ b/parts/documentation/indexview.cpp
@@ -19,10 +19,10 @@
***************************************************************************/
#include "indexview.h"
-#include <qapplication.h>
-#include <qevent.h>
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqapplication.h>
+#include <tqevent.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klineedit.h>
#include <kiconloader.h>
@@ -39,24 +39,24 @@
#include "documentation_widget.h"
IndexView::IndexView(DocumentationWidget *parent, const char *name)
- :QWidget(parent, name), m_widget(parent)
+ :TQWidget(parent, name), m_widget(parent)
{
- QVBoxLayout *l = new QVBoxLayout(this, 0, 0);
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, 0);
- QHBoxLayout *hl = new QHBoxLayout(this, 0, 0);
+ TQHBoxLayout *hl = new TQHBoxLayout(this, 0, 0);
m_edit = new KLineEdit(this);
- hl->addWidget(new QLabel(m_edit, i18n("&Look for:"), this));
+ hl->addWidget(new TQLabel(m_edit, i18n("&Look for:"), this));
hl->addWidget(m_edit);
l->addLayout(hl);
m_index = new IndexBox(this);
l->addWidget(m_index);
- connect(m_index, SIGNAL(executed(QListBoxItem* )), this, SLOT(searchInIndex(QListBoxItem* )));
- connect(m_index, SIGNAL(mouseButtonPressed(int, QListBoxItem*, const QPoint& )),
- this, SLOT(itemMouseButtonPressed(int, QListBoxItem*, const QPoint& )));
- connect(m_edit, SIGNAL(returnPressed()), this, SLOT(searchInIndex()));
- connect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(showIndex(const QString&)));
+ connect(m_index, TQT_SIGNAL(executed(TQListBoxItem* )), this, TQT_SLOT(searchInIndex(TQListBoxItem* )));
+ connect(m_index, TQT_SIGNAL(mouseButtonPressed(int, TQListBoxItem*, const TQPoint& )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListBoxItem*, const TQPoint& )));
+ connect(m_edit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(searchInIndex()));
+ connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(showIndex(const TQString&)));
m_edit->installEventFilter(this);
}
@@ -71,7 +71,7 @@ void IndexView::searchInIndex()
searchInIndex(m_index->item(m_index->currentItem()));
}
-void IndexView::searchInIndex(QListBoxItem *item)
+void IndexView::searchInIndex(TQListBoxItem *item)
{
kdDebug() << "IndexView::searchInIndex" << endl;
IndexItem *indexItem = dynamic_cast<IndexItem*>(item);
@@ -92,13 +92,13 @@ void IndexView::searchInIndex(QListBoxItem *item)
}
}
-void IndexView::showIndex(const QString &term)
+void IndexView::showIndex(const TQString &term)
{
- QListBoxItem *i = m_index->firstItem();
- QString sl = term.lower();
+ TQListBoxItem *i = m_index->firstItem();
+ TQString sl = term.lower();
while (i)
{
- QString t = i->text();
+ TQString t = i->text();
if ((t.length() >= sl.length()) && (i->text().left(term.length()).lower() == sl))
{
m_index->setCurrentItem(i);
@@ -118,14 +118,14 @@ void IndexView::showIndex(const QString &term)
}*/
}
-bool IndexView::eventFilter(QObject *watched, QEvent *e)
+bool IndexView::eventFilter(TQObject *watched, TQEvent *e)
{
if (!watched || !e)
return true;
- if ((watched == m_edit) && (e->type() == QEvent::KeyPress))
+ if ((watched == m_edit) && (e->type() == TQEvent::KeyPress))
{
- QKeyEvent *ke = (QKeyEvent*)e;
+ TQKeyEvent *ke = (TQKeyEvent*)e;
if (ke->key() == Key_Up)
{
int i = m_index->currentItem();
@@ -150,17 +150,17 @@ bool IndexView::eventFilter(QObject *watched, QEvent *e)
return true;
} else if ((ke->key() == Key_Next) || (ke->key() == Key_Prior))
{
- QApplication::sendEvent(m_index, e);
+ TQApplication::sendEvent(m_index, e);
m_edit->blockSignals(true);
m_edit->setText(m_index->currentText());
m_edit->blockSignals(false);
}
}
- return QWidget::eventFilter(watched, e);
+ return TQWidget::eventFilter(watched, e);
}
-void IndexView::itemMouseButtonPressed(int button, QListBoxItem *item, const QPoint &pos)
+void IndexView::itemMouseButtonPressed(int button, TQListBoxItem *item, const TQPoint &pos)
{
if ((button != Qt::RightButton) || (!item))
return;
@@ -171,7 +171,7 @@ void IndexView::itemMouseButtonPressed(int button, QListBoxItem *item, const QPo
DocUtils::docItemPopup(m_widget->part(), docItem, pos, false, true);
}
-void IndexView::setSearchTerm(const QString &term)
+void IndexView::setSearchTerm(const TQString &term)
{
m_edit->setFocus();
m_edit->setText(term);
@@ -182,7 +182,7 @@ void IndexView::askSearchTerm( )
m_edit->setFocus();
}
-void IndexView::focusInEvent(QFocusEvent */*e*/)
+void IndexView::focusInEvent(TQFocusEvent */*e*/)
{
m_edit->setFocus();
}
diff --git a/parts/documentation/indexview.h b/parts/documentation/indexview.h
index 4a2f336a..af403891 100644
--- a/parts/documentation/indexview.h
+++ b/parts/documentation/indexview.h
@@ -20,7 +20,7 @@
#ifndef INDEXVIEW_H
#define INDEXVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
class IndexBox;
class KLineEdit;
@@ -35,22 +35,22 @@ public:
IndexView(DocumentationWidget *parent = 0, const char *name = 0);
~IndexView();
- virtual bool eventFilter(QObject *watched, QEvent *e);
+ virtual bool eventFilter(TQObject *watched, TQEvent *e);
IndexBox *indexBox() const { return m_index; }
public slots:
void searchInIndex();
- void setSearchTerm(const QString &term);
+ void setSearchTerm(const TQString &term);
void askSearchTerm();
protected slots:
- void searchInIndex(QListBoxItem *item);
- void showIndex(const QString &term);
+ void searchInIndex(TQListBoxItem *item);
+ void showIndex(const TQString &term);
- void itemMouseButtonPressed(int button, QListBoxItem *item, const QPoint &pos);
+ void itemMouseButtonPressed(int button, TQListBoxItem *item, const TQPoint &pos);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
private:
DocumentationWidget *m_widget;
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.cpp b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
index fc63d9e8..3364f71a 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.cpp
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.cpp
@@ -18,11 +18,11 @@
*/
#include "kdevdocumentationplugin.h"
-#include <qfile.h>
-#include <qpainter.h>
-#include <qstyle.h>
-#include <qheader.h>
-#include <qtextstream.h>
+#include <tqfile.h>
+#include <tqpainter.h>
+#include <tqstyle.h>
+#include <tqheader.h>
+#include <tqtextstream.h>
#include <kstandarddirs.h>
#include <kiconloader.h>
@@ -34,28 +34,28 @@
//class DocumentationItem
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent,
- const QString &name)
+ const TQString &name)
:KListViewItem(parent, name), m_type(type)
{
init();
}
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem *parent,
- const QString &name)
+ const TQString &name)
:KListViewItem(parent, name), m_type(type)
{
init();
}
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListView *parent,
- KListViewItem *after, const QString &name)
+ KListViewItem *after, const TQString &name)
:KListViewItem(parent, after, name), m_type(type)
{
init();
}
DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem * parent,
- KListViewItem * after, const QString & name )
+ KListViewItem * after, const TQString & name )
:KListViewItem(parent, after, name), m_type(type)
{
init();
@@ -64,7 +64,7 @@ DocumentationItem::DocumentationItem(DocumentationItem::Type type, KListViewItem
void DocumentationItem::init( )
{
- QString icon;
+ TQString icon;
switch (m_type)
{
@@ -90,7 +90,7 @@ void DocumentationItem::init( )
DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin,
- KListView *parent, const QString &name)
+ KListView *parent, const TQString &name)
:DocumentationItem(DocumentationItem::Catalog, parent, name), m_plugin(plugin),
isLoaded(false), isActivated(false), m_isProjectDocumentationItem(false)
{
@@ -99,7 +99,7 @@ DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin,
}
DocumentationCatalogItem::DocumentationCatalogItem(DocumentationPlugin* plugin,
- DocumentationItem *parent, const QString &name)
+ DocumentationItem *parent, const TQString &name)
:DocumentationItem(DocumentationItem::Catalog, parent, name), m_plugin(plugin),
isLoaded(false), isActivated(false), m_isProjectDocumentationItem(false)
{
@@ -146,7 +146,7 @@ void DocumentationCatalogItem::activate()
//class IndexItemProto
IndexItemProto::IndexItemProto(DocumentationPlugin *plugin, DocumentationCatalogItem *catalog,
- IndexBox *listbox, const QString &text, const QString &description)
+ IndexBox *listbox, const TQString &text, const TQString &description)
: m_listbox(listbox), m_text(text), m_description(description)
{
plugin->indexes[catalog].append(this);
@@ -161,16 +161,16 @@ IndexItemProto::~IndexItemProto()
//class IndexItem
-IndexItem::IndexItem(IndexBox *listbox, const QString &text)
- :QListBoxText(listbox, text), m_listbox(listbox)
+IndexItem::IndexItem(IndexBox *listbox, const TQString &text)
+ :TQListBoxText(listbox, text), m_listbox(listbox)
{
}
IndexItem::List IndexItem::urls() const
{
List urlList;
- QValueList<IndexItemProto*> itemProtos = m_listbox->items[text()];
- for (QValueList<IndexItemProto*>::const_iterator it = itemProtos.begin();
+ TQValueList<IndexItemProto*> itemProtos = m_listbox->items[text()];
+ for (TQValueList<IndexItemProto*>::const_iterator it = itemProtos.begin();
it != itemProtos.end(); ++it)
urlList.append(qMakePair((*it)->description(), (*it)->url()));
return urlList;
@@ -181,9 +181,9 @@ IndexItem::List IndexItem::urls() const
//class ConfigurationItem
-ConfigurationItem::ConfigurationItem(QListView *parent, DocumentationPlugin * plugin, const QString &title, const QString &url,
+ConfigurationItem::ConfigurationItem(TQListView *parent, DocumentationPlugin * plugin, const TQString &title, const TQString &url,
bool indexPossible, bool fullTextSearchPossible)
- :QCheckListItem(parent, "", QCheckListItem::CheckBox), m_title(title), m_url(url),
+ :TQCheckListItem(parent, "", TQCheckListItem::CheckBox), m_title(title), m_url(url),
m_origTitle(title), m_contents(true), m_index(false), m_fullTextSearch(false),
m_indexPossible(indexPossible), m_fullTextSearchPossible(fullTextSearchPossible),
m_docPlugin( plugin )
@@ -192,7 +192,7 @@ ConfigurationItem::ConfigurationItem(QListView *parent, DocumentationPlugin * pl
setText(4, m_url);
}
-void ConfigurationItem::paintCell(QPainter *p, const QColorGroup &cg, int column,
+void ConfigurationItem::paintCell(TQPainter *p, const TQColorGroup &cg, int column,
int width, int align)
{
if ( (column == 0) || (column == 1) || (column == 2) )
@@ -200,25 +200,25 @@ void ConfigurationItem::paintCell(QPainter *p, const QColorGroup &cg, int column
if ( !p )
return;
- QListView *lv = listView();
+ TQListView *lv = listView();
if ( !lv )
return;
const BackgroundMode bgmode = lv->viewport()->backgroundMode();
- const QColorGroup::ColorRole crole = QPalette::backgroundRoleFromMode( bgmode );
+ const TQColorGroup::ColorRole crole = TQPalette::backgroundRoleFromMode( bgmode );
p->fillRect(0, 0, width, height(), cg.brush(crole));
- QFontMetrics fm(lv->fontMetrics());
- int boxsize = lv->style().pixelMetric(QStyle::PM_CheckListButtonSize, lv);
+ TQFontMetrics fm(lv->fontMetrics());
+ int boxsize = lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv);
int marg = lv->itemMargin();
- int styleflags = QStyle::Style_Default;
+ int styleflags = TQStyle::Style_Default;
if (((column == 0) && m_contents) || ((column == 1) && m_index) || ((column == 2) && m_fullTextSearch))
- styleflags |= QStyle::Style_On;
+ styleflags |= TQStyle::Style_On;
else
- styleflags |= QStyle::Style_Off;
+ styleflags |= TQStyle::Style_Off;
if ((column == 0) || ((column == 1) && m_indexPossible) || ((column == 2) && m_fullTextSearchPossible))
- styleflags |= QStyle::Style_Enabled;
+ styleflags |= TQStyle::Style_Enabled;
int x = 0;
int y = 0;
@@ -228,20 +228,20 @@ void ConfigurationItem::paintCell(QPainter *p, const QColorGroup &cg, int column
else
y = (fm.height() + 2 + marg - boxsize) / 2;
- QStyleOption opt(this);
- lv->style().drawPrimitive(QStyle::PE_CheckListIndicator, p,
- QRect(x, y, boxsize, fm.height() + 2 + marg), cg, styleflags, opt);
+ TQStyleOption opt(this);
+ lv->style().drawPrimitive(TQStyle::PE_CheckListIndicator, p,
+ TQRect(x, y, boxsize, fm.height() + 2 + marg), cg, styleflags, opt);
return;
}
- QListViewItem::paintCell(p, cg, column, width, align);
+ TQListViewItem::paintCell(p, cg, column, width, align);
}
-int ConfigurationItem::width(const QFontMetrics &fm, const QListView *lv, int c) const
+int ConfigurationItem::width(const TQFontMetrics &fm, const TQListView *lv, int c) const
{
if ((c == 0) || (c == 1) || (c == 2))
- return lv->style().pixelMetric(QStyle::PM_CheckListButtonSize, lv) + 4;
- return QListViewItem::width(fm, lv, c);
+ return lv->style().pixelMetric(TQStyle::PM_CheckListButtonSize, lv) + 4;
+ return TQListViewItem::width(fm, lv, c);
}
@@ -253,8 +253,8 @@ int ConfigurationItem::width(const QFontMetrics &fm, const QListView *lv, int c)
//class DocumentationPlugin
-DocumentationPlugin::DocumentationPlugin(KConfig *pluginConfig, QObject *parent, const char *name)
- :QObject(parent, name), config(pluginConfig), m_indexCreated(false)
+DocumentationPlugin::DocumentationPlugin(KConfig *pluginConfig, TQObject *parent, const char *name)
+ :TQObject(parent, name), config(pluginConfig), m_indexCreated(false)
{
}
@@ -277,7 +277,7 @@ void DocumentationPlugin::autoSetup()
void DocumentationPlugin::reload()
{
clear();
- for (QValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
+ for (TQValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
createTOC(*it);
@@ -286,7 +286,7 @@ void DocumentationPlugin::reload()
void DocumentationPlugin::clear()
{
- for (QValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
+ for (TQValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
clearCatalog(*it);
@@ -296,7 +296,7 @@ void DocumentationPlugin::clear()
void DocumentationPlugin::clearCatalog(DocumentationCatalogItem *item)
{
//clear named catalog map
- for (QMap<QString, DocumentationCatalogItem*>::iterator it = namedCatalogs.begin();
+ for (TQMap<TQString, DocumentationCatalogItem*>::iterator it = namedCatalogs.begin();
it != namedCatalogs.end(); ++it)
{
if (it.data() == item)
@@ -306,8 +306,8 @@ void DocumentationPlugin::clearCatalog(DocumentationCatalogItem *item)
}
}
//clear indexes for catalog
- QValueList<IndexItemProto *> idx = indexes[item];
- for (QValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
+ TQValueList<IndexItemProto *> idx = indexes[item];
+ for (TQValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
{
delete *it;
}
@@ -322,7 +322,7 @@ void DocumentationPlugin::createIndex(IndexBox *index)
if (m_indexCreated)
return;
- for (QValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
+ for (TQValueList<DocumentationCatalogItem *>::iterator it = catalogs.begin();
it != catalogs.end(); ++it)
{
loadIndex(index, *it);
@@ -334,17 +334,17 @@ void DocumentationPlugin::cacheIndex(DocumentationCatalogItem *item)
{
kdDebug() << "Creating index cache for " << item->text(0) << endl;
- QString cacheName = locateLocal("data", QString("kdevdocumentation/index/cache_") + item->text(0));
- QFile cacheFile(cacheName);
+ TQString cacheName = locateLocal("data", TQString("kdevdocumentation/index/cache_") + item->text(0));
+ TQFile cacheFile(cacheName);
if (!cacheFile.open(IO_WriteOnly))
return;
- QTextStream str(&cacheFile);
- str.setEncoding(QTextStream::Unicode);
+ TQTextStream str(&cacheFile);
+ str.setEncoding(TQTextStream::Unicode);
str << CACHE_VERSION << endl;
- QValueList<IndexItemProto*> catalogIndexes = indexes[item];
- for (QValueList<IndexItemProto*>::const_iterator it = catalogIndexes.constBegin();
+ TQValueList<IndexItemProto*> catalogIndexes = indexes[item];
+ for (TQValueList<IndexItemProto*>::const_iterator it = catalogIndexes.constBegin();
it != catalogIndexes.constEnd(); ++it)
{
str << (*it)->text() << endl;
@@ -357,26 +357,26 @@ void DocumentationPlugin::cacheIndex(DocumentationCatalogItem *item)
bool DocumentationPlugin::loadCachedIndex(IndexBox *index, DocumentationCatalogItem *item)
{
- QString cacheName = locateLocal("data", QString("kdevdocumentation/index/cache_") + item->cacheVersion() + item->text(0));
- QFile cacheFile(cacheName);
+ TQString cacheName = locateLocal("data", TQString("kdevdocumentation/index/cache_") + item->cacheVersion() + item->text(0));
+ TQFile cacheFile(cacheName);
if (!cacheFile.open(IO_ReadOnly))
return false;
kdDebug() << "Using cached index for item: " << item->text(0) << endl;
- QTextStream str(&cacheFile);
- str.setEncoding(QTextStream::Unicode);
- QString cache = str.read();
- QStringList cacheList = QStringList::split("\n", cache, true);
- QString ver = cacheList.first();
+ TQTextStream str(&cacheFile);
+ str.setEncoding(TQTextStream::Unicode);
+ TQString cache = str.read();
+ TQStringList cacheList = TQStringList::split("\n", cache, true);
+ TQString ver = cacheList.first();
if (ver != CACHE_VERSION)
{
kdDebug() << "Wrong cache version: " << ver << endl;
return false;
}
- QStringList::const_iterator it = cacheList.begin();
+ TQStringList::const_iterator it = cacheList.begin();
it++;
- QString s[3]; int c = 0;
+ TQString s[3]; int c = 0;
for (; it != cacheList.end(); ++it)
{
s[c] = *it;
@@ -397,18 +397,18 @@ void DocumentationPlugin::addCatalog(DocumentationCatalogItem *item)
{
catalogs.append(item);
namedCatalogs[item->text(0)] = item;
-// indexes[item] = QValueList<IndexItem*>();
+// indexes[item] = TQValueList<IndexItem*>();
}
void DocumentationPlugin::addCatalogConfiguration(KListView *configurationView,
- const QString &title, const QString &url)
+ const TQString &title, const TQString &url)
{
new ConfigurationItem(configurationView, this, title, url,
hasCapability(Index), hasCapability(FullTextSearch));
}
void DocumentationPlugin::editCatalogConfiguration(ConfigurationItem *configurationItem,
- const QString &title, const QString &url)
+ const TQString &title, const TQString &url)
{
configurationItem->setTitle(title);
configurationItem->setURL(url);
@@ -422,8 +422,8 @@ void DocumentationPlugin::deleteCatalogConfiguration(const ConfigurationItem *co
void DocumentationPlugin::clearCatalogIndex(DocumentationCatalogItem *item)
{
//clear indexes for catalog
- QValueList<IndexItemProto *> idx = indexes[item];
- for (QValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
+ TQValueList<IndexItemProto *> idx = indexes[item];
+ for (TQValueList<IndexItemProto *>::iterator it = idx.begin(); it != idx.end(); ++it)
{
delete *it;
}
@@ -443,9 +443,9 @@ void DocumentationPlugin::loadIndex(IndexBox *index, DocumentationCatalogItem *i
void DocumentationPlugin::init(KListView *contents)
{
config->setGroup("Locations");
- QMap<QString, QString> entryMap = config->entryMap("Locations");
+ TQMap<TQString, TQString> entryMap = config->entryMap("Locations");
- for (QMap<QString, QString>::const_iterator it = entryMap.begin();
+ for (TQMap<TQString, TQString>::const_iterator it = entryMap.begin();
it != entryMap.end(); ++it)
{
if (catalogEnabled(it.key()))
@@ -453,13 +453,13 @@ void DocumentationPlugin::init(KListView *contents)
}
}
-void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, QStringList restrictions)
+void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, TQStringList restrictions)
{
config->setGroup("Locations");
- QMap<QString, QString> entryMap = config->entryMap("Locations");
+ TQMap<TQString, TQString> entryMap = config->entryMap("Locations");
//remove deleted in configuration catalogs
- for (QStringList::const_iterator it = deletedConfigurationItems.constBegin();
+ for (TQStringList::const_iterator it = deletedConfigurationItems.constBegin();
it != deletedConfigurationItems.constEnd(); ++it)
{
if (namedCatalogs.contains(*it))
@@ -468,7 +468,7 @@ void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, QStringLi
deletedConfigurationItems.clear();
//update configuration
- for (QMap<QString, QString>::const_iterator it = entryMap.begin();
+ for (TQMap<TQString, TQString>::const_iterator it = entryMap.begin();
it != entryMap.end(); ++it)
{
config->setGroup("Locations");
@@ -507,9 +507,9 @@ void DocumentationPlugin::reinit(KListView *contents, IndexBox *index, QStringLi
void DocumentationPlugin::loadCatalogConfiguration(KListView *configurationView)
{
config->setGroup("Locations");
- QMap<QString, QString> entryMap = config->entryMap("Locations");
+ TQMap<TQString, TQString> entryMap = config->entryMap("Locations");
- for (QMap<QString, QString>::const_iterator it = entryMap.begin();
+ for (TQMap<TQString, TQString>::const_iterator it = entryMap.begin();
it != entryMap.end(); ++it)
{
if (namedCatalogs.contains(it.key())
@@ -533,13 +533,13 @@ void DocumentationPlugin::saveCatalogConfiguration(KListView *configurationView)
{
config->setGroup("Locations");
- for (QStringList::const_iterator it = deletedConfigurationItems.constBegin();
+ for (TQStringList::const_iterator it = deletedConfigurationItems.constBegin();
it != deletedConfigurationItems.constEnd(); ++it)
{
config->deleteEntry(*it);
}
- QListViewItemIterator it(configurationView);
+ TQListViewItemIterator it(configurationView);
while (it.current())
{
ConfigurationItem *confItem = dynamic_cast<ConfigurationItem*>(it.current());
@@ -576,7 +576,7 @@ void DocumentationPlugin::saveCatalogConfiguration(KListView *configurationView)
void DocumentationPlugin::setIndexEnabled( DocumentationCatalogItem * item, bool e )
{
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("Index Settings");
config->writeEntry(item->text(0), e);
config->setGroup(group);
@@ -584,25 +584,25 @@ void DocumentationPlugin::setIndexEnabled( DocumentationCatalogItem * item, bool
bool DocumentationPlugin::indexEnabled( DocumentationCatalogItem * item ) const
{
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("Index Settings");
bool b = config->readBoolEntry(item->text(0), false);
config->setGroup(group);
return b;
}
-bool DocumentationPlugin::catalogEnabled(const QString &name) const
+bool DocumentationPlugin::catalogEnabled(const TQString &name) const
{
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("TOC Settings");
bool b = config->readBoolEntry(name, true);
config->setGroup(group);
return b;
}
-void DocumentationPlugin::setCatalogEnabled(const QString &name, bool e)
+void DocumentationPlugin::setCatalogEnabled(const TQString &name, bool e)
{
- QString group = config->group();
+ TQString group = config->group();
config->setGroup("TOC Settings");
config->writeEntry(name, e);
config->setGroup(group);
@@ -613,7 +613,7 @@ void DocumentationPlugin::setCatalogEnabled(const QString &name, bool e)
//class IndexBox
-IndexBox::IndexBox(QWidget *parent, const char *name)
+IndexBox::IndexBox(TQWidget *parent, const char *name)
:KListBox(parent, name), m_dirty(false)
{
}
@@ -625,12 +625,12 @@ void IndexBox::addIndexItem(IndexItemProto *item)
void IndexBox::removeIndexItem(IndexItemProto *item)
{
- QString text = item->text();
+ TQString text = item->text();
items[text].remove(item);
if (items[text].count() == 0)
{
items.remove(text);
- QListBoxItem *item = findItem(text, Qt::CaseSensitive | Qt::ExactMatch);
+ TQListBoxItem *item = findItem(text, Qt::CaseSensitive | Qt::ExactMatch);
if (item)
delete item;
}
@@ -638,7 +638,7 @@ void IndexBox::removeIndexItem(IndexItemProto *item)
void IndexBox::fill()
{
- for (QMap<QString, QValueList<IndexItemProto*> >::const_iterator it = items.begin();
+ for (TQMap<TQString, TQValueList<IndexItemProto*> >::const_iterator it = items.begin();
it != items.end(); ++it)
{
new IndexItem(this, it.key());
@@ -662,12 +662,12 @@ void IndexBox::refill()
ProjectDocumentationPlugin::ProjectDocumentationPlugin(DocumentationPlugin *docPlugin, DocumentationPlugin::ProjectDocType type)
- :QObject(0, 0), m_docPlugin(docPlugin), m_catalog(0), m_type(type), m_contents(0), m_index(0)
+ :TQObject(0, 0), m_docPlugin(docPlugin), m_catalog(0), m_type(type), m_contents(0), m_index(0)
{
kdDebug() << "ProjectDocumentationPlugin::ProjectDocumentationPlugin for type " << type << endl;
m_watch = new KDirWatch(this);
- connect(m_watch, SIGNAL(dirty(const QString&)), this, SLOT(reinit()));
+ connect(m_watch, TQT_SIGNAL(dirty(const TQString&)), this, TQT_SLOT(reinit()));
m_watch->startScan();
}
@@ -676,7 +676,7 @@ ProjectDocumentationPlugin::~ProjectDocumentationPlugin()
deinit();
}
-void ProjectDocumentationPlugin::init(KListView *contents, IndexBox *index, const QString &url)
+void ProjectDocumentationPlugin::init(KListView *contents, IndexBox *index, const TQString &url)
{
m_contents = contents;
m_index = index;
@@ -708,12 +708,12 @@ void ProjectDocumentationPlugin::deinit()
m_catalog = 0;
}
-QString ProjectDocumentationPlugin::pluginName() const
+TQString ProjectDocumentationPlugin::pluginName() const
{
return m_docPlugin->pluginName();
}
-QString ProjectDocumentationPlugin::catalogURL() const
+TQString ProjectDocumentationPlugin::catalogURL() const
{
return m_url;
}
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h
index 5d905085..658a4e7a 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.h
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.h
@@ -19,9 +19,9 @@
#ifndef KDEV_DOC_PLUGIN_H
#define KDEV_DOC_PLUGIN_H
-#include <qmap.h>
-#include <qvaluelist.h>
-#include <qpair.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
+#include <tqpair.h>
#include <klistbox.h>
#include <klistview.h>
@@ -43,10 +43,10 @@ public:
Document /**<Document.*/
};
- DocumentationItem(Type type, KListView *parent, const QString &name);
- DocumentationItem(Type type, KListView *parent, KListViewItem *after, const QString &name);
- DocumentationItem(Type type, KListViewItem *parent, const QString &name);
- DocumentationItem(Type type, KListViewItem *parent, KListViewItem *after, const QString &name);
+ DocumentationItem(Type type, KListView *parent, const TQString &name);
+ DocumentationItem(Type type, KListView *parent, KListViewItem *after, const TQString &name);
+ DocumentationItem(Type type, KListViewItem *parent, const TQString &name);
+ DocumentationItem(Type type, KListViewItem *parent, KListViewItem *after, const TQString &name);
virtual void setURL(const KURL &url) { m_url = url; }
virtual KURL url() const { return m_url; }
@@ -72,8 +72,8 @@ class DocumentationPlugin;
class DocumentationCatalogItem: public DocumentationItem
{
public:
- DocumentationCatalogItem(DocumentationPlugin* plugin, KListView *parent, const QString &name);
- DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *parent, const QString &name);
+ DocumentationCatalogItem(DocumentationPlugin* plugin, KListView *parent, const TQString &name);
+ DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *parent, const TQString &name);
virtual ~DocumentationCatalogItem();
DocumentationPlugin* plugin() const { return m_plugin; }
@@ -84,7 +84,7 @@ public:
virtual bool isProjectDocumentationItem() const { return m_isProjectDocumentationItem; }
virtual void setProjectDocumentationItem(bool b) { m_isProjectDocumentationItem = b; }
- virtual QString cacheVersion() const { return ""; } /// should return a short string that identifies the version of the catalog
+ virtual TQString cacheVersion() const { return ""; } /// should return a short string that identifies the version of the catalog
protected:
virtual void activate();
@@ -104,28 +104,28 @@ class IndexItemProto
{
public:
IndexItemProto(DocumentationPlugin *plugin, DocumentationCatalogItem *catalog, IndexBox *listbox,
- const QString &text, const QString &description);
+ const TQString &text, const TQString &description);
~IndexItemProto();
void addURL(const KURL &url) { m_url = url; }
KURL url() const { return m_url; }
- QString text() const { return m_text; }
- QString description() const { return m_description; }
+ TQString text() const { return m_text; }
+ TQString description() const { return m_description; }
private:
KURL m_url;
IndexBox *m_listbox;
- QString m_text;
- QString m_description;
+ TQString m_text;
+ TQString m_description;
};
/**Documentation index item.*/
-class IndexItem: public QListBoxText {
+class IndexItem: public TQListBoxText {
public:
- typedef QPair<QString, KURL> URL;
- typedef QValueList<URL> List;
+ typedef QPair<TQString, KURL> URL;
+ typedef TQValueList<URL> List;
- IndexItem(IndexBox *listbox, const QString &text);
+ IndexItem(IndexBox *listbox, const TQString &text);
List urls() const;
@@ -136,17 +136,17 @@ private:
/**Documentation index view.*/
class IndexBox: public KListBox{
public:
- IndexBox(QWidget *parent = 0, const char *name = 0);
+ IndexBox(TQWidget *parent = 0, const char *name = 0);
virtual void addIndexItem(IndexItemProto *item);
virtual void removeIndexItem(IndexItemProto *item);
virtual void fill();
virtual void refill();
virtual void setDirty(bool dirty);
-// virtual void refill(QValueList<IndexItemProto*> &items);
+// virtual void refill(TQValueList<IndexItemProto*> &items);
private:
- QMap<QString, QValueList<IndexItemProto*> > items;
+ TQMap<TQString, TQValueList<IndexItemProto*> > items;
friend class IndexItem;
bool m_dirty;
@@ -161,19 +161,19 @@ class DocumentationPlugin;
class ConfigurationItem: public QCheckListItem
{
public:
- ConfigurationItem(QListView *parent, DocumentationPlugin * plugin, const QString &title, const QString &url,
+ ConfigurationItem(TQListView *parent, DocumentationPlugin * plugin, const TQString &title, const TQString &url,
bool indexPossible, bool fullTextSearchPossible);
- virtual QString title() const { return m_title; }
- virtual void setTitle(const QString title) { setText(3, m_title = title); }
- virtual QString url() const { return m_url; }
- virtual void setURL(const QString url) { setText(4, m_url = url); }
+ virtual TQString title() const { return m_title; }
+ virtual void setTitle(const TQString title) { setText(3, m_title = title); }
+ virtual TQString url() const { return m_url; }
+ virtual void setURL(const TQString url) { setText(4, m_url = url); }
virtual bool isChanged() const { return m_title == m_origTitle; }
- virtual QString origTitle() const {return m_origTitle; }
+ virtual TQString origTitle() const {return m_origTitle; }
- virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
- virtual int width(const QFontMetrics &fm, const QListView *lv, int c) const;
+ virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align);
+ virtual int width(const TQFontMetrics &fm, const TQListView *lv, int c) const;
bool contents() const { return m_contents; }
void setContents(bool contents) { m_contents = contents; }
@@ -188,9 +188,9 @@ public:
DocumentationPlugin * docPlugin() { return m_docPlugin; }
private:
- QString m_title;
- QString m_url;
- QString m_origTitle;
+ TQString m_title;
+ TQString m_url;
+ TQString m_origTitle;
bool m_contents;
bool m_index;
@@ -233,14 +233,14 @@ public:
setCapabilities(Index | FullTextSearch);
@endcode
*/
- DocumentationPlugin(KConfig *pluginConfig, QObject *parent =0, const char *name =0);
+ DocumentationPlugin(KConfig *pluginConfig, TQObject *parent =0, const char *name =0);
virtual ~DocumentationPlugin();
/**Returns the i18n name of the plugin.*/
- virtual QString pluginName() const = 0;
+ virtual TQString pluginName() const = 0;
/**Creates documentation catalog with given title and url.*/
- virtual DocumentationCatalogItem *createCatalog(KListView *contents, const QString &title, const QString &url) = 0;
+ virtual DocumentationCatalogItem *createCatalog(KListView *contents, const TQString &title, const TQString &url) = 0;
/**Initialize a list of catalogs.
@param contents the listview to fill with catalogs
@@ -252,7 +252,7 @@ public:
@param index the listbox with index to update
@param restrictions the list of catalogs names to remove
*/
- virtual void reinit(KListView *contents, IndexBox *index, QStringList restrictions);
+ virtual void reinit(KListView *contents, IndexBox *index, TQStringList restrictions);
/**Initializes plugin configuration. Documentation plugins should be able to
initialize the default configuration on startup without any user interaction.
Call this in the constructor of your plugin.*/
@@ -263,9 +263,9 @@ public:
/**Indicates if a catalog with specified name is enabled. Documentation plugin
should check this and do not load catalogs disabled in configuration.
All catalogs are enabled by default.*/
- virtual bool catalogEnabled(const QString &name) const;
+ virtual bool catalogEnabled(const TQString &name) const;
/**Enables or disables documentation catalog.*/
- virtual void setCatalogEnabled(const QString &name, bool e);
+ virtual void setCatalogEnabled(const TQString &name, bool e);
/**Indicates if an index of given catalog should be rebuilt. This method
is used by index caching algorythm to make a descision to rebuild index
@@ -292,7 +292,7 @@ public:
clicks the documentation item. If it is too much overhead to determine the
documentation catalog url in @ref createCatalog method then you can set it here.*/
virtual void setCatalogURL(DocumentationCatalogItem *item) = 0;
- virtual QStringList fullTextSearchLocations() = 0;
+ virtual TQStringList fullTextSearchLocations() = 0;
/**Loads catalog configuration and fills configurationView with ConfigurationItem objects.*/
virtual void loadCatalogConfiguration(KListView *configurationView);
@@ -302,17 +302,17 @@ public:
virtual void saveCatalogConfiguration(KListView *configurationView);
/**Adds new catalog to a configuration.*/
virtual void addCatalogConfiguration(KListView *configurationView,
- const QString &title, const QString &url);
+ const TQString &title, const TQString &url);
/**Edits catalog configuration.*/
virtual void editCatalogConfiguration(ConfigurationItem *configurationItem,
- const QString &title, const QString &url);
+ const TQString &title, const TQString &url);
/**Removes catalog from configuration. configurationItem should not be removed here.*/
virtual void deleteCatalogConfiguration(const ConfigurationItem *const configurationItem);
/**Returns a mode and a filter for catalog locator dialogs.*/
- virtual QPair<KFile::Mode, QString> catalogLocatorProps() = 0;
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps() = 0;
/**Returns a title of catalog defined by an url parameter.*/
- virtual QString catalogTitle(const QString &url) = 0;
+ virtual TQString catalogTitle(const TQString &url) = 0;
/**Reloads documentation catalogs and indices.*/
virtual void reload();
@@ -347,11 +347,11 @@ public slots:
protected:
/**A list of loaded documentation catalogs.*/
- QValueList<DocumentationCatalogItem*> catalogs;
+ TQValueList<DocumentationCatalogItem*> catalogs;
/**A map of names of loaded documentation catalogs.*/
- QMap<QString, DocumentationCatalogItem*> namedCatalogs;
+ TQMap<TQString, DocumentationCatalogItem*> namedCatalogs;
/**A map of indices of loaded documentation catalogs.*/
- QMap<DocumentationCatalogItem*, QValueList<IndexItemProto*> > indexes;
+ TQMap<DocumentationCatalogItem*, TQValueList<IndexItemProto*> > indexes;
/**Sets capabilities of documentation plugin.*/
void setCapabilities(int caps) { m_capabilities = caps; }
@@ -362,7 +362,7 @@ protected:
/**Stores items deleted from configuration. @ref saveCatalogConfiguration
uses this to remove entries from configuration file.*/
- QStringList deletedConfigurationItems;
+ TQStringList deletedConfigurationItems;
/**Configuration object used by a plugin.*/
KConfig *config;
@@ -387,19 +387,19 @@ friend class DocumentationCatalogItem;
Represents functionality to display project documentation catalog and index in documentation browser.
*/
-class ProjectDocumentationPlugin: public QObject {
+class ProjectDocumentationPlugin: public TQObject {
Q_OBJECT
public:
ProjectDocumentationPlugin(DocumentationPlugin *docPlugin, DocumentationPlugin::ProjectDocType type);
virtual ~ProjectDocumentationPlugin();
/**Initializes project documentation plugin - creates documentation catalog.*/
- virtual void init(KListView *contents, IndexBox *index, const QString &url);
+ virtual void init(KListView *contents, IndexBox *index, const TQString &url);
/**Deinitializes project documentation plugin - removes documentation catalog.*/
virtual void deinit();
- QString pluginName() const;
- QString catalogURL() const;
+ TQString pluginName() const;
+ TQString catalogURL() const;
public slots:
/**Performs reinitialization if project documentation has changed (after building api documentation).*/
@@ -415,7 +415,7 @@ private:
class KDirWatch *m_watch;
class KListView *m_contents;
class IndexBox *m_index;
- QString m_url;
+ TQString m_url;
};
#endif
diff --git a/parts/documentation/plugins/chm/docchmplugin.cpp b/parts/documentation/plugins/chm/docchmplugin.cpp
index e2a4172e..e0b19de9 100644
--- a/parts/documentation/plugins/chm/docchmplugin.cpp
+++ b/parts/documentation/plugins/chm/docchmplugin.cpp
@@ -27,10 +27,10 @@
#include <kio/netaccess.h>
#include <iostream>
#include <fstream>
-#include <qvaluevector.h>
+#include <tqvaluevector.h>
#include <kdevgenericfactory.h>
#include <kdevplugininfo.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include "../../../../config.h"
@@ -38,7 +38,7 @@ static const KDevPluginInfo data("docchmplugin");
typedef KDevGenericFactory<DocCHMPlugin> DocCHMPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocchmplugin, DocCHMPluginFactory(data) )
-DocCHMPlugin::DocCHMPlugin(QObject* parent, const char* name, QStringList // args
+DocCHMPlugin::DocCHMPlugin(TQObject* parent, const char* name, TQStringList // args
)
:DocumentationPlugin(DocCHMPluginFactory::instance()->config(), parent, name)
{
@@ -51,7 +51,7 @@ DocCHMPlugin::~DocCHMPlugin()
}
-DocumentationCatalogItem* DocCHMPlugin::createCatalog(KListView* contents, const QString& title, const QString& url)
+DocumentationCatalogItem* DocCHMPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
@@ -59,29 +59,29 @@ DocumentationCatalogItem* DocCHMPlugin::createCatalog(KListView* contents, const
return item;
}
-QPair<KFile::Mode, QString> DocCHMPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocCHMPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "*.chm");
+ return QPair<KFile::Mode, TQString>(KFile::File, "*.chm");
}
-QString DocCHMPlugin::catalogTitle(const QString& // url
+TQString DocCHMPlugin::catalogTitle(const TQString& // url
)
{
- return QString::null;
+ return TQString::null;
}
-QString DocCHMPlugin::pluginName() const
+TQString DocCHMPlugin::pluginName() const
{
return i18n("CHM Documentation Collection");
}
-QString DocCHMPlugin::getSpecialData(const QString& name, KURL url) {
- QString ret = "";
+TQString DocCHMPlugin::getSpecialData(const TQString& name, KURL url) {
+ TQString ret = "";
url.setProtocol("ms-its");
url.addPath("/:" + name);
- QString tmpFile;
+ TQString tmpFile;
if( KIO::NetAccess::download( url, tmpFile, 0 ) )
{
std::filebuf fb;
@@ -102,10 +102,10 @@ QString DocCHMPlugin::getSpecialData(const QString& name, KURL url) {
///this currently is useless, because htdig cannot use kioslaves
-QStringList DocCHMPlugin::fullTextSearchLocations()
+TQStringList DocCHMPlugin::fullTextSearchLocations()
{
- //return QStringList::split( '\n', getSpecialData("contents", m_url));
- return QStringList();
+ //return TQStringList::split( '\n', getSpecialData("contents", m_url));
+ return TQStringList();
}
bool DocCHMPlugin::needRefreshIndex(DocumentationCatalogItem* // item
@@ -137,12 +137,12 @@ static KListViewItem* chainEnd(KListViewItem *parent) {
return ret;
}
-static QString decodeHTML(const QString& s) {
- QRegExp rx(QString::fromLatin1("&#(\\d+);|&nbsp;"));
- QString out = s;
+static TQString decodeHTML(const TQString& s) {
+ TQRegExp rx(TQString::fromLatin1("&#(\\d+);|&nbsp;"));
+ TQString out = s;
int pos = rx.search(out);
while(pos > -1) {
- QString found = rx.cap(0);
+ TQString found = rx.cap(0);
if(found != "&nbsp;") {
out.replace(pos, found.length(), static_cast<char>(rx.cap(1).toInt()));
}else{
@@ -156,12 +156,12 @@ static QString decodeHTML(const QString& s) {
void DocCHMPlugin::createTOC(DocumentationCatalogItem* item)
{
- QStringList lines = QStringList::split("\n", getSpecialData("catalog", item->url()) );
+ TQStringList lines = TQStringList::split("\n", getSpecialData("catalog", item->url()) );
if(lines.count() % 4 != 0) { kdDebug(9002) << "DocCHMPlugin::createTOC: wrong count of strings"; return;}
- QValueVector<DocumentationItem*> items;
+ TQValueVector<DocumentationItem*> items;
items.push_back(item);
- for(QStringList::Iterator it = lines.begin(); it != lines.end();) {
+ for(TQStringList::Iterator it = lines.begin(); it != lines.end();) {
bool ok1 = true, ok2 = true;
int parent = (*it).toInt(&ok1);
++it;
@@ -172,7 +172,7 @@ void DocCHMPlugin::createTOC(DocumentationCatalogItem* item)
break;
}
- QString& name(*it);
+ TQString& name(*it);
++it;
KURL url(*it);
++it;
diff --git a/parts/documentation/plugins/chm/docchmplugin.h b/parts/documentation/plugins/chm/docchmplugin.h
index 8db470b0..ca90a978 100644
--- a/parts/documentation/plugins/chm/docchmplugin.h
+++ b/parts/documentation/plugins/chm/docchmplugin.h
@@ -26,25 +26,25 @@ class DocCHMPlugin :public DocumentationPlugin
{
Q_OBJECT
public:
- DocCHMPlugin(QObject* parent, const char* name, QStringList args = QStringList());
+ DocCHMPlugin(TQObject* parent, const char* name, TQStringList args = TQStringList());
~DocCHMPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
virtual void setCatalogURL(DocumentationCatalogItem* item);
- virtual QString catalogTitle(const QString& url);
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const QString& title, const QString& url);
+ virtual TQString catalogTitle(const TQString& url);
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
+ virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
virtual void autoSetupPlugin();
protected:
- QString getSpecialData(const QString& name, KURL url);
+ TQString getSpecialData(const TQString& name, KURL url);
};
#endif
diff --git a/parts/documentation/plugins/custom/doccustomplugin.cpp b/parts/documentation/plugins/custom/doccustomplugin.cpp
index 9fa5ad99..ae95aff1 100644
--- a/parts/documentation/plugins/custom/doccustomplugin.cpp
+++ b/parts/documentation/plugins/custom/doccustomplugin.cpp
@@ -32,7 +32,7 @@ static const KDevPluginInfo data("doccustomplugin");
typedef KDevGenericFactory<DocCustomPlugin> DocCustomPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdoccustomplugin, DocCustomPluginFactory(data) )
-DocCustomPlugin::DocCustomPlugin(QObject* parent, const char* name, const QStringList // args
+DocCustomPlugin::DocCustomPlugin(TQObject* parent, const char* name, const TQStringList // args
)
:DocumentationPlugin(DocCustomPluginFactory::instance()->config(), parent, name)
{
@@ -50,31 +50,31 @@ bool DocCustomPlugin::needRefreshIndex(DocumentationCatalogItem* // item
return false;
}
-QString DocCustomPlugin::pluginName() const
+TQString DocCustomPlugin::pluginName() const
{
return i18n("Custom Documentation Collection");
}
-DocumentationCatalogItem* DocCustomPlugin::createCatalog(KListView* contents, const QString& title, const QString& url)
+DocumentationCatalogItem* DocCustomPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
return item;
}
-QPair<KFile::Mode, QString> DocCustomPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocCustomPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "all/allfiles");
+ return QPair<KFile::Mode, TQString>(KFile::File, "all/allfiles");
}
-QString DocCustomPlugin::catalogTitle(const QString& /*url*/)
+TQString DocCustomPlugin::catalogTitle(const TQString& /*url*/)
{
- return QString::null;
+ return TQString::null;
}
-QStringList DocCustomPlugin::fullTextSearchLocations()
+TQStringList DocCustomPlugin::fullTextSearchLocations()
{
- return QStringList();
+ return TQStringList();
}
diff --git a/parts/documentation/plugins/custom/doccustomplugin.h b/parts/documentation/plugins/custom/doccustomplugin.h
index e72261a6..77bc9750 100644
--- a/parts/documentation/plugins/custom/doccustomplugin.h
+++ b/parts/documentation/plugins/custom/doccustomplugin.h
@@ -24,12 +24,12 @@
class DocCustomPlugin : public DocumentationPlugin {
public:
- DocCustomPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocCustomPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocCustomPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const QString& title, const QString& url);
+ virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
@@ -37,10 +37,10 @@ public:
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
- virtual QString catalogTitle(const QString& url);
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
+ virtual TQString catalogTitle(const TQString& url);
virtual void autoSetupPlugin();
diff --git a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp
index 95c404ae..11c2b6a7 100644
--- a/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp
+++ b/parts/documentation/plugins/devhelp/docdevhelpplugin.cpp
@@ -21,10 +21,10 @@
#include <unistd.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdialog.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdialog.h>
#include <kurl.h>
#include <kaboutdata.h>
@@ -40,32 +40,32 @@
class DevHelpDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
- DevHelpDocumentationCatalogItem(const QString &devHelpFile, DocumentationPlugin* plugin,
- KListView *parent, const QString &name)
+ DevHelpDocumentationCatalogItem(const TQString &devHelpFile, DocumentationPlugin* plugin,
+ KListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_devHelpFile(devHelpFile)
{
}
- DevHelpDocumentationCatalogItem(const QString &devHelpFile, DocumentationPlugin* plugin,
- DocumentationItem *parent, const QString &name)
+ DevHelpDocumentationCatalogItem(const TQString &devHelpFile, DocumentationPlugin* plugin,
+ DocumentationItem *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_devHelpFile(devHelpFile)
{
}
- QString devHelpFile() const { return m_devHelpFile; }
+ TQString devHelpFile() const { return m_devHelpFile; }
- virtual QString cacheVersion() const {
+ virtual TQString cacheVersion() const {
unsigned int checksum=0;
for(int a=0;a<m_devHelpFile.length(); a++) {
checksum += (a+1) * (int)m_devHelpFile[a];
}
- QString str;
- QTextOStream( &str ) << checksum;
+ TQString str;
+ TQTextOStream( &str ) << checksum;
return str;
}
protected:
private:
- QString m_devHelpFile;
+ TQString m_devHelpFile;
};
@@ -73,8 +73,8 @@ static const KDevPluginInfo data("docdevhelpplugin");
typedef KDevGenericFactory<DocDevHelpPlugin> DocDevHelpPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocdevhelpplugin, DocDevHelpPluginFactory(data) )
-DocDevHelpPlugin::DocDevHelpPlugin(QObject* parent, const char* name,
- const QStringList /*args*/)
+DocDevHelpPlugin::DocDevHelpPlugin(TQObject* parent, const char* name,
+ const TQStringList /*args*/)
:DocumentationPlugin(DocDevHelpPluginFactory::instance()->config(), parent, name)
{
setCapabilities(Index | FullTextSearch | ProjectDocumentation);
@@ -85,55 +85,55 @@ DocDevHelpPlugin::~DocDevHelpPlugin()
{
}
-DocumentationCatalogItem* DocDevHelpPlugin::createCatalog(KListView* contents, const QString& title, const QString& url)
+DocumentationCatalogItem* DocDevHelpPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
{
return new DevHelpDocumentationCatalogItem(url, this, contents, title);
}
-QPair<KFile::Mode, QString> DocDevHelpPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocDevHelpPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "*.devhelp");
+ return QPair<KFile::Mode, TQString>(KFile::File, "*.devhelp");
}
-QString DocDevHelpPlugin::catalogTitle(const QString& url)
+TQString DocDevHelpPlugin::catalogTitle(const TQString& url)
{
- QFileInfo fi(url);
+ TQFileInfo fi(url);
if (!fi.exists())
- return QString::null;
+ return TQString::null;
- QFile f(url);
+ TQFile f(url);
if (!f.open(IO_ReadOnly))
- return QString::null;
+ return TQString::null;
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f))
- return QString::null;
+ return TQString::null;
f.close();
- QDomElement docEl = doc.documentElement();
+ TQDomElement docEl = doc.documentElement();
- return docEl.attribute("title", QString::null);
+ return docEl.attribute("title", TQString::null);
}
-QString DocDevHelpPlugin::pluginName() const
+TQString DocDevHelpPlugin::pluginName() const
{
return i18n("Devhelp Documentation Collection");
}
-QStringList DocDevHelpPlugin::fullTextSearchLocations()
+TQStringList DocDevHelpPlugin::fullTextSearchLocations()
{
- QStringList locs;
+ TQStringList locs;
- QMap<QString, QString> entryMap = config->entryMap("Locations");
+ TQMap<TQString, TQString> entryMap = config->entryMap("Locations");
- for (QMap<QString, QString>::const_iterator it = entryMap.begin();
+ for (TQMap<TQString, TQString>::const_iterator it = entryMap.begin();
it != entryMap.end(); ++it)
{
config->setGroup("Search Settings");
if (config->readBoolEntry(it.key(), false))
{
config->setGroup("Locations");
- QFileInfo fi(config->readPathEntry(it.key()));
+ TQFileInfo fi(config->readPathEntry(it.key()));
locs << fi.dirPath(true);
}
}
@@ -147,9 +147,9 @@ bool DocDevHelpPlugin::needRefreshIndex(DocumentationCatalogItem* item)
if (!dhItem)
return false;
- QFileInfo fi(dhItem->devHelpFile());
+ TQFileInfo fi(dhItem->devHelpFile());
config->setGroup("Index");
- if (fi.lastModified() > config->readDateTimeEntry(dhItem->text(0), new QDateTime()))
+ if (fi.lastModified() > config->readDateTimeEntry(dhItem->text(0), new TQDateTime()))
{
kdDebug() << "need rebuild index for " << dhItem->text(0) << endl;
config->writeEntry(item->text(0), fi.lastModified());
@@ -161,16 +161,16 @@ bool DocDevHelpPlugin::needRefreshIndex(DocumentationCatalogItem* item)
void DocDevHelpPlugin::autoSetupPlugin()
{
- QValueStack<QString> scanStack;
+ TQValueStack<TQString> scanStack;
pushToScanStack(scanStack, getenv("DEVHELP_SEARCH_PATH"));
- pushToScanStack(scanStack, QString(getenv("HOME")) + "/.devhelp/books");
+ pushToScanStack(scanStack, TQString(getenv("HOME")) + "/.devhelp/books");
- QString dhexepath = DocDevHelpPluginFactory::instance()->dirs()->findExe("devhelp");
+ TQString dhexepath = DocDevHelpPluginFactory::instance()->dirs()->findExe("devhelp");
if (!dhexepath.isEmpty())
{
- QFileInfo fi(dhexepath);
- QString path = KURL(fi.dirPath(true)).upURL().path(1);
+ TQFileInfo fi(dhexepath);
+ TQString path = KURL(fi.dirPath(true)).upURL().path(1);
pushToScanStack(scanStack, path + "share/devhelp/books");
pushToScanStack(scanStack, path + "share/gtk-doc/html");
}
@@ -185,8 +185,8 @@ void DocDevHelpPlugin::autoSetupPlugin()
pushToScanStack(scanStack, "/opt/gnome2/share/gtk-doc/html");
//fill the list of scan dirs (with subdirectories)
- QStringList scanList;
- QDir dir;
+ TQStringList scanList;
+ TQDir dir;
do
{
dir.setPath(scanStack.pop());
@@ -196,13 +196,13 @@ void DocDevHelpPlugin::autoSetupPlugin()
const QFileInfoList *dirEntries = dir.entryInfoList();
if ( !dirEntries ) continue;
- QPtrListIterator<QFileInfo> it(*dirEntries);
+ TQPtrListIterator<TQFileInfo> it(*dirEntries);
for (; it.current(); ++it)
{
- QString fileName = it.current()->fileName();
+ TQString fileName = it.current()->fileName();
if (fileName == "." || fileName == "..")
continue;
- QString path = it.current()->absFilePath();
+ TQString path = it.current()->absFilePath();
if (it.current()->isDir())
{
scanStack.push(path);
@@ -210,23 +210,23 @@ void DocDevHelpPlugin::autoSetupPlugin()
}
} while (!scanStack.isEmpty());
- for (QStringList::const_iterator it = scanList.begin(); it != scanList.end(); ++it)
+ for (TQStringList::const_iterator it = scanList.begin(); it != scanList.end(); ++it)
{
scanDevHelpDir(*it);
}
}
-void DocDevHelpPlugin::scanDevHelpDir(const QString &path)
+void DocDevHelpPlugin::scanDevHelpDir(const TQString &path)
{
- QDir d(path);
+ TQDir d(path);
if (! d.exists() || !d.isReadable())
return;
- d.setFilter(QDir::Files);
+ d.setFilter(TQDir::Files);
//scan for *.devhelp files
const QFileInfoList *list = d.entryInfoList();
QFileInfoListIterator it( *list );
- QFileInfo *fi;
+ TQFileInfo *fi;
while ( (fi = it.current()) != 0 )
{
if (fi->extension() == "devhelp")
@@ -238,7 +238,7 @@ void DocDevHelpPlugin::scanDevHelpDir(const QString &path)
}
}
-void DocDevHelpPlugin::pushToScanStack(QValueStack<QString> &stack, const QString &value)
+void DocDevHelpPlugin::pushToScanStack(TQValueStack<TQString> &stack, const TQString &value)
{
if ( (!value.isEmpty()) && (!stack.contains(value)) )
{
@@ -253,16 +253,16 @@ void DocDevHelpPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* it
if (!dhItem)
return;
- QFileInfo fi(dhItem->devHelpFile());
+ TQFileInfo fi(dhItem->devHelpFile());
- QFile f(dhItem->devHelpFile());
+ TQFile f(dhItem->devHelpFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << dhItem->devHelpFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f))
{
kdDebug() << "Not a valid devhelp file: " << dhItem->devHelpFile() << endl;
@@ -270,17 +270,17 @@ void DocDevHelpPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* it
}
f.close();
- QString baseUrl = KURL(dhItem->devHelpFile()).directory();
+ TQString baseUrl = KURL(dhItem->devHelpFile()).directory();
- QDomElement docEl = doc.documentElement();
- QDomElement chaptersEl = docEl.namedItem("functions").toElement();
- QDomElement childEl = chaptersEl.firstChild().toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement chaptersEl = docEl.namedItem("functions").toElement();
+ TQDomElement childEl = chaptersEl.firstChild().toElement();
while (!childEl.isNull())
{
if (childEl.tagName() == "function")
{
- QString name = childEl.attribute("name");
- QString url = childEl.attribute("link");
+ TQString name = childEl.attribute("name");
+ TQString url = childEl.attribute("link");
IndexItemProto *ii = new IndexItemProto(this, item, index, name, item->text(0));
ii->addURL(KURL(baseUrl+"/"+url));
@@ -295,16 +295,16 @@ void DocDevHelpPlugin::createTOC(DocumentationCatalogItem* item)
if (!dhItem)
return;
- QFileInfo fi(dhItem->devHelpFile());
+ TQFileInfo fi(dhItem->devHelpFile());
- QFile f(dhItem->devHelpFile());
+ TQFile f(dhItem->devHelpFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << dhItem->devHelpFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f))
{
kdDebug() << "Not a valid devhelp file: " << dhItem->devHelpFile() << endl;
@@ -312,23 +312,23 @@ void DocDevHelpPlugin::createTOC(DocumentationCatalogItem* item)
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement chaptersEl = docEl.namedItem("chapters").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement chaptersEl = docEl.namedItem("chapters").toElement();
- QDomElement childEl = chaptersEl.lastChild().toElement();
- QString baseUrl = KURL(dhItem->devHelpFile()).directory();
+ TQDomElement childEl = chaptersEl.lastChild().toElement();
+ TQString baseUrl = KURL(dhItem->devHelpFile()).directory();
addTocSect(dhItem, childEl, baseUrl, true);
}
-void DocDevHelpPlugin::addTocSect(DocumentationItem *parent, QDomElement childEl,
- QString baseUrl, bool book)
+void DocDevHelpPlugin::addTocSect(DocumentationItem *parent, TQDomElement childEl,
+ TQString baseUrl, bool book)
{
while (!childEl.isNull())
{
if ( (childEl.tagName() == "sub") || (childEl.tagName() == "chapter"))
{
- QString name = childEl.attribute("name");
- QString url = childEl.attribute("link");
+ TQString name = childEl.attribute("name");
+ TQString url = childEl.attribute("link");
if (name.isEmpty() && url.contains("ix"))
name = "Index";
@@ -337,7 +337,7 @@ void DocDevHelpPlugin::addTocSect(DocumentationItem *parent, QDomElement childEl
book ? DocumentationItem::Book : DocumentationItem::Document, parent, name);
item->setURL(KURL(baseUrl+"/"+url));
- QDomElement grandchildEl = childEl.lastChild().toElement();
+ TQDomElement grandchildEl = childEl.lastChild().toElement();
addTocSect(item, grandchildEl, baseUrl);
}
childEl = childEl.previousSibling().toElement();
@@ -350,15 +350,15 @@ void DocDevHelpPlugin::setCatalogURL(DocumentationCatalogItem* item)
if (!dhItem)
return;
- QFileInfo fi(dhItem->devHelpFile());
+ TQFileInfo fi(dhItem->devHelpFile());
- QFile f(dhItem->devHelpFile());
+ TQFile f(dhItem->devHelpFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << dhItem->devHelpFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f))
{
kdDebug(9002) << "Not a valid Devhelp file: " << dhItem->devHelpFile() << endl;
@@ -366,12 +366,12 @@ void DocDevHelpPlugin::setCatalogURL(DocumentationCatalogItem* item)
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement titleEl = docEl.namedItem("book").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement titleEl = docEl.namedItem("book").toElement();
if (item->url().isEmpty())
{
- KURL url(fi.dirPath(true) + "/" + docEl.attribute("link", QString::null));
+ KURL url(fi.dirPath(true) + "/" + docEl.attribute("link", TQString::null));
item->setURL(url);
}
}
diff --git a/parts/documentation/plugins/devhelp/docdevhelpplugin.h b/parts/documentation/plugins/devhelp/docdevhelpplugin.h
index 3d73cb63..9e4df5c2 100644
--- a/parts/documentation/plugins/devhelp/docdevhelpplugin.h
+++ b/parts/documentation/plugins/devhelp/docdevhelpplugin.h
@@ -20,8 +20,8 @@
#ifndef DOCDEVHELPPLUGIN_H
#define DOCDEVHELPPLUGIN_H
-#include <qvaluestack.h>
-#include <qdom.h>
+#include <tqvaluestack.h>
+#include <tqdom.h>
#include <kdevdocumentationplugin.h>
@@ -29,32 +29,32 @@ class DocDevHelpPlugin: public DocumentationPlugin
{
Q_OBJECT
public:
- DocDevHelpPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocDevHelpPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocDevHelpPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual QString catalogTitle(const QString& url);
+ virtual TQString catalogTitle(const TQString& url);
virtual void setCatalogURL(DocumentationCatalogItem* item);
virtual void createTOC(DocumentationCatalogItem* item);
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const QString& title, const QString& url);
+ virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
virtual void autoSetupPlugin();
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
virtual ProjectDocumentationPlugin *projectDocumentationPlugin(ProjectDocType type);
protected:
- void pushToScanStack(QValueStack<QString> &stack, const QString &value);
- void scanDevHelpDir(const QString &path);
- void addTocSect(DocumentationItem *parent, QDomElement childEl, QString baseUrl, bool book=false);
+ void pushToScanStack(TQValueStack<TQString> &stack, const TQString &value);
+ void scanDevHelpDir(const TQString &path);
+ void addTocSect(DocumentationItem *parent, TQDomElement childEl, TQString baseUrl, bool book=false);
};
#endif
diff --git a/parts/documentation/plugins/djvu/docdjvuplugin.cpp b/parts/documentation/plugins/djvu/docdjvuplugin.cpp
index 2dcaae62..f9761155 100644
--- a/parts/documentation/plugins/djvu/docdjvuplugin.cpp
+++ b/parts/documentation/plugins/djvu/docdjvuplugin.cpp
@@ -31,7 +31,7 @@ static const KAboutData data("docdjvuplugin", I18N_NOOP("Djvu documentation plug
typedef KDevGenericFactory<DocDjvuPlugin> DocDjvuPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocdjvuplugin, DocDjvuPluginFactory(&data) )
-DocDjvuPlugin::DocDjvuPlugin(QObject* parent, const char* name, const QStringList args)
+DocDjvuPlugin::DocDjvuPlugin(TQObject* parent, const char* name, const TQStringList args)
:DocumentationPlugin(DocDjvuPluginFactory::instance()->config(), parent, name)
{
setCapabilities(CustomDocumentationTitles | ProjectUserManual);
@@ -47,31 +47,31 @@ bool DocDjvuPlugin::needRefreshIndex(DocumentationCatalogItem* item)
return false;
}
-QString DocDjvuPlugin::pluginName() const
+TQString DocDjvuPlugin::pluginName() const
{
return i18n("Djvu Documentation Collection");
}
-DocumentationCatalogItem* DocDjvuPlugin::createCatalog(KListView* contents, const QString& title, const QString& url)
+DocumentationCatalogItem* DocDjvuPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
return item;
}
-QPair<KFile::Mode, QString> DocDjvuPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocDjvuPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "all/allfiles");
+ return QPair<KFile::Mode, TQString>(KFile::File, "all/allfiles");
}
-QString DocDjvuPlugin::catalogTitle(const QString& /*url*/)
+TQString DocDjvuPlugin::catalogTitle(const TQString& /*url*/)
{
- return QString::null;
+ return TQString::null;
}
-QStringList DocDjvuPlugin::fullTextSearchLocations()
+TQStringList DocDjvuPlugin::fullTextSearchLocations()
{
- return QStringList();
+ return TQStringList();
}
diff --git a/parts/documentation/plugins/djvu/docdjvuplugin.h b/parts/documentation/plugins/djvu/docdjvuplugin.h
index e9fdb30a..05689bd8 100644
--- a/parts/documentation/plugins/djvu/docdjvuplugin.h
+++ b/parts/documentation/plugins/djvu/docdjvuplugin.h
@@ -24,12 +24,12 @@
class DocDjvuPlugin : public DocumentationPlugin {
public:
- DocDjvuPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocDjvuPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocDjvuPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const QString& title, const QString& url);
+ virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
@@ -37,10 +37,10 @@ public:
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
- virtual QString catalogTitle(const QString& url);
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
+ virtual TQString catalogTitle(const TQString& url);
virtual void autoSetupPlugin();
diff --git a/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp b/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp
index 3fa7d5cb..a92eb60f 100644
--- a/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp
+++ b/parts/documentation/plugins/doxygen/docdoxygenplugin.cpp
@@ -21,12 +21,12 @@
#include <unistd.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdialog.h>
-#include <qregexp.h>
-#include <qvaluestack.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdialog.h>
+#include <tqregexp.h>
+#include <tqvaluestack.h>
#include <kurl.h>
#include <kaboutdata.h>
@@ -43,20 +43,20 @@
class DoxyDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
- DoxyDocumentationCatalogItem(const QString &origUrl, DocumentationPlugin* plugin,
- KListView *parent, const QString &name)
+ DoxyDocumentationCatalogItem(const TQString &origUrl, DocumentationPlugin* plugin,
+ KListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_origUrl(origUrl)
{
}
- DoxyDocumentationCatalogItem(const QString &origUrl, DocumentationPlugin* plugin,
- DocumentationItem *parent, const QString &name)
+ DoxyDocumentationCatalogItem(const TQString &origUrl, DocumentationPlugin* plugin,
+ DocumentationItem *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_origUrl(origUrl)
{
}
- QString origUrl() const { return m_origUrl; }
+ TQString origUrl() const { return m_origUrl; }
private:
- QString m_origUrl;
+ TQString m_origUrl;
};
@@ -64,7 +64,7 @@ static const KDevPluginInfo data("docdoxygenplugin");
typedef KDevGenericFactory<DocDoxygenPlugin> DocDoxygenPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocdoxygenplugin, DocDoxygenPluginFactory(data) )
-DocDoxygenPlugin::DocDoxygenPlugin(QObject* parent, const char* name, const QStringList)
+DocDoxygenPlugin::DocDoxygenPlugin(TQObject* parent, const char* name, const TQStringList)
:DocumentationPlugin(DocDoxygenPluginFactory::instance()->config(), parent, name)
{
setCapabilities(Index | FullTextSearch | ProjectDocumentation | CustomDocumentationTitles );
@@ -75,71 +75,71 @@ DocDoxygenPlugin::~DocDoxygenPlugin()
{
}
-QPair<KFile::Mode, QString> DocDoxygenPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocDoxygenPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "index.html *.tag");
+ return QPair<KFile::Mode, TQString>(KFile::File, "index.html *.tag");
}
-QString DocDoxygenPlugin::catalogTitle(const QString& url)
+TQString DocDoxygenPlugin::catalogTitle(const TQString& url)
{
- QFileInfo fi(url);
+ TQFileInfo fi(url);
if (!fi.exists())
- return QString::null;
+ return TQString::null;
if (fi.extension(false) == "html")
{
- QFile f(url);
+ TQFile f(url);
if (!f.open(IO_ReadOnly))
- return QString::null;
+ return TQString::null;
- QTextStream ts(&f);
- QString contents = ts.read();
- QRegExp re(".*<title>(.*)</title>.*");
+ TQTextStream ts(&f);
+ TQString contents = ts.read();
+ TQRegExp re(".*<title>(.*)</title>.*");
re.setCaseSensitive(false);
re.search(contents);
return re.cap(1);
}
else if (fi.extension(false) == "tag")
{
- QFile *f = 0;
- QFile f1(fi.dirPath(true) + "/html/index.html");
+ TQFile *f = 0;
+ TQFile f1(fi.dirPath(true) + "/html/index.html");
if (f1.open(IO_ReadOnly))
f = &f1;
- QFile f2(fi.dirPath(true) + "/index.html");
+ TQFile f2(fi.dirPath(true) + "/index.html");
if (f2.open(IO_ReadOnly))
f = &f2;
if (f != 0)
{
- QTextStream ts(f);
- QString contents = ts.read();
- QRegExp re(".*<title>(.*)</title>.*");
+ TQTextStream ts(f);
+ TQString contents = ts.read();
+ TQRegExp re(".*<title>(.*)</title>.*");
re.setCaseSensitive(false);
re.search(contents);
return re.cap(1);
}
}
- return QString::null;
+ return TQString::null;
}
-QString DocDoxygenPlugin::pluginName() const
+TQString DocDoxygenPlugin::pluginName() const
{
return i18n("Doxygen Documentation Collection");
}
-QStringList DocDoxygenPlugin::fullTextSearchLocations()
+TQStringList DocDoxygenPlugin::fullTextSearchLocations()
{
- QStringList locs;
+ TQStringList locs;
- QMap<QString, QString> entryMap = config->entryMap("Locations");
+ TQMap<TQString, TQString> entryMap = config->entryMap("Locations");
- for (QMap<QString, QString>::const_iterator it = entryMap.begin();
+ for (TQMap<TQString, TQString>::const_iterator it = entryMap.begin();
it != entryMap.end(); ++it)
{
config->setGroup("Search Settings");
if (config->readBoolEntry(it.key(), false))
{
config->setGroup("Locations");
- QFileInfo fi(config->readPathEntry(it.key()));
+ TQFileInfo fi(config->readPathEntry(it.key()));
locs << fi.dirPath(true);
}
}
@@ -151,13 +151,13 @@ void DocDoxygenPlugin::setCatalogURL(DocumentationCatalogItem* item)
{
if (item->url().url().endsWith("tag"))
{
- QFileInfo fi(item->url().directory(false) + "html/index.html");
+ TQFileInfo fi(item->url().directory(false) + "html/index.html");
if (fi.exists())
{
item->setURL(KURL::fromPathOrURL(fi.absFilePath()));
return;
}
- QFileInfo fi2(item->url().directory(false) + "index.html");
+ TQFileInfo fi2(item->url().directory(false) + "index.html");
if (fi2.exists())
{
item->setURL(KURL::fromPathOrURL(fi2.absFilePath()));
@@ -173,9 +173,9 @@ bool DocDoxygenPlugin::needRefreshIndex(DocumentationCatalogItem* item)
if (!doxyItem)
return false;
- QFileInfo fi(doxyItem->origUrl());
+ TQFileInfo fi(doxyItem->origUrl());
config->setGroup("Index");
- if (fi.lastModified() > config->readDateTimeEntry(item->text(0), new QDateTime()))
+ if (fi.lastModified() > config->readDateTimeEntry(item->text(0), new TQDateTime()))
{
kdDebug() << "need rebuild index for " << item->text(0) << endl;
config->writeEntry(item->text(0), fi.lastModified());
@@ -192,19 +192,19 @@ void DocDoxygenPlugin::autoSetupPlugin()
}
-void DocDoxygenPlugin::autoSetupDocs(const QString &defaultDir, const QString &searchDir,
- const QString &name)
+void DocDoxygenPlugin::autoSetupDocs(const TQString &defaultDir, const TQString &searchDir,
+ const TQString &name)
{
- QString doxyDocDir(defaultDir);
+ TQString doxyDocDir(defaultDir);
doxyDocDir = URLUtil::envExpand(doxyDocDir);
if (doxyDocDir.isEmpty())
{
- QStringList apiDirs = DocDoxygenPluginFactory::instance()->dirs()->findDirs("html", searchDir);
- for (QStringList::const_iterator it = apiDirs.begin(); it != apiDirs.end(); ++it )
+ TQStringList apiDirs = DocDoxygenPluginFactory::instance()->dirs()->findDirs("html", searchDir);
+ for (TQStringList::const_iterator it = apiDirs.begin(); it != apiDirs.end(); ++it )
{
doxyDocDir = *it;
- QString indexFile = doxyDocDir + "index.html";
- if (QFile::exists(indexFile))
+ TQString indexFile = doxyDocDir + "index.html";
+ if (TQFile::exists(indexFile))
{
doxyDocDir = doxyDocDir + "/" + searchDir;
break;
@@ -219,13 +219,13 @@ void DocDoxygenPlugin::autoSetupDocs(const QString &defaultDir, const QString &s
config->setGroup("Index Settings");
config->writeEntry(name, true);
config->setGroup("Locations");
- config->writePathEntry(name, doxyDocDir + QString("/index.html"));
+ config->writePathEntry(name, doxyDocDir + TQString("/index.html"));
}
}
void DocDoxygenPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* item)
{
- QFileInfo fi(item->url().path());
+ TQFileInfo fi(item->url().path());
if (!fi.exists())
return;
@@ -236,11 +236,11 @@ void DocDoxygenPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* it
//doxygen documentation mode (if catalog points to a .tag)
if (doxyItem->origUrl().endsWith("tag"))
{
- QString htmlUrl;
- QFileInfo fi2(item->url().directory(false) + "index.html");
+ TQString htmlUrl;
+ TQFileInfo fi2(item->url().directory(false) + "index.html");
if (fi2.exists())
htmlUrl = fi2.dirPath(true) + "/";
- QFileInfo fi(item->url().directory(false) + "html/index.html");
+ TQFileInfo fi(item->url().directory(false) + "html/index.html");
if (fi.exists())
htmlUrl = fi.dirPath(true) + "/";
@@ -248,8 +248,8 @@ void DocDoxygenPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* it
}
//KDE doxygen documentation mode (if catalog points to a index.html)
- QDir d;
- QValueStack<QString> dirStack;
+ TQDir d;
+ TQValueStack<TQString> dirStack;
dirStack.push(fi.dirPath(true));
do {
d.setPath(dirStack.pop());
@@ -258,24 +258,24 @@ void DocDoxygenPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* it
const QFileInfoList *dirEntries = d.entryInfoList();
if (!dirEntries) continue;
- QPtrListIterator<QFileInfo> it(*dirEntries);
+ TQPtrListIterator<TQFileInfo> it(*dirEntries);
for (; it.current(); ++it)
{
- QString fileName = it.current()->fileName();
+ TQString fileName = it.current()->fileName();
if (fileName == "." || fileName == ".." || fileName == "common" || fileName == "html")
continue;
if (it.current()->isDir())
dirStack.push(it.current()->absFilePath());
}
- if (QFile::exists(d.absPath() + "/html/index.html"))
+ if (TQFile::exists(d.absPath() + "/html/index.html"))
createBookIndex(d.absPath() + "/" + d.dirName() + ".tag", index, item);
} while (!dirStack.isEmpty());
}
void DocDoxygenPlugin::createTOC(DocumentationCatalogItem* item)
{
- QFileInfo fi(item->url().path());
+ TQFileInfo fi(item->url().path());
if (!fi.exists())
return;
@@ -286,11 +286,11 @@ void DocDoxygenPlugin::createTOC(DocumentationCatalogItem* item)
//doxygen documentation mode (if catalog points to a .tag)
if (doxyItem->origUrl().endsWith("tag"))
{
- QString htmlUrl;
- QFileInfo fi2(item->url().directory(false) + "index.html");
+ TQString htmlUrl;
+ TQFileInfo fi2(item->url().directory(false) + "index.html");
if (fi2.exists())
htmlUrl = fi2.dirPath(true) + "/";
- QFileInfo fi(item->url().directory(false) + "html/index.html");
+ TQFileInfo fi(item->url().directory(false) + "html/index.html");
if (fi.exists())
htmlUrl = fi.dirPath(true) + "/";
if (!htmlUrl.isEmpty())
@@ -298,8 +298,8 @@ void DocDoxygenPlugin::createTOC(DocumentationCatalogItem* item)
}
//KDE doxygen documentation mode (if catalog points to a index.html)
- QDir d;
- QValueStack<QString> dirStack;
+ TQDir d;
+ TQValueStack<TQString> dirStack;
dirStack.push(fi.dirPath(true));
do {
d.setPath(dirStack.pop());
@@ -308,17 +308,17 @@ void DocDoxygenPlugin::createTOC(DocumentationCatalogItem* item)
const QFileInfoList *dirEntries = d.entryInfoList();
if (!dirEntries) continue;
- QPtrListIterator<QFileInfo> it(*dirEntries);
+ TQPtrListIterator<TQFileInfo> it(*dirEntries);
for (; it.current(); ++it)
{
- QString fileName = it.current()->fileName();
+ TQString fileName = it.current()->fileName();
if (fileName == "." || fileName == ".." || fileName == "common" || fileName == "html")
continue;
if (it.current()->isDir())
dirStack.push(it.current()->absFilePath());
}
- if (QFile::exists(d.absPath() + "/html/index.html"))
+ if (TQFile::exists(d.absPath() + "/html/index.html"))
{
DocumentationItem *docItem = new DocumentationItem(DocumentationItem::Book, item, d.dirName());
docItem->setURL(KURL(d.absPath() + "/html/index.html"));
@@ -328,7 +328,7 @@ void DocDoxygenPlugin::createTOC(DocumentationCatalogItem* item)
} while (!dirStack.isEmpty());
}
-DocumentationCatalogItem *DocDoxygenPlugin::createCatalog(KListView *contents, const QString &title, const QString &url)
+DocumentationCatalogItem *DocDoxygenPlugin::createCatalog(KListView *contents, const TQString &title, const TQString &url)
{
kdDebug() << "DocDoxygenPlugin::createCatalog: url=" << url << endl;
DocumentationCatalogItem *item = new DoxyDocumentationCatalogItem(url, this, contents, title);
@@ -336,41 +336,41 @@ DocumentationCatalogItem *DocDoxygenPlugin::createCatalog(KListView *contents, c
return item;
}
-void DocDoxygenPlugin::createBookTOC(DocumentationItem *item, const QString &tagUrl, const QString &baseHtmlUrl)
+void DocDoxygenPlugin::createBookTOC(DocumentationItem *item, const TQString &tagUrl, const TQString &baseHtmlUrl)
{
- QString tagName;
+ TQString tagName;
if (tagUrl.isEmpty())
tagName = item->url().upURL().directory(false) + item->text(0) + ".tag";
else
tagName = tagUrl;
- QString baseUrl;
+ TQString baseUrl;
if (baseHtmlUrl.isEmpty())
baseUrl = item->url().directory(false);
else
baseUrl = baseHtmlUrl;
//@todo list html files in the directory if tag was not found
- if (!QFile::exists(tagName))
+ if (!TQFile::exists(tagName))
return;
- QStringList tagFileList;
+ TQStringList tagFileList;
if (tagName.endsWith(".tag"))
- tagFileList = tagFiles(QFileInfo(tagName).dirPath() + "/");
+ tagFileList = tagFiles(TQFileInfo(tagName).dirPath() + "/");
else
tagFileList += tagName;
- QStringList::ConstIterator end = tagFileList.constEnd();
- for (QStringList::ConstIterator it = tagFileList.constBegin(); it != end; ++it)
+ TQStringList::ConstIterator end = tagFileList.constEnd();
+ for (TQStringList::ConstIterator it = tagFileList.constBegin(); it != end; ++it)
{
- QFile f(*it);
+ TQFile f(*it);
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not open tag file: " << f.name() << endl;
return;
}
- QDomDocument dom;
+ TQDomDocument dom;
if (!dom.setContent(&f) || dom.documentElement().nodeName() != "tagfile")
{
kdDebug(9002) << "No valid tag file" << endl;
@@ -378,17 +378,17 @@ void DocDoxygenPlugin::createBookTOC(DocumentationItem *item, const QString &tag
}
f.close();
- QDomElement docEl = dom.documentElement();
+ TQDomElement docEl = dom.documentElement();
- QDomElement childEl = docEl.lastChild().toElement();
+ TQDomElement childEl = docEl.lastChild().toElement();
while (!childEl.isNull())
{
if (childEl.tagName() == "compound" && childEl.attribute("kind") == "class")
{
- QString classname = childEl.namedItem("name").firstChild().toText().data();
- QString filename = childEl.namedItem("filename").firstChild().toText().data();
+ TQString classname = childEl.namedItem("name").firstChild().toText().data();
+ TQString filename = childEl.namedItem("filename").firstChild().toText().data();
- if (QFile::exists(baseUrl + filename))
+ if (TQFile::exists(baseUrl + filename))
{
DocumentationItem *docItem = new DocumentationItem(DocumentationItem::Document,
item, classname);
@@ -400,27 +400,27 @@ void DocDoxygenPlugin::createBookTOC(DocumentationItem *item, const QString &tag
}
}
-void DocDoxygenPlugin::createBookIndex(const QString &tagfile, IndexBox* index, DocumentationCatalogItem* item, const QString &baseHtmlUrl)
+void DocDoxygenPlugin::createBookIndex(const TQString &tagfile, IndexBox* index, DocumentationCatalogItem* item, const TQString &baseHtmlUrl)
{
- QString tagName = tagfile;
+ TQString tagName = tagfile;
kdDebug() << tagfile << endl;
- if (!QFile::exists(tagName))
+ if (!TQFile::exists(tagName))
return;
- QString prefix = baseHtmlUrl.isEmpty() ? KURL(tagfile).directory(false) + "html/" : baseHtmlUrl;
+ TQString prefix = baseHtmlUrl.isEmpty() ? KURL(tagfile).directory(false) + "html/" : baseHtmlUrl;
- QStringList tagFileList = tagFiles(QFileInfo(tagName).dirPath() + "/");
+ TQStringList tagFileList = tagFiles(TQFileInfo(tagName).dirPath() + "/");
- QStringList::ConstIterator end = tagFileList.constEnd();
- for (QStringList::ConstIterator it = tagFileList.constBegin(); it != end; ++it)
+ TQStringList::ConstIterator end = tagFileList.constEnd();
+ for (TQStringList::ConstIterator it = tagFileList.constBegin(); it != end; ++it)
{
- QFile f(*it);
+ TQFile f(*it);
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not open tag file: " << f.name() << endl;
return;
}
- QDomDocument dom;
+ TQDomDocument dom;
if (!dom.setContent(&f) || dom.documentElement().nodeName() != "tagfile")
{
kdDebug(9002) << "No valid tag file" << endl;
@@ -428,17 +428,17 @@ void DocDoxygenPlugin::createBookIndex(const QString &tagfile, IndexBox* index,
}
f.close();
- QDomElement docEl = dom.documentElement();
+ TQDomElement docEl = dom.documentElement();
createIndexFromTag(dom, index, item, docEl, prefix);
}
}
-void DocDoxygenPlugin::createIndexFromTag(QDomDocument &dom, IndexBox *index,
- DocumentationCatalogItem *item, QDomElement &parentEl, const QString &prefix)
+void DocDoxygenPlugin::createIndexFromTag(TQDomDocument &dom, IndexBox *index,
+ DocumentationCatalogItem *item, TQDomElement &parentEl, const TQString &prefix)
{
- QDomElement docEl = parentEl;
+ TQDomElement docEl = parentEl;
- QDomElement childEl = docEl.firstChild().toElement();
+ TQDomElement childEl = docEl.firstChild().toElement();
while (!childEl.isNull())
{
if (childEl.tagName() == "compound" &&
@@ -446,8 +446,8 @@ void DocDoxygenPlugin::createIndexFromTag(QDomDocument &dom, IndexBox *index,
|| (childEl.attribute("kind") == "struct")
|| (childEl.attribute("kind") == "namespace") ))
{
- QString classname = childEl.namedItem("name").firstChild().toText().data();
- QString filename = childEl.namedItem("filename").firstChild().toText().data();
+ TQString classname = childEl.namedItem("name").firstChild().toText().data();
+ TQString filename = childEl.namedItem("filename").firstChild().toText().data();
IndexItemProto *indexItem = new IndexItemProto(this, item, index, classname,
i18n("%1 Class Reference").arg(classname));
@@ -460,10 +460,10 @@ void DocDoxygenPlugin::createIndexFromTag(QDomDocument &dom, IndexBox *index,
|| (childEl.attribute("kind") == "slot")
|| (childEl.attribute("kind") == "signal") ))
{
- QString classname = parentEl.namedItem("name").firstChild().toText().data();
- QString membername = childEl.namedItem("name").firstChild().toText().data();
- QString anchor = childEl.namedItem("anchor").firstChild().toText().data();
- QString arglist = childEl.namedItem("arglist").firstChild().toText().data();
+ TQString classname = parentEl.namedItem("name").firstChild().toText().data();
+ TQString membername = childEl.namedItem("name").firstChild().toText().data();
+ TQString anchor = childEl.namedItem("anchor").firstChild().toText().data();
+ TQString arglist = childEl.namedItem("arglist").firstChild().toText().data();
if (classname != membername)
{
@@ -482,44 +482,44 @@ ProjectDocumentationPlugin *DocDoxygenPlugin::projectDocumentationPlugin(Project
return DocumentationPlugin::projectDocumentationPlugin(type);
}
-QStringList DocDoxygenPlugin::tagFiles(const QString& path, int level)
+TQStringList DocDoxygenPlugin::tagFiles(const TQString& path, int level)
{
- QStringList r;
- QDir dir(path);
+ TQStringList r;
+ TQDir dir(path);
if (level > 10) return r;
if (!dir.isReadable()) return r;
if (!dir.exists()) return r;
- QStringList dirList;
- QStringList fileList;
- QStringList::Iterator it;
+ TQStringList dirList;
+ TQStringList fileList;
+ TQStringList::Iterator it;
- dir.setFilter ( QDir::Dirs);
+ dir.setFilter ( TQDir::Dirs);
dirList = dir.entryList();
dirList.remove(".");
dirList.remove("..");
- dir.setFilter(QDir::Files | QDir::Hidden | QDir::System);
+ dir.setFilter(TQDir::Files | TQDir::Hidden | TQDir::System);
fileList = dir.entryList();
- QStringList::Iterator end = dirList.end();
+ TQStringList::Iterator end = dirList.end();
for ( it = dirList.begin(); it != end; ++it )
{
- QString name = *it;
- if (QFileInfo( dir, *it ).isSymLink())
+ TQString name = *it;
+ if (TQFileInfo( dir, *it ).isSymLink())
continue;
r += tagFiles(path + name + "/", level + 1 );
}
- QStringList::Iterator fend = fileList.end();
+ TQStringList::Iterator fend = fileList.end();
for ( it = fileList.begin(); it != fend; ++it )
{
- QString name = *it;
- QFileInfo fi( dir, *it );
+ TQString name = *it;
+ TQFileInfo fi( dir, *it );
if (fi.isSymLink() || !fi.isFile())
continue;
- if (QDir::match(QString("*.tag"), name))
+ if (TQDir::match(TQString("*.tag"), name))
r += (path+name);
}
diff --git a/parts/documentation/plugins/doxygen/docdoxygenplugin.h b/parts/documentation/plugins/doxygen/docdoxygenplugin.h
index 75d36787..a272b8df 100644
--- a/parts/documentation/plugins/doxygen/docdoxygenplugin.h
+++ b/parts/documentation/plugins/doxygen/docdoxygenplugin.h
@@ -29,12 +29,12 @@ class DocDoxygenPlugin: public DocumentationPlugin
{
Q_OBJECT
public:
- DocDoxygenPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocDoxygenPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocDoxygenPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual DocumentationCatalogItem *createCatalog(KListView *contents, const QString &title, const QString &url);
+ virtual DocumentationCatalogItem *createCatalog(KListView *contents, const TQString &title, const TQString &url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
@@ -42,25 +42,25 @@ public:
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
- virtual QString catalogTitle(const QString& url);
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
+ virtual TQString catalogTitle(const TQString& url);
virtual void autoSetupPlugin();
virtual ProjectDocumentationPlugin *projectDocumentationPlugin(ProjectDocType type);
protected:
- void createBookTOC(DocumentationItem* item, const QString &tagUrl = QString::null,
- const QString &baseHtmlUrl = QString::null);
- void createBookIndex(const QString &tagfile, IndexBox* index, DocumentationCatalogItem* item, const QString &baseHtmlUrl = QString::null);
+ void createBookTOC(DocumentationItem* item, const TQString &tagUrl = TQString::null,
+ const TQString &baseHtmlUrl = TQString::null);
+ void createBookIndex(const TQString &tagfile, IndexBox* index, DocumentationCatalogItem* item, const TQString &baseHtmlUrl = TQString::null);
- void createIndexFromTag(QDomDocument &dom, IndexBox* index, DocumentationCatalogItem* item,
- QDomElement &parentEl, const QString &prefix);
+ void createIndexFromTag(TQDomDocument &dom, IndexBox* index, DocumentationCatalogItem* item,
+ TQDomElement &parentEl, const TQString &prefix);
- void autoSetupDocs(const QString &defaultDir, const QString &searchDir,
- const QString &name);
+ void autoSetupDocs(const TQString &defaultDir, const TQString &searchDir,
+ const TQString &name);
/**
* Returns all the tag files from a directory and its subdirectories.
@@ -68,7 +68,7 @@ protected:
* @param level the depth of the current search
* @return a list with the absolute path to the ".tag" files in startDir
*/
- QStringList tagFiles(const QString &startDir, int level = 0);
+ TQStringList tagFiles(const TQString &startDir, int level = 0);
};
diff --git a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp
index a4480cbf..6dd73707 100644
--- a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp
+++ b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.cpp
@@ -21,10 +21,10 @@
#include <unistd.h>
-#include <qdom.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdialog.h>
+#include <tqdom.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdialog.h>
#include <kurl.h>
#include <kaboutdata.h>
@@ -42,20 +42,20 @@
class TOCDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
- TOCDocumentationCatalogItem(const QString &tocFile, DocumentationPlugin* plugin,
- KListView *parent, const QString &name)
+ TOCDocumentationCatalogItem(const TQString &tocFile, DocumentationPlugin* plugin,
+ KListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_tocFile(tocFile)
{
}
- TOCDocumentationCatalogItem(const QString &tocFile, DocumentationPlugin* plugin,
- DocumentationItem *parent, const QString &name)
+ TOCDocumentationCatalogItem(const TQString &tocFile, DocumentationPlugin* plugin,
+ DocumentationItem *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_tocFile(tocFile)
{
}
- QString tocFile() const { return m_tocFile; }
+ TQString tocFile() const { return m_tocFile; }
private:
- QString m_tocFile;
+ TQString m_tocFile;
};
@@ -63,8 +63,8 @@ static const KDevPluginInfo data("dockdevtocplugin");
typedef KDevGenericFactory<DocKDevTOCPlugin> DocKDevTOCPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdockdevtocplugin, DocKDevTOCPluginFactory(data) )
-DocKDevTOCPlugin::DocKDevTOCPlugin(QObject* parent, const char* name,
- const QStringList /*args*/)
+DocKDevTOCPlugin::DocKDevTOCPlugin(TQObject* parent, const char* name,
+ const TQStringList /*args*/)
:DocumentationPlugin(DocKDevTOCPluginFactory::instance()->config(), parent, name)
{
setCapabilities(Index);
@@ -75,45 +75,45 @@ DocKDevTOCPlugin::~DocKDevTOCPlugin()
{
}
-QString DocKDevTOCPlugin::pluginName() const
+TQString DocKDevTOCPlugin::pluginName() const
{
return i18n("KDevelopTOC Documentation Collection");
}
-DocumentationCatalogItem* DocKDevTOCPlugin::createCatalog(KListView* contents, const QString& title, const QString& url)
+DocumentationCatalogItem* DocKDevTOCPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
{
return new TOCDocumentationCatalogItem(url, this, contents, title);
}
-QPair<KFile::Mode, QString> DocKDevTOCPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocKDevTOCPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "*.toc");
+ return QPair<KFile::Mode, TQString>(KFile::File, "*.toc");
}
-QString DocKDevTOCPlugin::catalogTitle(const QString& url)
+TQString DocKDevTOCPlugin::catalogTitle(const TQString& url)
{
- QFileInfo fi(url);
+ TQFileInfo fi(url);
if (!fi.exists())
- return QString::null;
+ return TQString::null;
- QFile f(url);
+ TQFile f(url);
if (!f.open(IO_ReadOnly))
- return QString::null;
+ return TQString::null;
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || (doc.doctype().name() != "kdeveloptoc"))
- return QString::null;
+ return TQString::null;
f.close();
- QDomElement titleEl = doc.documentElement().namedItem("title").toElement();
+ TQDomElement titleEl = doc.documentElement().namedItem("title").toElement();
return titleEl.firstChild().toText().data();
}
-QStringList DocKDevTOCPlugin::fullTextSearchLocations()
+TQStringList DocKDevTOCPlugin::fullTextSearchLocations()
{
- return QStringList();
+ return TQStringList();
}
bool DocKDevTOCPlugin::needRefreshIndex(DocumentationCatalogItem* /*item*/)
@@ -123,9 +123,9 @@ bool DocKDevTOCPlugin::needRefreshIndex(DocumentationCatalogItem* /*item*/)
void DocKDevTOCPlugin::autoSetupPlugin()
{
- QStringList tocsDir = DocKDevTOCPluginFactory::instance()->dirs()->findAllResources("data", "kdevdocumentation/tocs/*.toc");
+ TQStringList tocsDir = DocKDevTOCPluginFactory::instance()->dirs()->findAllResources("data", "kdevdocumentation/tocs/*.toc");
- for (QStringList::const_iterator it = tocsDir.begin(); it != tocsDir.end(); ++it)
+ for (TQStringList::const_iterator it = tocsDir.begin(); it != tocsDir.end(); ++it)
{
config->setGroup("Locations");
config->writePathEntry(catalogTitle(*it), *it);
@@ -138,15 +138,15 @@ void DocKDevTOCPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* it
if (!tocItem)
return;
- QFileInfo fi(tocItem->tocFile());
+ TQFileInfo fi(tocItem->tocFile());
- QFile f(tocItem->tocFile());
+ TQFile f(tocItem->tocFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << tocItem->tocFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || doc.doctype().name() != "kdeveloptoc")
{
kdDebug(9002) << "Not a valid kdeveloptoc file: " << tocItem->tocFile() << endl;
@@ -154,21 +154,21 @@ void DocKDevTOCPlugin::createIndex(IndexBox* index, DocumentationCatalogItem* it
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement baseEl = docEl.namedItem("base").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement baseEl = docEl.namedItem("base").toElement();
- QString base;
+ TQString base;
if (!baseEl.isNull())
- base = baseEl.attribute("href", QString::null);
+ base = baseEl.attribute("href", TQString::null);
- QDomElement indexEl = docEl.namedItem("index").toElement();
- QDomElement childEl = indexEl.firstChild().toElement();
+ TQDomElement indexEl = docEl.namedItem("index").toElement();
+ TQDomElement childEl = indexEl.firstChild().toElement();
while (!childEl.isNull())
{
if (childEl.tagName() == "entry")
{
- QString name = childEl.attribute("name");
- QString url = childEl.attribute("url");
+ TQString name = childEl.attribute("name");
+ TQString url = childEl.attribute("url");
IndexItemProto *ii = new IndexItemProto(this, item, index, name, item->text(0));
ii->addURL(KURL(constructURL(base, url)));
@@ -183,15 +183,15 @@ void DocKDevTOCPlugin::createTOC(DocumentationCatalogItem* item)
if (!tocItem)
return;
- QFileInfo fi(tocItem->tocFile());
+ TQFileInfo fi(tocItem->tocFile());
- QFile f(tocItem->tocFile());
+ TQFile f(tocItem->tocFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << tocItem->tocFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || doc.doctype().name() != "kdeveloptoc")
{
kdDebug(9002) << "Not a valid kdeveloptoc file: " << tocItem->tocFile() << endl;
@@ -199,30 +199,30 @@ void DocKDevTOCPlugin::createTOC(DocumentationCatalogItem* item)
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement baseEl = docEl.namedItem("base").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement baseEl = docEl.namedItem("base").toElement();
- QString base;
+ TQString base;
if (!baseEl.isNull())
- base = baseEl.attribute("href", QString::null);
+ base = baseEl.attribute("href", TQString::null);
- QDomElement childEl = docEl.lastChild().toElement();
+ TQDomElement childEl = docEl.lastChild().toElement();
addTocSect(tocItem, childEl, base, 1);
}
-void DocKDevTOCPlugin::addTocSect(DocumentationItem *parent, QDomElement childEl, const QString &base, uint level)
+void DocKDevTOCPlugin::addTocSect(DocumentationItem *parent, TQDomElement childEl, const TQString &base, uint level)
{
while (!childEl.isNull())
{
- if (childEl.tagName() == QString("tocsect%1").arg(level))
+ if (childEl.tagName() == TQString("tocsect%1").arg(level))
{
- QString name = childEl.attribute("name");
- QString url = childEl.attribute("url");
+ TQString name = childEl.attribute("name");
+ TQString url = childEl.attribute("url");
DocumentationItem *item = new DocumentationItem(level == 1 ? DocumentationItem::Book : DocumentationItem::Document, parent, name);
item->setURL(KURL(constructURL(base, url)));
- QDomElement grandchildEl = childEl.lastChild().toElement();
+ TQDomElement grandchildEl = childEl.lastChild().toElement();
addTocSect(item, grandchildEl, base, level+1);
}
childEl = childEl.previousSibling().toElement();
@@ -235,15 +235,15 @@ void DocKDevTOCPlugin::setCatalogURL(DocumentationCatalogItem* item)
if (!tocItem)
return;
- QFileInfo fi(tocItem->tocFile());
+ TQFileInfo fi(tocItem->tocFile());
- QFile f(tocItem->tocFile());
+ TQFile f(tocItem->tocFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << tocItem->tocFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || doc.doctype().name() != "kdeveloptoc")
{
kdDebug(9002) << "Not a valid kdeveloptoc file: " << tocItem->tocFile() << endl;
@@ -251,20 +251,20 @@ void DocKDevTOCPlugin::setCatalogURL(DocumentationCatalogItem* item)
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement baseEl = docEl.namedItem("base").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement baseEl = docEl.namedItem("base").toElement();
if (item->url().isEmpty())
{
if (baseEl.isNull())
item->setURL(KURL());
else
- item->setURL(KURL(constructURL(baseEl.attribute("href", QString::null),
- baseEl.attribute("url", QString::null))));
+ item->setURL(KURL(constructURL(baseEl.attribute("href", TQString::null),
+ baseEl.attribute("url", TQString::null))));
}
}
-QString DocKDevTOCPlugin::constructURL(const QString &base, const QString &url)
+TQString DocKDevTOCPlugin::constructURL(const TQString &base, const TQString &url)
{
if (base.isEmpty() && !url.isEmpty())
return url;
diff --git a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h
index 68bfd0e2..626848b9 100644
--- a/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h
+++ b/parts/documentation/plugins/kdevtoc/dockdevtocplugin.h
@@ -20,7 +20,7 @@
#ifndef DOCKDEVTOCPLUGIN_H
#define DOCKDEVTOCPLUGIN_H
-#include <qdom.h>
+#include <tqdom.h>
#include <kdevdocumentationplugin.h>
@@ -28,27 +28,27 @@ class DocKDevTOCPlugin : public DocumentationPlugin
{
Q_OBJECT
public:
- DocKDevTOCPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocKDevTOCPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocKDevTOCPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual QString catalogTitle(const QString& url);
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const QString& title, const QString& url);
+ virtual TQString catalogTitle(const TQString& url);
+ virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
- virtual QPair<KFile::Mode, QString > catalogLocatorProps();
+ virtual QPair<KFile::Mode, TQString > catalogLocatorProps();
virtual void autoSetupPlugin();
protected:
- void addTocSect(DocumentationItem *parent, QDomElement childEl, const QString &base, uint level);
- static QString constructURL(const QString &base, const QString &url) ;
+ void addTocSect(DocumentationItem *parent, TQDomElement childEl, const TQString &base, uint level);
+ static TQString constructURL(const TQString &base, const TQString &url) ;
};
#endif
diff --git a/parts/documentation/plugins/pdb/docpdbplugin.cpp b/parts/documentation/plugins/pdb/docpdbplugin.cpp
index 901eeffe..8fdc4643 100644
--- a/parts/documentation/plugins/pdb/docpdbplugin.cpp
+++ b/parts/documentation/plugins/pdb/docpdbplugin.cpp
@@ -31,7 +31,7 @@ static const KAboutData data("docpdbplugin", I18N_NOOP("PalmDoc documentation pl
typedef KDevGenericFactory<DocPDBPlugin> DocPDBPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocpdbplugin, DocPDBPluginFactory(&data) )
-DocPDBPlugin::DocPDBPlugin(QObject* parent, const char* name, const QStringList args)
+DocPDBPlugin::DocPDBPlugin(TQObject* parent, const char* name, const TQStringList args)
:DocumentationPlugin(DocPDBPluginFactory::instance()->config(), parent, name)
{
setCapabilities(CustomDocumentationTitles | ProjectUserManual);
@@ -47,31 +47,31 @@ bool DocPDBPlugin::needRefreshIndex(DocumentationCatalogItem* item)
return false;
}
-QString DocPDBPlugin::pluginName() const
+TQString DocPDBPlugin::pluginName() const
{
return i18n("PalmDoc Documentation Collection");
}
-DocumentationCatalogItem* DocPDBPlugin::createCatalog(KListView* contents, const QString& title, const QString& url)
+DocumentationCatalogItem* DocPDBPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
return item;
}
-QPair<KFile::Mode, QString> DocPDBPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocPDBPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "all/allfiles");
+ return QPair<KFile::Mode, TQString>(KFile::File, "all/allfiles");
}
-QString DocPDBPlugin::catalogTitle(const QString& /*url*/)
+TQString DocPDBPlugin::catalogTitle(const TQString& /*url*/)
{
- return QString::null;
+ return TQString::null;
}
-QStringList DocPDBPlugin::fullTextSearchLocations()
+TQStringList DocPDBPlugin::fullTextSearchLocations()
{
- return QStringList();
+ return TQStringList();
}
diff --git a/parts/documentation/plugins/pdb/docpdbplugin.h b/parts/documentation/plugins/pdb/docpdbplugin.h
index f639e0cf..b9544a7b 100644
--- a/parts/documentation/plugins/pdb/docpdbplugin.h
+++ b/parts/documentation/plugins/pdb/docpdbplugin.h
@@ -24,12 +24,12 @@
class DocPDBPlugin : public DocumentationPlugin {
public:
- DocPDBPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocPDBPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocPDBPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const QString& title, const QString& url);
+ virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
@@ -37,10 +37,10 @@ public:
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
- virtual QString catalogTitle(const QString& url);
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
+ virtual TQString catalogTitle(const TQString& url);
virtual void autoSetupPlugin();
diff --git a/parts/documentation/plugins/pdf/docpdfplugin.cpp b/parts/documentation/plugins/pdf/docpdfplugin.cpp
index 5d8b7a78..79dab511 100644
--- a/parts/documentation/plugins/pdf/docpdfplugin.cpp
+++ b/parts/documentation/plugins/pdf/docpdfplugin.cpp
@@ -31,7 +31,7 @@ static const KAboutData data("docpdfplugin", I18N_NOOP("PDF documentation plugin
typedef KDevGenericFactory<DocPDFPlugin> DocPDFPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocpdfplugin, DocPDFPluginFactory(&data) )
-DocPDFPlugin::DocPDFPlugin(QObject* parent, const char* name, const QStringList args)
+DocPDFPlugin::DocPDFPlugin(TQObject* parent, const char* name, const TQStringList args)
:DocumentationPlugin(DocPDFPluginFactory::instance()->config(), parent, name)
{
setCapabilities(CustomDocumentationTitles | ProjectUserManual);
@@ -47,31 +47,31 @@ bool DocPDFPlugin::needRefreshIndex(DocumentationCatalogItem* item)
return false;
}
-QString DocPDFPlugin::pluginName() const
+TQString DocPDFPlugin::pluginName() const
{
return i18n("PDF Documentation Collection");
}
-DocumentationCatalogItem* DocPDFPlugin::createCatalog(KListView* contents, const QString& title, const QString& url)
+DocumentationCatalogItem* DocPDFPlugin::createCatalog(KListView* contents, const TQString& title, const TQString& url)
{
DocumentationCatalogItem *item = new DocumentationCatalogItem(this, contents, title);
item->setURL(KURL(url));
return item;
}
-QPair<KFile::Mode, QString> DocPDFPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocPDFPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "*.pdf");
+ return QPair<KFile::Mode, TQString>(KFile::File, "*.pdf");
}
-QString DocPDFPlugin::catalogTitle(const QString& /*url*/)
+TQString DocPDFPlugin::catalogTitle(const TQString& /*url*/)
{
- return QString::null;
+ return TQString::null;
}
-QStringList DocPDFPlugin::fullTextSearchLocations()
+TQStringList DocPDFPlugin::fullTextSearchLocations()
{
- return QStringList();
+ return TQStringList();
}
diff --git a/parts/documentation/plugins/pdf/docpdfplugin.h b/parts/documentation/plugins/pdf/docpdfplugin.h
index c78325d4..b7e8b26b 100644
--- a/parts/documentation/plugins/pdf/docpdfplugin.h
+++ b/parts/documentation/plugins/pdf/docpdfplugin.h
@@ -24,12 +24,12 @@
class DocPDFPlugin : public DocumentationPlugin {
public:
- DocPDFPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocPDFPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocPDFPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual DocumentationCatalogItem* createCatalog(KListView* contents, const QString& title, const QString& url);
+ virtual DocumentationCatalogItem* createCatalog(KListView* contents, const TQString& title, const TQString& url);
virtual void createTOC(DocumentationCatalogItem* item);
virtual void setCatalogURL(DocumentationCatalogItem* item);
@@ -37,10 +37,10 @@ public:
virtual bool needRefreshIndex(DocumentationCatalogItem* item);
virtual void createIndex(IndexBox* index, DocumentationCatalogItem* item);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
- virtual QString catalogTitle(const QString& url);
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
+ virtual TQString catalogTitle(const TQString& url);
virtual void autoSetupPlugin();
diff --git a/parts/documentation/plugins/qt/docqtplugin.cpp b/parts/documentation/plugins/qt/docqtplugin.cpp
index 90237b7c..b4118f97 100644
--- a/parts/documentation/plugins/qt/docqtplugin.cpp
+++ b/parts/documentation/plugins/qt/docqtplugin.cpp
@@ -21,9 +21,9 @@
#include <unistd.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdialog.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdialog.h>
#include <kurl.h>
#include <kaboutdata.h>
@@ -40,27 +40,27 @@
class QtDocumentationCatalogItem: public DocumentationCatalogItem
{
public:
- QtDocumentationCatalogItem(const QString &dcfFile, DocumentationPlugin* plugin,
- KListView *parent, const QString &name)
+ QtDocumentationCatalogItem(const TQString &dcfFile, DocumentationPlugin* plugin,
+ KListView *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_dcfFile(dcfFile)
{
}
- QtDocumentationCatalogItem(const QString &dcfFile, DocumentationPlugin* plugin,
- DocumentationItem *parent, const QString &name)
+ QtDocumentationCatalogItem(const TQString &dcfFile, DocumentationPlugin* plugin,
+ DocumentationItem *parent, const TQString &name)
:DocumentationCatalogItem(plugin, parent, name), m_dcfFile(dcfFile)
{
}
- QString dcfFile() const { return m_dcfFile; }
+ TQString dcfFile() const { return m_dcfFile; }
private:
- QString m_dcfFile;
+ TQString m_dcfFile;
};
static const KDevPluginInfo data("docqtplugin");
typedef KDevGenericFactory<DocQtPlugin> DocQtPluginFactory;
K_EXPORT_COMPONENT_FACTORY( libdocqtplugin, DocQtPluginFactory(data) )
-DocQtPlugin::DocQtPlugin(QObject* parent, const char* name, const QStringList)
+DocQtPlugin::DocQtPlugin(TQObject* parent, const char* name, const TQStringList)
:DocumentationPlugin(DocQtPluginFactory::instance()->config(), parent, name)
{
setCapabilities(Index | FullTextSearch | CustomDocumentationTitles);
@@ -77,15 +77,15 @@ void DocQtPlugin::createTOC(DocumentationCatalogItem *item)
if (!qtItem)
return;
- QFileInfo fi(qtItem->dcfFile());
+ TQFileInfo fi(qtItem->dcfFile());
- QFile f(qtItem->dcfFile());
+ TQFile f(qtItem->dcfFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << qtItem->dcfFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || doc.doctype().name() != "DCF")
{
kdDebug(9002) << "Not a valid DCF file: " << qtItem->dcfFile() << endl;
@@ -93,28 +93,28 @@ void DocQtPlugin::createTOC(DocumentationCatalogItem *item)
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement titleEl = docEl.namedItem("DCF").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement titleEl = docEl.namedItem("DCF").toElement();
- QDomElement childEl = docEl.lastChild().toElement();
+ TQDomElement childEl = docEl.lastChild().toElement();
while (!childEl.isNull())
{
if (childEl.tagName() == "section")
{
- QString ref = childEl.attribute("ref");
- QString title = childEl.attribute("title");
+ TQString ref = childEl.attribute("ref");
+ TQString title = childEl.attribute("title");
DocumentationItem *sectionItem = new DocumentationItem(DocumentationItem::Book, item, title);
KURL sectionUrl(fi.dirPath(true) + "/" + ref);
sectionItem->setURL(sectionUrl);
- QDomElement grandChild = childEl.lastChild().toElement();
+ TQDomElement grandChild = childEl.lastChild().toElement();
while(!grandChild.isNull())
{
if (grandChild.tagName() == "keyword")
{
- QString keyRef = grandChild.attribute("ref");
- QString keyTitle = grandChild.text();
+ TQString keyRef = grandChild.attribute("ref");
+ TQString keyTitle = grandChild.text();
DocumentationItem *keyItem = new DocumentationItem(DocumentationItem::Document, sectionItem, keyTitle);
KURL keyUrl(fi.dirPath(true) + "/" + keyRef);
@@ -122,8 +122,8 @@ void DocQtPlugin::createTOC(DocumentationCatalogItem *item)
}
if (grandChild.tagName() == "section")
{
- QString keyRef = grandChild.attribute("ref");
- QString keyTitle = grandChild.attribute("title");
+ TQString keyRef = grandChild.attribute("ref");
+ TQString keyTitle = grandChild.attribute("title");
DocumentationItem *keyItem = new DocumentationItem(DocumentationItem::Book, sectionItem, keyTitle);
KURL keyUrl(fi.dirPath(true) + "/" + keyRef);
keyItem->setURL(keyUrl);
@@ -137,7 +137,7 @@ void DocQtPlugin::createTOC(DocumentationCatalogItem *item)
void DocQtPlugin::autoSetupPlugin()
{
- QString qtDocDir(QT_DOCDIR);
+ TQString qtDocDir(QT_DOCDIR);
qtDocDir = URLUtil::envExpand(qtDocDir);
if (qtDocDir.isEmpty())
{
@@ -150,11 +150,11 @@ void DocQtPlugin::autoSetupPlugin()
config->setGroup("Index Settings");
config->writeEntry("Qt Reference Documentation", true);
config->setGroup("Locations");
- config->writePathEntry("Qt Reference Documentation", qtDocDir + QString("/qt.dcf"));
- config->writePathEntry("Qt Assistant Manual", qtDocDir + QString("/assistant.dcf"));
- config->writePathEntry("Qt Designer Manual", qtDocDir + QString("/designer.dcf"));
- config->writePathEntry("Guide to the Qt Translation Tools", qtDocDir + QString("/linguist.dcf"));
- config->writePathEntry("qmake User Guide", qtDocDir + QString("/qmake.dcf"));
+ config->writePathEntry("Qt Reference Documentation", qtDocDir + TQString("/qt.dcf"));
+ config->writePathEntry("Qt Assistant Manual", qtDocDir + TQString("/assistant.dcf"));
+ config->writePathEntry("Qt Designer Manual", qtDocDir + TQString("/designer.dcf"));
+ config->writePathEntry("Guide to the Qt Translation Tools", qtDocDir + TQString("/linguist.dcf"));
+ config->writePathEntry("qmake User Guide", qtDocDir + TQString("/qmake.dcf"));
}
}
@@ -164,15 +164,15 @@ void DocQtPlugin::setCatalogURL(DocumentationCatalogItem *item)
if (!qtItem)
return;
- QFileInfo fi(qtItem->dcfFile());
+ TQFileInfo fi(qtItem->dcfFile());
- QFile f(qtItem->dcfFile());
+ TQFile f(qtItem->dcfFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << qtItem->dcfFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || doc.doctype().name() != "DCF")
{
kdDebug(9002) << "Not a valid DCF file: " << qtItem->dcfFile() << endl;
@@ -180,17 +180,17 @@ void DocQtPlugin::setCatalogURL(DocumentationCatalogItem *item)
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement titleEl = docEl.namedItem("DCF").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement titleEl = docEl.namedItem("DCF").toElement();
if (item->url().isEmpty())
{
- KURL url(fi.dirPath(true) + "/" + docEl.attribute("ref", QString::null));
+ KURL url(fi.dirPath(true) + "/" + docEl.attribute("ref", TQString::null));
item->setURL(url);
}
}
-QString DocQtPlugin::pluginName() const
+TQString DocQtPlugin::pluginName() const
{
return i18n("Qt Documentation Collection");
}
@@ -201,9 +201,9 @@ bool DocQtPlugin::needRefreshIndex(DocumentationCatalogItem *item)
if (!qtItem)
return false;
- QFileInfo fi(qtItem->dcfFile());
+ TQFileInfo fi(qtItem->dcfFile());
config->setGroup("Index");
- if (fi.lastModified() > config->readDateTimeEntry(qtItem->text(0), new QDateTime()))
+ if (fi.lastModified() > config->readDateTimeEntry(qtItem->text(0), new TQDateTime()))
{
kdDebug() << "need rebuild index for " << qtItem->text(0) << endl;
config->writeEntry(item->text(0), fi.lastModified());
@@ -219,15 +219,15 @@ void DocQtPlugin::createIndex(IndexBox *index, DocumentationCatalogItem *item)
if (!qtItem)
return;
- QFileInfo fi(qtItem->dcfFile());
+ TQFileInfo fi(qtItem->dcfFile());
- QFile f(qtItem->dcfFile());
+ TQFile f(qtItem->dcfFile());
if (!f.open(IO_ReadOnly))
{
kdDebug(9002) << "Could not read" << qtItem->dcfFile() << endl;
return;
}
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || doc.doctype().name() != "DCF")
{
kdDebug(9002) << "Not a valid DCF file: " << qtItem->dcfFile() << endl;
@@ -235,10 +235,10 @@ void DocQtPlugin::createIndex(IndexBox *index, DocumentationCatalogItem *item)
}
f.close();
- QDomElement docEl = doc.documentElement();
- QDomElement titleEl = docEl.namedItem("DCF").toElement();
+ TQDomElement docEl = doc.documentElement();
+ TQDomElement titleEl = docEl.namedItem("DCF").toElement();
- QDomElement childEl = docEl.firstChild().toElement();
+ TQDomElement childEl = docEl.firstChild().toElement();
while (!childEl.isNull())
{
if (childEl.tagName() == "section")
@@ -249,26 +249,26 @@ void DocQtPlugin::createIndex(IndexBox *index, DocumentationCatalogItem *item)
}
}
-void DocQtPlugin::createSectionIndex(QFileInfo &fi, IndexBox *index, DocumentationCatalogItem *item,
- QDomElement section)
+void DocQtPlugin::createSectionIndex(TQFileInfo &fi, IndexBox *index, DocumentationCatalogItem *item,
+ TQDomElement section)
{
//adymo: do not load section to index for Qt reference documentation
- QString title = section.attribute("title");
+ TQString title = section.attribute("title");
if (fi.fileName() != "qt.dcf")
{
- QString ref = section.attribute("ref");
+ TQString ref = section.attribute("ref");
IndexItemProto *ii = new IndexItemProto(this, item, index, title, item->text(0));
ii->addURL(KURL(fi.dirPath(true) + "/" + ref));
}
- QDomElement grandChild = section.firstChild().toElement();
+ TQDomElement grandChild = section.firstChild().toElement();
while(!grandChild.isNull())
{
if (grandChild.tagName() == "keyword")
{
- QString keyRef = grandChild.attribute("ref");
- QString keyTitle = grandChild.text();
+ TQString keyRef = grandChild.attribute("ref");
+ TQString keyTitle = grandChild.text();
//adymo: a little hack to avoid unwanted elements
if (keyRef != "qdir-example.html")
@@ -285,20 +285,20 @@ void DocQtPlugin::createSectionIndex(QFileInfo &fi, IndexBox *index, Documentati
}
}
-QStringList DocQtPlugin::fullTextSearchLocations()
+TQStringList DocQtPlugin::fullTextSearchLocations()
{
- QStringList locs;
+ TQStringList locs;
- QMap<QString, QString> entryMap = config->entryMap("Locations");
+ TQMap<TQString, TQString> entryMap = config->entryMap("Locations");
- for (QMap<QString, QString>::const_iterator it = entryMap.begin();
+ for (TQMap<TQString, TQString>::const_iterator it = entryMap.begin();
it != entryMap.end(); ++it)
{
config->setGroup("Search Settings");
if (config->readBoolEntry(it.key(), false))
{
config->setGroup("Locations");
- QFileInfo fi(config->readPathEntry(it.key()));
+ TQFileInfo fi(config->readPathEntry(it.key()));
locs << fi.dirPath(true);
}
}
@@ -306,32 +306,32 @@ QStringList DocQtPlugin::fullTextSearchLocations()
return locs;
}
-QPair<KFile::Mode, QString> DocQtPlugin::catalogLocatorProps()
+QPair<KFile::Mode, TQString> DocQtPlugin::catalogLocatorProps()
{
- return QPair<KFile::Mode, QString>(KFile::File, "*.xml *.dcf");
+ return QPair<KFile::Mode, TQString>(KFile::File, "*.xml *.dcf");
}
-QString DocQtPlugin::catalogTitle(const QString &url)
+TQString DocQtPlugin::catalogTitle(const TQString &url)
{
- QFileInfo fi(url);
+ TQFileInfo fi(url);
if (!fi.exists())
- return QString::null;
+ return TQString::null;
- QFile f(url);
+ TQFile f(url);
if (!f.open(IO_ReadOnly))
- return QString::null;
+ return TQString::null;
- QDomDocument doc;
+ TQDomDocument doc;
if (!doc.setContent(&f) || (doc.doctype().name() != "DCF"))
- return QString::null;
+ return TQString::null;
f.close();
- QDomElement docEl = doc.documentElement();
+ TQDomElement docEl = doc.documentElement();
- return docEl.attribute("title", QString::null);
+ return docEl.attribute("title", TQString::null);
}
-DocumentationCatalogItem *DocQtPlugin::createCatalog(KListView *contents, const QString &title, const QString &url)
+DocumentationCatalogItem *DocQtPlugin::createCatalog(KListView *contents, const TQString &title, const TQString &url)
{
return new QtDocumentationCatalogItem(url, this, contents, title);
}
diff --git a/parts/documentation/plugins/qt/docqtplugin.h b/parts/documentation/plugins/qt/docqtplugin.h
index 551a6ac7..e09ce7a5 100644
--- a/parts/documentation/plugins/qt/docqtplugin.h
+++ b/parts/documentation/plugins/qt/docqtplugin.h
@@ -21,7 +21,7 @@
#define DOCQTPLUGIN_H
#include <kdevdocumentationplugin.h>
-#include <qdom.h>
+#include <tqdom.h>
class KConfig;
@@ -29,25 +29,25 @@ class DocQtPlugin : public DocumentationPlugin
{
Q_OBJECT
public:
- DocQtPlugin(QObject* parent, const char* name, const QStringList args = QStringList());
+ DocQtPlugin(TQObject* parent, const char* name, const TQStringList args = TQStringList());
~DocQtPlugin();
- virtual QString pluginName() const;
+ virtual TQString pluginName() const;
- virtual DocumentationCatalogItem *createCatalog(KListView *contents, const QString &title, const QString &url);
+ virtual DocumentationCatalogItem *createCatalog(KListView *contents, const TQString &title, const TQString &url);
virtual void createTOC(DocumentationCatalogItem *item);
virtual void setCatalogURL(DocumentationCatalogItem *item);
virtual bool needRefreshIndex(DocumentationCatalogItem *item);
virtual void createIndex(IndexBox *index, DocumentationCatalogItem *item);
- virtual void createSectionIndex(QFileInfo &fi, IndexBox *index, DocumentationCatalogItem *item,
- QDomElement section);
+ virtual void createSectionIndex(TQFileInfo &fi, IndexBox *index, DocumentationCatalogItem *item,
+ TQDomElement section);
- virtual QStringList fullTextSearchLocations();
+ virtual TQStringList fullTextSearchLocations();
- virtual QPair<KFile::Mode, QString> catalogLocatorProps();
- virtual QString catalogTitle(const QString &url);
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps();
+ virtual TQString catalogTitle(const TQString &url);
virtual void autoSetupPlugin();
diff --git a/parts/documentation/protocols/chm/chm.cpp b/parts/documentation/protocols/chm/chm.cpp
index 4f9ecf73..1d7543c3 100644
--- a/parts/documentation/protocols/chm/chm.cpp
+++ b/parts/documentation/protocols/chm/chm.cpp
@@ -14,10 +14,10 @@
Boston, MA 02110-1301, USA.
*/
-#include <qcstring.h>
-#include <qbitarray.h>
-#include <qfile.h>
-#include <qregexp.h>
+#include <tqcstring.h>
+#include <tqbitarray.h>
+#include <tqfile.h>
+#include <tqregexp.h>
#include <stack>
#include <stdlib.h>
@@ -58,7 +58,7 @@ extern "C"
}
}
-ChmProtocol::ChmProtocol(const QCString &pool_socket, const QCString &app_socket)
+ChmProtocol::ChmProtocol(const TQCString &pool_socket, const TQCString &app_socket)
: SlaveBase("kio_chm", pool_socket, app_socket)
{
kdDebug() << "ChmProtocol::ChmProtocol()" << endl;
@@ -84,21 +84,21 @@ void ChmProtocol::get( const KURL& url )
bool catalog = false;
bool contents = false;
- QString bigpath = url.path();
+ TQString bigpath = url.path();
if(bigpath.endsWith(":catalog")) {
catalog = true;
- int len = QString(":catalog").length();
+ int len = TQString(":catalog").length();
bigpath.remove(bigpath.length() - len, len); ///strip :catalog from the end
}
if(bigpath.endsWith(":contents")) {
contents = true;
- int len = QString(":contents").length();
+ int len = TQString(":contents").length();
bigpath.remove(bigpath.length() - len, len); ///strip :catalog from the end
}
- QString path;
+ TQString path;
if ( !checkNewFile( bigpath, path ) ) {
error( KIO::ERR_DOES_NOT_EXIST, url.prettyURL() );
return;
@@ -110,23 +110,23 @@ void ChmProtocol::get( const KURL& url )
return;
}
- QByteArray theData;
+ TQByteArray theData;
//init..
//added by lucida lucida@users.sf.net
- QString fname = QString();
- QString chmpath = QString();
+ TQString fname = TQString();
+ TQString chmpath = TQString();
KTempFile f("",".html");
fname = f.name();
- QTextStream *t = f.textStream();
- QString firstPage = QString("");
- QString m_strIndex = QString("");
- QString tmpstr = QString("");
+ TQTextStream *t = f.textStream();
+ TQString firstPage = TQString("");
+ TQString m_strIndex = TQString("");
+ TQString tmpstr = TQString("");
bool m_bIndex = 0;
if(contents) {
- QString output;
+ TQString output;
KURL u = url;
ChmDirectoryMap::Iterator it;
@@ -163,19 +163,19 @@ void ChmProtocol::get( const KURL& url )
int offset = m_dirMap["/@contents"].offset;
int length = m_dirMap["/@contents"].length;
theData.setRawData(&m_contents[offset], length);
- QString s(theData);
- QString output;
+ TQString s(theData);
+ TQString output;
- QRegExp object("<OBJECT type=\"text/sitemap\">(.*)</OBJECT>", false);
+ TQRegExp object("<OBJECT type=\"text/sitemap\">(.*)</OBJECT>", false);
object.setMinimal(true);
- QRegExp nameParam("<param name=\"Name\" value=\"(.*)\">", false);
+ TQRegExp nameParam("<param name=\"Name\" value=\"(.*)\">", false);
nameParam.setMinimal(true);
- QRegExp localParam("<param name=\"Local\" value=\"(.*)\">", false);
+ TQRegExp localParam("<param name=\"Local\" value=\"(.*)\">", false);
localParam.setMinimal(true);
- QRegExp mergeParam("<param name=\"Merge\" value=\"(.*)\">", false);
+ TQRegExp mergeParam("<param name=\"Merge\" value=\"(.*)\">", false);
mergeParam.setMinimal(true);
std::stack<int> parents;
@@ -186,8 +186,8 @@ void ChmProtocol::get( const KURL& url )
while ((pos = s.find(object, pos)) != -1) {
if(htmlOutput) output += s.mid(old, pos - old);
if(catalog) {
- QRegExp ex("<UL>|</UL>", false); ex.setMinimal(true);
- QString ms = s.mid(old, pos - old);
+ TQRegExp ex("<UL>|</UL>", false); ex.setMinimal(true);
+ TQString ms = s.mid(old, pos - old);
int pos = 0;
while( (pos = ms.find(ex, pos)) != -1) {
if(ms.mid(pos, 4) == "<UL>") {
@@ -204,8 +204,8 @@ void ChmProtocol::get( const KURL& url )
}
pos += object.matchedLength();
old = pos;
- QString obj = object.cap(1);
- QString name, local;
+ TQString obj = object.cap(1);
+ TQString name, local;
if (obj.find(nameParam) != -1) {
name = nameParam.cap(1);
if (obj.find(localParam) != -1) {
@@ -220,12 +220,12 @@ void ChmProtocol::get( const KURL& url )
++counter;
KURL u = url;
u.setPath(bigpath + local);
- QString str;
+ TQString str;
output += str.sprintf("%i\n%i\n", parents.top(), current);
output += name + "\n" + u.prettyURL() + "\n";
}
m_bIndex = 1;
- if (firstPage == "") firstPage = url.url()+QString::fromLocal8Bit(local.latin1());
+ if (firstPage == "") firstPage = url.url()+TQString::fromLocal8Bit(local.latin1());
}
else
if(htmlOutput) output += name;
@@ -234,43 +234,43 @@ void ChmProtocol::get( const KURL& url )
}
}
if (obj.find(mergeParam) != -1 && htmlOutput) {
- QString link = mergeParam.cap(1);
- QString href = link.left(link.find("::"));
- QString path = m_chmFile.left(m_chmFile.findRev("/") + 1);
+ TQString link = mergeParam.cap(1);
+ TQString href = link.left(link.find("::"));
+ TQString path = m_chmFile.left(m_chmFile.findRev("/") + 1);
//output += " (<a href=\"" + path + href + "\">link</a>)";
m_bIndex = 1;
output += " (<a target=\"browse\" href=\"" + url.url() + path + href + "\">link</a>)";
- if (firstPage == "") firstPage = url.url()+QString::fromLocal8Bit(local.latin1());
+ if (firstPage == "") firstPage = url.url()+TQString::fromLocal8Bit(local.latin1());
}
}
if(htmlOutput) output += s.mid(old);
//set left pane
//added by lucida, lucida@users.sf.net
- QString lframe = QString("</HEAD><FRAMESET COLS=\"25%,*\">\n");
+ TQString lframe = TQString("</HEAD><FRAMESET COLS=\"25%,*\">\n");
lframe += "<FRAME NAME=\"index\" src=\"file:"+ fname+"\"" + " marginwidth=\"0\"></FRAME>\n";
if (!m_bIndex) {
lframe = "</HEAD><FRAMESET>";
- firstPage = url.url() + QString::fromLocal8Bit(m_strIndex.latin1());
+ firstPage = url.url() + TQString::fromLocal8Bit(m_strIndex.latin1());
}
theData.resetRawData(&m_contents[offset], length);
//KMimeMagicResult * result = KMimeMagic::self()->findBufferFileType( output, path );
//kdDebug() << "Emitting mimetype " << result->mimeType() << endl;
//mimeType( result->mimeType() );
-/* QCString output1 = (QCString)(output.latin1());
+/* TQCString output1 = (TQCString)(output.latin1());
data(output1);
processedSize(output1.length());*/
//construct the frame
//added by lucida lucida@users.sf.net
- QString framestr = QString("<HTML><HEAD>\n");
+ TQString framestr = TQString("<HTML><HEAD>\n");
framestr += lframe;
framestr += "<FRAME NAME=\"browse\" src=\"" + firstPage + "\">\n";
framestr += "</FRAME>\n";
framestr += "</FRAMESET></HTML>";
//write index file
//added by lucida lucida@users.sf.net
- *t << QString::fromLocal8Bit(output.latin1()) << endl;
+ *t << TQString::fromLocal8Bit(output.latin1()) << endl;
if(catalog) {
data(output.local8Bit());
@@ -297,11 +297,11 @@ void ChmProtocol::get( const KURL& url )
}
/* --------------------------------------------------------------------------- */
-bool ChmProtocol::checkNewFile( QString fullPath, QString& path )
+bool ChmProtocol::checkNewFile( TQString fullPath, TQString& path )
{
//kdDebug() << "ChmProtocol::checkNewFile " << fullPath << endl;
- fullPath = fullPath.replace(QRegExp("::"), "");
+ fullPath = fullPath.replace(TQRegExp("::"), "");
// Are we already looking at that file ?
if ( !m_chmFile.isEmpty() && fullPath.startsWith(m_chmFile) )
@@ -316,7 +316,7 @@ bool ChmProtocol::checkNewFile( QString fullPath, QString& path )
// Find where the chm file is in the full path
int pos = 0;
- QString chmFile;
+ TQString chmFile;
path = "";
int len = fullPath.length();
@@ -326,10 +326,10 @@ bool ChmProtocol::checkNewFile( QString fullPath, QString& path )
//kdDebug() << "the full path is " << fullPath << endl;
while ( (pos=fullPath.find( '/', pos+1 )) != -1 )
{
- QString tryPath = fullPath.left( pos );
+ TQString tryPath = fullPath.left( pos );
//kdDebug() << fullPath << " trying " << tryPath << endl;
struct stat statbuf;
- if ( ::stat( QFile::encodeName(tryPath), &statbuf ) == 0 && !S_ISDIR(statbuf.st_mode) )
+ if ( ::stat( TQFile::encodeName(tryPath), &statbuf ) == 0 && !S_ISDIR(statbuf.st_mode) )
{
chmFile = tryPath;
path = fullPath.mid( pos ).lower();
@@ -342,7 +342,7 @@ bool ChmProtocol::checkNewFile( QString fullPath, QString& path )
}
else
{
- path = QString::fromLatin1("/");
+ path = TQString::fromLatin1("/");
}
kdDebug() << "Found. chmFile=" << chmFile << " path=" << path << endl;
break;
diff --git a/parts/documentation/protocols/chm/chm.h b/parts/documentation/protocols/chm/chm.h
index ff4bb391..1a1e80ba 100644
--- a/parts/documentation/protocols/chm/chm.h
+++ b/parts/documentation/protocols/chm/chm.h
@@ -17,8 +17,8 @@
#ifndef __chm_h__
#define __chm_h__
-#include <qstring.h>
-#include <qcstring.h>
+#include <tqstring.h>
+#include <tqcstring.h>
#include <kurl.h>
#include <kio/global.h>
#include <kio/slavebase.h>
@@ -29,16 +29,16 @@ class QCString;
class ChmProtocol : public KIO::SlaveBase
{
public:
- ChmProtocol( const QCString&, const QCString& );
+ ChmProtocol( const TQCString&, const TQCString& );
~ChmProtocol();
void get( const KURL& );
private:
- bool checkNewFile( QString, QString& );
+ bool checkNewFile( TQString, TQString& );
ChmDirectoryMap m_dirMap;
- QByteArray m_contents;
- QString m_chmFile;
+ TQByteArray m_contents;
+ TQString m_chmFile;
Chm m_chm;
};
diff --git a/parts/documentation/protocols/chm/chmfile.cpp b/parts/documentation/protocols/chm/chmfile.cpp
index 6106d83d..43ae8877 100644
--- a/parts/documentation/protocols/chm/chmfile.cpp
+++ b/parts/documentation/protocols/chm/chmfile.cpp
@@ -14,11 +14,11 @@
Boston, MA 02110-1301, USA.
*/
-#include <qfile.h>
+#include <tqfile.h>
#include "chmfile.h"
#include "decompress.h"
-uint Chm::getEncInt(QFile& f, uint &value) const
+uint Chm::getEncInt(TQFile& f, uint &value) const
{
int c;
uint result = 0;
@@ -36,32 +36,32 @@ uint Chm::getEncInt(QFile& f, uint &value) const
return count;
}
-uint Chm::getName(QFile& f, QString& name) const
+uint Chm::getName(TQFile& f, TQString& name) const
{
int len = f.getch();
char *buf = new char[len];
f.readBlock(buf, len);
- name = QString::fromUtf8(buf, len);
+ name = TQString::fromUtf8(buf, len);
if (name.startsWith("/"))
name = name.lower();
delete [] buf;
return len + 1;
}
-uint Chm::getIntel32(QFile& f) const
+uint Chm::getIntel32(TQFile& f) const
{
uint value = f.getch() | f.getch() << 8 | f.getch() << 16 | f.getch() << 24;
return value;
}
-uint Chm::getIntel64(QFile& f) const
+uint Chm::getIntel64(TQFile& f) const
{
uint value = getIntel32(f);
f.at(f.at() + 4);
return value;
}
-bool Chm::getChunk(QFile& f, uint chunkSize, ChmDirectoryMap& directoryMap) const
+bool Chm::getChunk(TQFile& f, uint chunkSize, ChmDirectoryMap& directoryMap) const
{
char tag[4];
if (f.readBlock(tag, 4) != 4) return false;
@@ -75,7 +75,7 @@ bool Chm::getChunk(QFile& f, uint chunkSize, ChmDirectoryMap& directoryMap) cons
while (pos < chunkSize - quickref_length)
{
uint section, offset, length;
- QString name;
+ TQString name;
pos += getName(f, name);
pos += getEncInt(f, section);
pos += getEncInt(f, offset);
@@ -98,9 +98,9 @@ bool Chm::getChunk(QFile& f, uint chunkSize, ChmDirectoryMap& directoryMap) cons
}
}
-bool Chm::read(const QString& fileSpec, ChmDirectoryMap& dirMap, QByteArray& contents) const
+bool Chm::read(const TQString& fileSpec, ChmDirectoryMap& dirMap, TQByteArray& contents) const
{
- QFile f(fileSpec);
+ TQFile f(fileSpec);
if (!f.open(IO_ReadOnly)) return false;
// read CHM file header
diff --git a/parts/documentation/protocols/chm/chmfile.h b/parts/documentation/protocols/chm/chmfile.h
index af89f55a..20e0ea67 100644
--- a/parts/documentation/protocols/chm/chmfile.h
+++ b/parts/documentation/protocols/chm/chmfile.h
@@ -18,8 +18,8 @@
#define __chmfile_h__
#include <cstdio>
-#include <qmap.h>
-#include <qstring.h>
+#include <tqmap.h>
+#include <tqstring.h>
class QFile;
@@ -34,19 +34,19 @@ struct ChmDirTableEntry
uint length;
};
-typedef QMap<QString, ChmDirTableEntry> ChmDirectoryMap;
+typedef TQMap<TQString, ChmDirTableEntry> ChmDirectoryMap;
class Chm
{
public:
- bool read( const QString&, ChmDirectoryMap&, QByteArray& ) const;
+ bool read( const TQString&, ChmDirectoryMap&, TQByteArray& ) const;
private:
- bool getChunk( QFile&, uint, ChmDirectoryMap& ) const;
- uint getEncInt( QFile&, uint& ) const;
- uint getName( QFile&, QString& ) const;
- uint getIntel32( QFile& ) const;
- uint getIntel64( QFile& ) const;
+ bool getChunk( TQFile&, uint, ChmDirectoryMap& ) const;
+ uint getEncInt( TQFile&, uint& ) const;
+ uint getName( TQFile&, TQString& ) const;
+ uint getIntel32( TQFile& ) const;
+ uint getIntel64( TQFile& ) const;
};
#endif // __chmfile_h__
diff --git a/parts/documentation/protocols/chm/kchmpart.cpp b/parts/documentation/protocols/chm/kchmpart.cpp
index ff6dc9ba..b1d9d166 100644
--- a/parts/documentation/protocols/chm/kchmpart.cpp
+++ b/parts/documentation/protocols/chm/kchmpart.cpp
@@ -15,7 +15,7 @@
*/
#include "kchmpart.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <kinstance.h>
#include <kglobal.h>
@@ -35,7 +35,7 @@ extern "C"
KInstance* KChmPartFactory::s_instance = 0L;
KAboutData* KChmPartFactory::s_about = 0L;
-KChmPartFactory::KChmPartFactory( QObject* parent, const char* name )
+KChmPartFactory::KChmPartFactory( TQObject* parent, const char* name )
: KParts::Factory( parent, name )
{
}
@@ -47,8 +47,8 @@ KChmPartFactory::~KChmPartFactory()
delete s_about;
}
-KParts::Part* KChmPartFactory::createPartObject( QWidget *parentWidget, const char *, QObject *,
- const char *name, const char *, const QStringList & )
+KParts::Part* KChmPartFactory::createPartObject( TQWidget *parentWidget, const char *, TQObject *,
+ const char *name, const char *, const TQStringList & )
{
KChmPart* part = new KChmPart( parentWidget, name );
return part;
@@ -66,7 +66,7 @@ KInstance* KChmPartFactory::instance()
}
-KChmPart::KChmPart( QWidget * parent, const char * name )
+KChmPart::KChmPart( TQWidget * parent, const char * name )
: KDevHTMLPart( ), m_job(0)
{
KInstance * instance = new KInstance( "kchmpart" );
@@ -100,13 +100,13 @@ bool KChmPart::openFile()
m_htmlData.truncate(0);
- m_job = KIO::get( QString("chm:")+m_file+"/", true, false );
- connect( m_job, SIGNAL( data( KIO::Job *, const QByteArray &) ), SLOT( readData( KIO::Job *, const QByteArray &) ) );
- connect( m_job, SIGNAL( result( KIO::Job * ) ), SLOT( jobDone( KIO::Job * ) ) );
+ m_job = KIO::get( TQString("chm:")+m_file+"/", true, false );
+ connect( m_job, TQT_SIGNAL( data( KIO::Job *, const TQByteArray &) ), TQT_SLOT( readData( KIO::Job *, const TQByteArray &) ) );
+ connect( m_job, TQT_SIGNAL( result( KIO::Job * ) ), TQT_SLOT( jobDone( KIO::Job * ) ) );
return true;
}
-void KChmPart::readData(KIO::Job * , const QByteArray & data)
+void KChmPart::readData(KIO::Job * , const TQByteArray & data)
{
m_htmlData += data;
}
@@ -115,7 +115,7 @@ void KChmPart::jobDone( KIO::Job *)
{
m_job=0;
begin();
- write(QString::fromLocal8Bit(m_htmlData));
+ write(TQString::fromLocal8Bit(m_htmlData));
end();
}
*/
diff --git a/parts/documentation/protocols/chm/kchmpart.h b/parts/documentation/protocols/chm/kchmpart.h
index 28041bc3..023f8ed9 100644
--- a/parts/documentation/protocols/chm/kchmpart.h
+++ b/parts/documentation/protocols/chm/kchmpart.h
@@ -25,7 +25,7 @@
#include <kio/jobclasses.h>
#include <kdevhtmlpart.h>
-#include <qcstring.h>
+#include <tqcstring.h>
class KInstance;
class KAboutData;
@@ -34,13 +34,13 @@ class KChmPartFactory: public KParts::Factory
{
Q_OBJECT
public:
- KChmPartFactory( QObject *parent = 0, const char *name = 0 );
+ KChmPartFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KChmPartFactory();
virtual KParts::Part* createPartObject(
- QWidget *parentWidget, const char *widgetName,
- QObject *parent, const char *name,
- const char *classname, const QStringList &args );
+ TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name,
+ const char *classname, const TQStringList &args );
static KInstance *instance();
@@ -55,14 +55,14 @@ class KChmPart : public KDevHTMLPart
{
Q_OBJECT
public:
- KChmPart( QWidget *, const char * = 0 );
+ KChmPart( TQWidget *, const char * = 0 );
KParts::BrowserExtension * extension() { return m_extension; }
public slots:
virtual bool openURL( const KURL & );
/*
protected slots:
- void readData(KIO::Job * , const QByteArray & data);
+ void readData(KIO::Job * , const TQByteArray & data);
void jobDone( KIO::Job *);
*/
protected:
@@ -70,7 +70,7 @@ class KChmPart : public KDevHTMLPart
KInstance *m_instance;
KParts::BrowserExtension *m_extension;
KIO::TransferJob *m_job;
- QCString m_htmlData;
+ TQCString m_htmlData;
protected slots:
virtual void slotDuplicate();
diff --git a/parts/documentation/searchview.cpp b/parts/documentation/searchview.cpp
index 66ac48f7..c7b2305a 100644
--- a/parts/documentation/searchview.cpp
+++ b/parts/documentation/searchview.cpp
@@ -23,12 +23,12 @@
***************************************************************************/
#include "searchview.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qdir.h>
-#include <qregexp.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqdir.h>
+#include <tqregexp.h>
#include <kpushbutton.h>
#include <klistview.h>
@@ -49,66 +49,66 @@
#include "documentation_part.h"
#include "docutils.h"
-SearchView::SearchView(DocumentationPart *part, QWidget *parent, const char *name)
- :QWidget(parent, name), m_part(part)
+SearchView::SearchView(DocumentationPart *part, TQWidget *parent, const char *name)
+ :TQWidget(parent, name), m_part(part)
{
- QVBoxLayout *l = new QVBoxLayout(this, 0, KDialog::spacingHint());
+ TQVBoxLayout *l = new TQVBoxLayout(this, 0, KDialog::spacingHint());
- QVBoxLayout *l2 = new QVBoxLayout(l, 0);
- QLabel *editLabel = new QLabel(i18n("Wor&ds to search:"), this);
+ TQVBoxLayout *l2 = new TQVBoxLayout(l, 0);
+ TQLabel *editLabel = new TQLabel(i18n("Wor&ds to search:"), this);
l2->addWidget(editLabel);
- QHBoxLayout *l21 = new QHBoxLayout(l2, 0);
+ TQHBoxLayout *l21 = new TQHBoxLayout(l2, 0);
m_edit = new KLineEdit(this);
editLabel->setBuddy(m_edit);
m_goSearchButton = new KPushButton(i18n("Se&arch"), this);
l21->addWidget(m_edit);
l21->addWidget(m_goSearchButton);
- QGridLayout *l3 = new QGridLayout(l, 2, 2, 0);
+ TQGridLayout *l3 = new TQGridLayout(l, 2, 2, 0);
m_searchMethodBox = new KComboBox(this);
m_searchMethodBox->insertItem(i18n("and"));
m_searchMethodBox->insertItem(i18n("or"));
- QLabel *smLabel = new QLabel(m_searchMethodBox, i18n("&Method:"), this);
+ TQLabel *smLabel = new TQLabel(m_searchMethodBox, i18n("&Method:"), this);
m_sortMethodBox = new KComboBox(this);
m_sortMethodBox->insertItem(i18n("Score"));
m_sortMethodBox->insertItem(i18n("Title"));
m_sortMethodBox->insertItem(i18n("Date"));
- QLabel *rmLabel = new QLabel(m_sortMethodBox, i18n("S&ort by:"), this);
+ TQLabel *rmLabel = new TQLabel(m_sortMethodBox, i18n("S&ort by:"), this);
l3->addWidget(smLabel, 0, 0);
l3->addWidget(m_searchMethodBox, 0, 1);
l3->addWidget(rmLabel, 1, 0);
l3->addWidget(m_sortMethodBox, 1, 1);
- QVBoxLayout *l4 = new QVBoxLayout(l, 0);
+ TQVBoxLayout *l4 = new TQVBoxLayout(l, 0);
m_view = new KListView(this);
- QLabel *vLabel = new QLabel(m_view, i18n("Search &results:"), this);
+ TQLabel *vLabel = new TQLabel(m_view, i18n("Search &results:"), this);
l4->addWidget(vLabel);
l4->addWidget(m_view);
- QHBoxLayout *l5 = new QHBoxLayout(l, KDialog::spacingHint());
+ TQHBoxLayout *l5 = new TQHBoxLayout(l, KDialog::spacingHint());
m_configButton = new KPushButton(i18n("Update Config"), this);
m_indexButton = new KPushButton(i18n("Update Index"), this);
l5->addWidget(m_configButton);
l5->addWidget(m_indexButton);
- l5->addItem(new QSpacerItem(1, 1, QSizePolicy::Expanding, QSizePolicy::Fixed));
+ l5->addItem(new TQSpacerItem(1, 1, TQSizePolicy::Expanding, TQSizePolicy::Fixed));
l->addSpacing(2);
m_view->setSorting(-1);
m_view->addColumn(i18n("Relevance"));
m_view->addColumn(i18n("Title"));
- m_view->setColumnWidthMode(0, QListView::Maximum);
- m_view->setColumnWidthMode(1, QListView::Maximum);
+ m_view->setColumnWidthMode(0, TQListView::Maximum);
+ m_view->setColumnWidthMode(1, TQListView::Maximum);
m_view->setAllColumnsShowFocus(true);
- m_view->setResizeMode( QListView::LastColumn );
-
- connect(m_configButton, SIGNAL(clicked()), this, SLOT(updateConfig()));
- connect(m_indexButton, SIGNAL(clicked()), this, SLOT(updateIndex()));
- connect(m_edit, SIGNAL(returnPressed()), this, SLOT(search()));
- connect(m_goSearchButton, SIGNAL(clicked()), this, SLOT(search()));
- connect(m_view, SIGNAL(executed(QListViewItem*)), this, SLOT(executed(QListViewItem*)));
- connect(m_view, SIGNAL(mouseButtonPressed(int, QListViewItem*, const QPoint&, int )),
- this, SLOT(itemMouseButtonPressed(int, QListViewItem*, const QPoint&, int )));
+ m_view->setResizeMode( TQListView::LastColumn );
+
+ connect(m_configButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateConfig()));
+ connect(m_indexButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(updateIndex()));
+ connect(m_edit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(search()));
+ connect(m_goSearchButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(search()));
+ connect(m_view, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(executed(TQListViewItem*)));
+ connect(m_view, TQT_SIGNAL(mouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )),
+ this, TQT_SLOT(itemMouseButtonPressed(int, TQListViewItem*, const TQPoint&, int )));
}
SearchView::~SearchView()
@@ -129,15 +129,15 @@ void SearchView::updateIndex()
config->sync();
}
-void SearchView::runHtdig(const QString &arg)
+void SearchView::runHtdig(const TQString &arg)
{
KProcess proc;
proc << "kdevelop-htdig" << arg;
proc.start(KProcess::DontCare);
}
-void qt_enter_modal(QWidget *widget);
-void qt_leave_modal(QWidget *widget);
+void qt_enter_modal(TQWidget *widget);
+void qt_leave_modal(TQWidget *widget);
void SearchView::search()
{
@@ -152,7 +152,7 @@ void SearchView::search()
updateIndex();
return;
}
- QString exe = config->readPathEntry("htsearchbin", kapp->dirs()->findExe("htsearch"));
+ TQString exe = config->readPathEntry("htsearchbin", kapp->dirs()->findExe("htsearch"));
if (exe.isEmpty())
{
KMessageBox::error(this, i18n("Cannot find the htsearch executable.\nIt is part of the ht://Dig package that is used by KDevelop to perform full text search. Please install ht://Dig and use Documentation page in Configure KDevelop dialog to set the htsearch location."));
@@ -160,16 +160,16 @@ void SearchView::search()
return;
}
- QString indexdir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
- QDir d;
- if (indexdir.isEmpty() || !QFile::exists(indexdir + "/htdig.conf"))
+ TQString indexdir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
+ TQDir d;
+ if (indexdir.isEmpty() || !TQFile::exists(indexdir + "/htdig.conf"))
{
- if (QFile::exists("/var/lib/kdevelop3/helpindex/htdig.conf"))
+ if (TQFile::exists("/var/lib/kdevelop3/helpindex/htdig.conf"))
indexdir = "/var/lib/kdevelop3/helpindex";
- else if (QFile::exists("/var/lib/kdevelop/helpindex/htdig.conf"))
+ else if (TQFile::exists("/var/lib/kdevelop/helpindex/htdig.conf"))
indexdir = "/var/lib/kdevelop/helpindex";
- if (!QFile::exists(indexdir + "/htdig.conf"))
+ if (!TQFile::exists(indexdir + "/htdig.conf"))
{
KMessageBox::error(this, i18n("Cannot find the htdig configuration file."));
kdDebug() << "Cannot find the htdig configuration file" << endl;
@@ -177,11 +177,11 @@ void SearchView::search()
}
}
- QString savedir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
+ TQString savedir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
if (!d.exists(savedir))
d.mkdir(savedir);
- QString query = QString("words=%1;method=%2;matchesperpage=%3;format=%4;sort=%5")
+ TQString query = TQString("words=%1;method=%2;matchesperpage=%3;format=%4;sort=%5")
.arg(m_edit->text())
.arg(m_searchMethodBox->currentItem()==1? "or" : "and")
.arg(50)
@@ -191,14 +191,14 @@ void SearchView::search()
kdDebug(9002) << "starting kprocess" << endl;
kdDebug(9002) << "htdig line:" << exe << " -c " << (indexdir + "/htdig.conf ") << query << endl;
KProcess *proc = new KProcess;
- QString picdir = kapp->dirs()->findResourceDir("data", "kdevdocumentation/pics/htdig.png");
+ TQString picdir = kapp->dirs()->findResourceDir("data", "kdevdocumentation/pics/htdig.png");
proc->setEnvironment("PICDIR", picdir);
*proc << exe << "-c" << (indexdir + "/htdig.conf") << query;
- connect( proc, SIGNAL(receivedStdout(KProcess *,char*,int)),
- this, SLOT(htsearchStdout(KProcess *,char*,int)) );
- connect( proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(htsearchExited(KProcess *)) );
+ connect( proc, TQT_SIGNAL(receivedStdout(KProcess *,char*,int)),
+ this, TQT_SLOT(htsearchStdout(KProcess *,char*,int)) );
+ connect( proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(htsearchExited(KProcess *)) );
searchResult = "";
@@ -214,7 +214,7 @@ void SearchView::search()
// to block the user interface, but still get repaint
// events. Hack taken from NetAccess...
kapp->setOverrideCursor(waitCursor);
- QWidget blocker(0, 0, WType_Dialog | WShowModal);
+ TQWidget blocker(0, 0, WType_Dialog | WShowModal);
qt_enter_modal(&blocker);
kapp->enter_loop();
qt_leave_modal(&blocker);
@@ -230,14 +230,14 @@ void SearchView::search()
delete proc;
// modify the search result
- searchResult = searchResult.replace(QRegExp("http://localhost/"), "file:/");
- searchResult = searchResult.replace(QRegExp("Content-type: text/html"), "");
+ searchResult = searchResult.replace(TQRegExp("http://localhost/"), "file:/");
+ searchResult = searchResult.replace(TQRegExp("Content-type: text/html"), "");
// dump the search result
- QFile f(savedir + "/results.html");
+ TQFile f(savedir + "/results.html");
if (f.open(IO_WriteOnly))
{
- QTextStream ts(&f);
+ TQTextStream ts(&f);
ts << searchResult << endl;
f.close();
}
@@ -249,7 +249,7 @@ void SearchView::search()
void SearchView::htsearchStdout(KProcess *, char *buffer, int len)
{
- searchResult += QString::fromLocal8Bit(buffer, len);
+ searchResult += TQString::fromLocal8Bit(buffer, len);
}
void SearchView::htsearchExited(KProcess *)
@@ -260,23 +260,23 @@ void SearchView::htsearchExited(KProcess *)
void SearchView::analyseSearchResults()
{
m_view->clear();
- QTextStream str(searchResult, IO_ReadOnly);
+ TQTextStream str(searchResult, IO_ReadOnly);
DocumentationItem *former = 0;
while (!str.eof())
{
- QString line = str.readLine();
+ TQString line = str.readLine();
- QRegExp starsExp("alt=\"\\*\"");
+ TQRegExp starsExp("alt=\"\\*\"");
starsExp.setMinimal(true);
int stars = line.contains(starsExp);
- QRegExp urlExp("<strong><a href=\"(.*)\">(.*)</a></strong>");
+ TQRegExp urlExp("<strong><a href=\"(.*)\">(.*)</a></strong>");
if (urlExp.search(line)==-1)
continue;
- QString url = urlExp.cap(1);
- QString title = urlExp.cap(2);
+ TQString url = urlExp.cap(1);
+ TQString title = urlExp.cap(2);
- QString starsStr;
+ TQString starsStr;
for (int i = 0; i < stars; ++i)
starsStr += "*";
@@ -291,7 +291,7 @@ void SearchView::analyseSearchResults()
executed( m_view->firstChild() );
}
-void SearchView::executed(QListViewItem *item)
+void SearchView::executed(TQListViewItem *item)
{
DocumentationItem *d = dynamic_cast<DocumentationItem*>(item);
if (!d)
@@ -300,7 +300,7 @@ void SearchView::executed(QListViewItem *item)
m_part->partController()->showDocument(d->url());
}
-void SearchView::itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int // c
+void SearchView::itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int // c
)
{
if ((button != Qt::RightButton) || (!item))
@@ -312,7 +312,7 @@ void SearchView::itemMouseButtonPressed(int button, QListViewItem *item, const Q
DocUtils::docItemPopup(m_part, docItem, pos, true, false, 1);
}
-void SearchView::setSearchTerm(const QString &term)
+void SearchView::setSearchTerm(const TQString &term)
{
m_edit->setText(term);
}
@@ -322,7 +322,7 @@ void SearchView::askSearchTerm()
m_edit->setFocus();
}
-void SearchView::focusInEvent(QFocusEvent */*e*/)
+void SearchView::focusInEvent(TQFocusEvent */*e*/)
{
m_edit->setFocus();
}
diff --git a/parts/documentation/searchview.h b/parts/documentation/searchview.h
index a57ddd83..32b5f310 100644
--- a/parts/documentation/searchview.h
+++ b/parts/documentation/searchview.h
@@ -20,7 +20,7 @@
#ifndef SEARCHVIEW_H
#define SEARCHVIEW_H
-#include <qwidget.h>
+#include <tqwidget.h>
class DocumentationPart;
class KLineEdit;
@@ -34,12 +34,12 @@ class SearchView: public QWidget
{
Q_OBJECT
public:
- SearchView(DocumentationPart *part, QWidget *parent = 0, const char *name = 0);
+ SearchView(DocumentationPart *part, TQWidget *parent = 0, const char *name = 0);
~SearchView();
public slots:
void search();
- void setSearchTerm(const QString &term);
+ void setSearchTerm(const TQString &term);
void askSearchTerm();
protected slots:
@@ -48,14 +48,14 @@ protected slots:
void htsearchStdout(KProcess *, char *buffer, int len);
void htsearchExited(KProcess *);
- void executed(QListViewItem *item);
+ void executed(TQListViewItem *item);
- void itemMouseButtonPressed(int button, QListViewItem *item, const QPoint &pos, int c);
+ void itemMouseButtonPressed(int button, TQListViewItem *item, const TQPoint &pos, int c);
protected:
- virtual void focusInEvent(QFocusEvent *e);
+ virtual void focusInEvent(TQFocusEvent *e);
- void runHtdig(const QString &arg);
+ void runHtdig(const TQString &arg);
void analyseSearchResults();
private:
@@ -69,7 +69,7 @@ private:
KPushButton *m_indexButton;
KPushButton *m_goSearchButton;
- QString searchResult;
+ TQString searchResult;
};
#endif
diff --git a/parts/documentation/selecttopic.cpp b/parts/documentation/selecttopic.cpp
index da3fd2e7..4dab4d83 100644
--- a/parts/documentation/selecttopic.cpp
+++ b/parts/documentation/selecttopic.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
#include "selecttopic.h"
-SelectTopic::SelectTopic(IndexItem::List &urls, QWidget *parent, const char *name)
+SelectTopic::SelectTopic(IndexItem::List &urls, TQWidget *parent, const char *name)
:SelectTopicBase(parent, name), m_urls(urls)
{
for (IndexItem::List::const_iterator it = m_urls.begin(); it != m_urls.end(); ++it)
@@ -36,7 +36,7 @@ void SelectTopic::accept()
if (topicBox->currentItem() == -1)
return;
else
- return QDialog::accept();
+ return TQDialog::accept();
}
KURL SelectTopic::selectedURL()
diff --git a/parts/documentation/selecttopic.h b/parts/documentation/selecttopic.h
index ef66ccd7..fdddbf4c 100644
--- a/parts/documentation/selecttopic.h
+++ b/parts/documentation/selecttopic.h
@@ -27,7 +27,7 @@
class SelectTopic: public SelectTopicBase{
Q_OBJECT
public:
- SelectTopic(IndexItem::List &urls, QWidget *parent = 0, const char *name = 0);
+ SelectTopic(IndexItem::List &urls, TQWidget *parent = 0, const char *name = 0);
KURL selectedURL();
public slots:
diff --git a/parts/documentation/tools/htdig/htdigindex.cpp b/parts/documentation/tools/htdig/htdigindex.cpp
index 80161301..63e21888 100644
--- a/parts/documentation/tools/htdig/htdigindex.cpp
+++ b/parts/documentation/tools/htdig/htdigindex.cpp
@@ -16,13 +16,13 @@
#include <iostream>
-#include <qapplication.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qlayout.h>
-#include <qtextstream.h>
-#include <qtimer.h>
-#include <qlabel.h>
+#include <tqapplication.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqlayout.h>
+#include <tqtextstream.h>
+#include <tqtimer.h>
+#include <tqlabel.h>
#include <kaboutdata.h>
#include <kapplication.h>
@@ -39,14 +39,14 @@
#define INDEXER
-ProgressDialog::ProgressDialog(bool index, QWidget *parent, const char *name)
+ProgressDialog::ProgressDialog(bool index, TQWidget *parent, const char *name)
:KDialogBase(KDialogBase::Plain, i18n("Generating Search Index"), Cancel | Ok, Close,
parent, name, false)
{
proc = 0;
indexdir = kapp->dirs()->saveLocation("data", "kdevdocumentation/search");
- QDir d; d.mkdir(indexdir);
+ TQDir d; d.mkdir(indexdir);
KConfig config("kdevdocumentation", true);
config.setGroup("htdig");
@@ -58,39 +58,39 @@ ProgressDialog::ProgressDialog(bool index, QWidget *parent, const char *name)
d.mkdir( databaseDir );
showButtonOK( false );
- QGridLayout *grid = new QGridLayout(plainPage(), 5,3, spacingHint());
+ TQGridLayout *grid = new TQGridLayout(plainPage(), 5,3, spacingHint());
- QLabel *l = new QLabel(i18n("Scanning for files"), plainPage());
+ TQLabel *l = new TQLabel(i18n("Scanning for files"), plainPage());
grid->addMultiCellWidget(l, 0, 0, 1, 2);
- filesLabel = new QLabel(plainPage());
+ filesLabel = new TQLabel(plainPage());
grid->addWidget(filesLabel, 1, 2);
setFilesScanned(0);
- check1 = new QLabel(plainPage());
+ check1 = new TQLabel(plainPage());
grid->addWidget(check1, 0, 0);
- l = new QLabel(i18n("Extracting search terms"), plainPage());
+ l = new TQLabel(i18n("Extracting search terms"), plainPage());
grid->addMultiCellWidget(l, 2,2, 1,2);
bar = new KProgress(plainPage());
grid->addWidget(bar, 3,2);
- check2 = new QLabel(plainPage());
+ check2 = new TQLabel(plainPage());
grid->addWidget(check2, 2,0);
- l = new QLabel(i18n("Generating index..."), plainPage());
+ l = new TQLabel(i18n("Generating index..."), plainPage());
grid->addMultiCellWidget(l, 4,4, 1,2);
- check3 = new QLabel(plainPage());
+ check3 = new TQLabel(plainPage());
grid->addWidget(check3, 4,0);
setState(0);
setMinimumWidth(300);
- connect(this, SIGNAL(cancelClicked()), this, SLOT(cancelClicked()));
- connect(this, SIGNAL(okClicked()), this, SLOT(okClicked()));
- QTimer::singleShot(0, this, SLOT(slotDelayedStart()));
+ connect(this, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(cancelClicked()));
+ connect(this, TQT_SIGNAL(okClicked()), this, TQT_SLOT(okClicked()));
+ TQTimer::singleShot(0, this, TQT_SLOT(slotDelayedStart()));
}
ProgressDialog::~ProgressDialog()
@@ -137,8 +137,8 @@ void ProgressDialog::setFilesDigged(int n)
void ProgressDialog::setState(int n)
{
- QPixmap unchecked = QPixmap(locate("data", "kdevdocumentation/pics/unchecked.xpm"));
- QPixmap checked = QPixmap(locate("data", "kdevdocumentation/pics/checked.xpm"));
+ TQPixmap unchecked = TQPixmap(locate("data", "kdevdocumentation/pics/unchecked.xpm"));
+ TQPixmap checked = TQPixmap(locate("data", "kdevdocumentation/pics/checked.xpm"));
check1->setPixmap( n > 0 ? checked : unchecked);
check2->setPixmap( n > 1 ? checked : unchecked);
@@ -146,13 +146,13 @@ void ProgressDialog::setState(int n)
}
-void ProgressDialog::addDir(const QString &dir)
+void ProgressDialog::addDir(const TQString &dir)
{
kdDebug(9002) << "Add dir : " << dir << endl;
- QDir d(dir, "*.html", QDir::Name|QDir::IgnoreCase, QDir::Files | QDir::Readable);
- QStringList list = d.entryList();
+ TQDir d(dir, "*.html", TQDir::Name|TQDir::IgnoreCase, TQDir::Files | TQDir::Readable);
+ TQStringList list = d.entryList();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for ( it=list.begin(); it!=list.end(); ++it )
{
if( (*it).right( 12 ).lower( ) == "-source.html" )
@@ -162,8 +162,8 @@ void ProgressDialog::addDir(const QString &dir)
setFilesScanned(++filesScanned);
}
- QDir d2(dir, QString::null, QDir::Name|QDir::IgnoreCase, QDir::Dirs);
- QStringList dlist = d2.entryList();
+ TQDir d2(dir, TQString::null, TQDir::Name|TQDir::IgnoreCase, TQDir::Dirs);
+ TQStringList dlist = d2.entryList();
for ( it=dlist.begin(); it != dlist.end(); ++it )
{
@@ -182,21 +182,21 @@ void ProgressDialog::addDir(const QString &dir)
void ProgressDialog::scanDirectories()
{
- QString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
+ TQString ftsLocationsFile = locateLocal("data", "kdevdocumentation/search/locations.txt");
- QFile f(ftsLocationsFile);
+ TQFile f(ftsLocationsFile);
if (!f.open(IO_ReadOnly))
return;
- QTextStream str(&f);
+ TQTextStream str(&f);
filesScanned = 0;
while (!str.eof())
{
- QString loc = str.readLine();
+ TQString loc = str.readLine();
if (loc.isEmpty())
continue;
- QFileInfo fi(loc);
+ TQFileInfo fi(loc);
if (fi.isDir())
addDir(loc);
else if (fi.isFile())
@@ -210,27 +210,27 @@ void ProgressDialog::scanDirectories()
bool ProgressDialog::createConfig()
{
// locate the common dir
- QString language = KGlobal::locale()->language();
+ TQString language = KGlobal::locale()->language();
if (language == "C")
language = "en";
- QString wrapper = locate("data", QString("kdevdocumentation/%1/wrapper.html").arg(language));
+ TQString wrapper = locate("data", TQString("kdevdocumentation/%1/wrapper.html").arg(language));
if (wrapper.isEmpty())
- wrapper = locate("data", QString("kdevdocumentation/en/wrapper.html"));
+ wrapper = locate("data", TQString("kdevdocumentation/en/wrapper.html"));
if (wrapper.isEmpty())
return false;
wrapper = wrapper.left(wrapper.length()-12);
// locate the image dir
- QString images = locate("data", "kdevdocumentation/pics/star.png");
+ TQString images = locate("data", "kdevdocumentation/pics/star.png");
if (images.isEmpty())
return false;
images = images.left(images.length()-8);
- QFile f(indexdir + "/htdig.conf");
+ TQFile f(indexdir + "/htdig.conf");
if (f.open(IO_WriteOnly))
{
- QTextStream ts(&f);
+ TQTextStream ts(&f);
ts << "database_dir:\t\t" << databaseDir << endl;
ts << "start_url:\t\t`" << indexdir << "/files`" << endl;
@@ -268,19 +268,19 @@ void ProgressDialog::startHtdigProcess(bool initial)
if (initial) {
*proc << "-i";
}
- connect(proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(htdigExited(KProcess *)));
+ connect(proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(htdigExited(KProcess *)));
htdigRunning = true;
// write out file
- QFile f(indexdir+"/files");
+ TQFile f(indexdir+"/files");
if (!f.open(IO_WriteOnly)) {
kdDebug(9002) << "Could not open `files` for writing" << endl;
done(1);
return;
}
- QTextStream ts(&f);
+ TQTextStream ts(&f);
for (int i=0; i<CHUNK_SIZE; ++i, ++count) {
if (count >= filesToDig) {
procdone = true;
@@ -313,14 +313,14 @@ bool ProgressDialog::generateIndex()
setFilesToDig(filesToDig);
filesDigged = 0;
- // QDir d; d.mkdir(indexdir);
+ // TQDir d; d.mkdir(indexdir);
startHtdigProcess(true);
return true;
}
void ProgressDialog::htdigStdout(KProcess *, char *buffer, int len)
{
- QString line = QString(buffer).left(len);
+ TQString line = TQString(buffer).left(len);
int cnt=0, index=-1;
while ( (index = line.find("http://", index+1)) > 0)
@@ -387,8 +387,8 @@ void ProgressDialog::startHtmergeProcess()
kdDebug(9002) << "Running htmerge" << endl;
- connect(proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(htmergeExited(KProcess *)));
+ connect(proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(htmergeExited(KProcess *)));
htmergeRunning = true;
diff --git a/parts/documentation/tools/htdig/htdigindex.h b/parts/documentation/tools/htdig/htdigindex.h
index eec8b595..d9fc3232 100644
--- a/parts/documentation/tools/htdig/htdigindex.h
+++ b/parts/documentation/tools/htdig/htdigindex.h
@@ -26,10 +26,10 @@ class ProgressDialog : public KDialogBase
{
Q_OBJECT
public:
- ProgressDialog(bool index, QWidget *parent=0, const char *name=0);
+ ProgressDialog(bool index, TQWidget *parent=0, const char *name=0);
~ProgressDialog();
- void addDir(const QString &dir);
+ void addDir(const TQString &dir);
void scanDirectories();
bool createConfig();
bool generateIndex();
@@ -51,15 +51,15 @@ private:
void startHtdigProcess(bool initial);
void startHtmergeProcess();
- QLabel *filesLabel, *check1, *check2, *check3;
+ TQLabel *filesLabel, *check1, *check2, *check3;
KProgress *bar;
int count;
bool procdone;
- QString databaseDir;
- QString indexdir;
- QString exe;
- QStringList files;
+ TQString databaseDir;
+ TQString indexdir;
+ TQString exe;
+ TQStringList files;
KProcess *proc;
volatile int filesToDig, filesDigged, filesScanned;
bool htdigRunning, htmergeRunning;