summaryrefslogtreecommitdiffstats
path: root/parts/documentation/documentation_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/documentation/documentation_part.cpp')
-rw-r--r--parts/documentation/documentation_part.cpp196
1 files changed, 98 insertions, 98 deletions
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)