diff options
Diffstat (limited to 'akregator/src/articleviewer.cpp')
-rw-r--r-- | akregator/src/articleviewer.cpp | 222 |
1 files changed, 111 insertions, 111 deletions
diff --git a/akregator/src/articleviewer.cpp b/akregator/src/articleviewer.cpp index 942ce623e..147f4ab41 100644 --- a/akregator/src/articleviewer.cpp +++ b/akregator/src/articleviewer.cpp @@ -22,10 +22,10 @@ without including the source code for Qt in the source distribution. */ -#include <qdatetime.h> -#include <qevent.h> -#include <qscrollview.h> -#include <qvaluelist.h> +#include <tqdatetime.h> +#include <tqevent.h> +#include <tqscrollview.h> +#include <tqvaluelist.h> #include <kaction.h> #include <kapplication.h> @@ -56,7 +56,7 @@ namespace Akregator { // from kmail::headerstyle.cpp -static inline QString directionOf(const QString &str) +static inline TQString directionOf(const TQString &str) { return str.isRightToLeft() ? "rtl" : "ltr" ; } @@ -69,12 +69,12 @@ class ArticleViewer::ShowSummaryVisitor : public TreeNodeVisitor virtual bool visitFeed(Feed* node) { - m_view->m_link = QString(); + m_view->m_link = TQString(); - QString text; - text = QString("<div class=\"headerbox\" dir=\"%1\">\n").arg(QApplication::reverseLayout() ? "rtl" : "ltr"); + TQString text; + text = TQString("<div class=\"headerbox\" dir=\"%1\">\n").arg(TQApplication::reverseLayout() ? "rtl" : "ltr"); - text += QString("<div class=\"headertitle\" dir=\"%1\">").arg(directionOf(Utils::stripTags(node->title()))); + text += TQString("<div class=\"headertitle\" dir=\"%1\">").arg(directionOf(Utils::stripTags(node->title()))); text += node->title(); if(node->unread() == 0) text += i18n(" (no unread articles)"); @@ -85,26 +85,26 @@ class ArticleViewer::ShowSummaryVisitor : public TreeNodeVisitor if (!node->image().isNull()) // image { - text += QString("<div class=\"body\">"); - QString url=node->xmlUrl(); - QString file = url.replace("/", "_").replace(":", "_"); + text += TQString("<div class=\"body\">"); + TQString url=node->xmlUrl(); + TQString file = url.replace("/", "_").replace(":", "_"); KURL u(m_view->m_imageDir); u.setFileName(file); - text += QString("<a href=\"%1\"><img class=\"headimage\" src=\"%2.png\"></a>\n").arg(node->htmlUrl()).arg(u.url()); + text += TQString("<a href=\"%1\"><img class=\"headimage\" src=\"%2.png\"></a>\n").arg(node->htmlUrl()).arg(u.url()); } else text += "<div class=\"body\">"; if( !node->description().isEmpty() ) { - text += QString("<div dir=\"%1\">").arg(Utils::stripTags(directionOf(node->description()))); + text += TQString("<div dir=\"%1\">").arg(Utils::stripTags(directionOf(node->description()))); text += i18n("<b>Description:</b> %1<br><br>").arg(node->description()); text += "</div>\n"; // /description } if ( !node->htmlUrl().isEmpty() ) { - text += QString("<div dir=\"%1\">").arg(directionOf(node->htmlUrl())); + text += TQString("<div dir=\"%1\">").arg(directionOf(node->htmlUrl())); text += i18n("<b>Homepage:</b> <a href=\"%1\">%2</a>").arg(node->htmlUrl()).arg(node->htmlUrl()); text += "</div>\n"; // / link } @@ -118,16 +118,16 @@ class ArticleViewer::ShowSummaryVisitor : public TreeNodeVisitor virtual bool visitFolder(Folder* node) { - m_view->m_link = QString(); + m_view->m_link = TQString(); - QString text; - text = QString("<div class=\"headerbox\" dir=\"%1\">\n").arg(QApplication::reverseLayout() ? "rtl" : "ltr"); - text += QString("<div class=\"headertitle\" dir=\"%1\">%2").arg(directionOf(Utils::stripTags(node->title()))).arg(node->title()); + TQString text; + text = TQString("<div class=\"headerbox\" dir=\"%1\">\n").arg(TQApplication::reverseLayout() ? "rtl" : "ltr"); + text += TQString("<div class=\"headertitle\" dir=\"%1\">%2").arg(directionOf(Utils::stripTags(node->title()))).arg(node->title()); if(node->unread() == 0) text += i18n(" (no unread articles)"); else text += i18n(" (1 unread article)", " (%n unread articles)", node->unread()); - text += QString("</div>\n"); + text += TQString("</div>\n"); text += "</div>\n"; // /headerbox m_view->renderContent(text); @@ -136,16 +136,16 @@ class ArticleViewer::ShowSummaryVisitor : public TreeNodeVisitor virtual bool visitTagNode(TagNode* node) { - m_view->m_link = QString(); + m_view->m_link = TQString(); - QString text; - text = QString("<div class=\"headerbox\" dir=\"%1\">\n").arg(QApplication::reverseLayout() ? "rtl" : "ltr"); - text += QString("<div class=\"headertitle\" dir=\"%1\">%2").arg(directionOf(Utils::stripTags(node->title()))).arg(node->title()); + TQString text; + text = TQString("<div class=\"headerbox\" dir=\"%1\">\n").arg(TQApplication::reverseLayout() ? "rtl" : "ltr"); + text += TQString("<div class=\"headertitle\" dir=\"%1\">%2").arg(directionOf(Utils::stripTags(node->title()))).arg(node->title()); if(node->unread() == 0) text += i18n(" (no unread articles)"); else text += i18n(" (1 unread article)", " (%n unread articles)", node->unread()); - text += QString("</div>\n"); + text += TQString("</div>\n"); text += "</div>\n"; // /headerbox m_view->renderContent(text); @@ -157,7 +157,7 @@ class ArticleViewer::ShowSummaryVisitor : public TreeNodeVisitor ArticleViewer* m_view; }; -ArticleViewer::ArticleViewer(QWidget *parent, const char *name) +ArticleViewer::ArticleViewer(TQWidget *parent, const char *name) : Viewer(parent, name), m_htmlFooter(), m_currentText(), m_node(0), m_viewMode(NormalView) { setJScriptEnabled(false); @@ -169,13 +169,13 @@ ArticleViewer::ArticleViewer(QWidget *parent, const char *name) generateNormalModeCSS(); generateCombinedModeCSS(); - new KAction( i18n("&Scroll Up"), QString::null, "Up", this, SLOT(slotScrollUp()), actionCollection(), "articleviewer_scroll_up" ); - new KAction( i18n("&Scroll Down"), QString::null, "Down", this, SLOT(slotScrollDown()), actionCollection(), "articleviewer_scroll_down" ); + new KAction( i18n("&Scroll Up"), TQString::null, "Up", this, TQT_SLOT(slotScrollUp()), actionCollection(), "articleviewer_scroll_up" ); + new KAction( i18n("&Scroll Down"), TQString::null, "Down", this, TQT_SLOT(slotScrollDown()), actionCollection(), "articleviewer_scroll_down" ); - connect(this, SIGNAL(selectionChanged()), this, SLOT(slotSelectionChanged())); + connect(this, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(slotSelectionChanged())); - connect(kapp, SIGNAL(kdisplayPaletteChanged()), this, SLOT(slotPaletteOrFontChanged()) ); - connect(kapp, SIGNAL(kdisplayFontChanged()), this, SLOT(slotPaletteOrFontChanged()) ); + connect(kapp, TQT_SIGNAL(kdisplayPaletteChanged()), this, TQT_SLOT(slotPaletteOrFontChanged()) ); + connect(kapp, TQT_SIGNAL(kdisplayFontChanged()), this, TQT_SLOT(slotPaletteOrFontChanged()) ); m_imageDir.setPath(KGlobal::dirs()->saveLocation("cache", "akregator/Media/")); m_htmlFooter = "</body></html>"; @@ -188,10 +188,10 @@ ArticleViewer::~ArticleViewer() void ArticleViewer::generateNormalModeCSS() { - const QColorGroup & cg = QApplication::palette().active(); + const TQColorGroup & cg = TQApplication::palette().active(); // from kmail::headerstyle.cpp - m_normalModeCSS = QString( + m_normalModeCSS = TQString( "@media screen, print {" "body {\n" " font-family: \"%1\" ! important;\n" @@ -199,13 +199,13 @@ void ArticleViewer::generateNormalModeCSS() " color: %3 ! important;\n" " background: %4 ! important;\n" "}\n\n").arg(Settings::standardFont()) - .arg(QString::number(pointsToPixel(Settings::mediumFontSize()))+"px") + .arg(TQString::number(pointsToPixel(Settings::mediumFontSize()))+"px") .arg(cg.text().name()) .arg(cg.base().name()); - m_normalModeCSS += QString( + m_normalModeCSS += TQString( "a {\n" - + QString(" color: %1 ! important;\n") - + QString(!Settings::underlineLinks() ? " text-decoration: none ! important;\n" : "") + + TQString(" color: %1 ! important;\n") + + TQString(!Settings::underlineLinks() ? " text-decoration: none ! important;\n" : "") + "}\n\n" +".headerbox {\n" +" background: %2 ! important;\n" @@ -218,7 +218,7 @@ void ArticleViewer::generateNormalModeCSS() .arg(cg.background().name()) .arg(cg.text().name()); - m_normalModeCSS += QString(".headertitle a:link { color: %1 ! important; }\n" + m_normalModeCSS += TQString(".headertitle a:link { color: %1 ! important; }\n" ".headertitle a:visited { color: %2 ! important; }\n" ".headertitle a:hover{ color: %3 ! important; }\n" ".headertitle a:active { color: %4 ! important; }\n") @@ -227,7 +227,7 @@ void ArticleViewer::generateNormalModeCSS() .arg(cg.highlightedText().name()) .arg(cg.highlightedText().name()); - m_normalModeCSS += QString( + m_normalModeCSS += TQString( ".headertitle {\n" " background: %1 ! important;\n" " padding:2px;\n" @@ -247,7 +247,7 @@ void ArticleViewer::generateNormalModeCSS() "}\n\n").arg(cg.highlight().name()) .arg(cg.highlightedText().name()); - m_normalModeCSS += QString( + m_normalModeCSS += TQString( "body { clear: none; }\n\n" ".content {\n" " display: block;\n" @@ -267,10 +267,10 @@ void ArticleViewer::generateNormalModeCSS() void ArticleViewer::generateCombinedModeCSS() { - const QColorGroup & cg = QApplication::palette().active(); + const TQColorGroup & cg = TQApplication::palette().active(); // from kmail::headerstyle.cpp - m_combinedModeCSS = QString ( + m_combinedModeCSS = TQString ( // "<style type=\"text/css\">\n" "@media screen, print {" "body {\n" @@ -279,13 +279,13 @@ void ArticleViewer::generateCombinedModeCSS() " color: %3 ! important;\n" " background: %4 ! important;\n" "}\n\n").arg(Settings::standardFont()) - .arg(QString::number(pointsToPixel(Settings::mediumFontSize()))+"px") + .arg(TQString::number(pointsToPixel(Settings::mediumFontSize()))+"px") .arg(cg.text().name()) .arg(cg.base().name()); m_combinedModeCSS += ( "a {\n" - + QString(" color: %1 ! important;\n") - + QString(!Settings::underlineLinks() ? " text-decoration: none ! important;\n" : "") + + TQString(" color: %1 ! important;\n") + + TQString(!Settings::underlineLinks() ? " text-decoration: none ! important;\n" : "") + "}\n\n" +".headerbox {\n" +" background: %2 ! important;\n" @@ -298,7 +298,7 @@ void ArticleViewer::generateCombinedModeCSS() .arg(cg.background().name()) .arg(cg.text().name()); - m_combinedModeCSS += QString(".headertitle a:link { color: %1 ! important; }\n" + m_combinedModeCSS += TQString(".headertitle a:link { color: %1 ! important; }\n" ".headertitle a:visited { color: %2 ! important; }\n" ".headertitle a:hover{ color: %3 ! important; }\n" ".headertitle a:active { color: %4 ! important; }\n") @@ -306,7 +306,7 @@ void ArticleViewer::generateCombinedModeCSS() .arg(cg.highlightedText().name()) .arg(cg.highlightedText().name()) .arg(cg.highlightedText().name()); - m_combinedModeCSS += QString( + m_combinedModeCSS += TQString( ".headertitle {\n" " background: %1 ! important;\n" " padding:2px;\n" @@ -326,7 +326,7 @@ void ArticleViewer::generateCombinedModeCSS() "}\n\n").arg(cg.highlight().name()) .arg(cg.highlightedText().name()); - m_combinedModeCSS += QString( + m_combinedModeCSS += TQString( "body { clear: none; }\n\n" ".content {\n" " display: block;\n" @@ -366,8 +366,8 @@ bool ArticleViewer::openURL(const KURL& url) void ArticleViewer::displayAboutPage() { - QString location = locate("data", "akregator/about/main.html"); - QString content = KPIM::kFileToString(location); + TQString location = locate("data", "akregator/about/main.html"); + TQString content = KPIM::kFileToString(location); content = content.arg( locate( "data", "libkdepim/about/kde_infopage.css" ) ); if ( kapp->reverseLayout() ) content = content.arg( "@import \"%1\";" ).arg( locate( "data", "libkdepim/about/kde_infopage_rtl.css" ) ); @@ -375,7 +375,7 @@ void ArticleViewer::displayAboutPage() content = content.arg( "" ); begin(KURL( location )); - QString info = + TQString info = i18n("%1: Akregator version; %2: help:// URL; %3: homepage URL; " "--- end of comment ---", "<h2 style='margin-top: 0px;'>Welcome to Akregator %1</h2>" @@ -392,22 +392,22 @@ void ArticleViewer::displayAboutPage() .arg(AKREGATOR_VERSION) // Akregator version .arg("http://akregator.kde.org/"); // Akregator homepage URL - QString fontSize = QString::number( pointsToPixel( Settings::mediumFontSize() )); - QString appTitle = i18n("Akregator"); - QString catchPhrase = ""; //not enough space for a catch phrase at default window size i18n("Part of the Kontact Suite"); - QString quickDescription = i18n("An RSS feed reader for the K Desktop Environment."); + TQString fontSize = TQString::number( pointsToPixel( Settings::mediumFontSize() )); + TQString appTitle = i18n("Akregator"); + TQString catchPhrase = ""; //not enough space for a catch phrase at default window size i18n("Part of the Kontact Suite"); + TQString quickDescription = i18n("An RSS feed reader for the K Desktop Environment."); write(content.arg(fontSize).arg(appTitle).arg(catchPhrase).arg(quickDescription).arg(info)); end(); } -QString ArticleViewer::formatArticleNormalMode(Feed* feed, const Article& article) +TQString ArticleViewer::formatArticleNormalMode(Feed* feed, const Article& article) { - QString text; - text = QString("<div class=\"headerbox\" dir=\"%1\">\n").arg(QApplication::reverseLayout() ? "rtl" : "ltr"); + TQString text; + text = TQString("<div class=\"headerbox\" dir=\"%1\">\n").arg(TQApplication::reverseLayout() ? "rtl" : "ltr"); if (!article.title().isEmpty()) { - text += QString("<div class=\"headertitle\" dir=\"%1\">\n").arg(directionOf(Utils::stripTags(article.title()))); + text += TQString("<div class=\"headertitle\" dir=\"%1\">\n").arg(directionOf(Utils::stripTags(article.title()))); if (article.link().isValid()) text += "<a href=\""+article.link().url()+"\">"; text += article.title().replace("<", "<").replace(">", ">"); // TODO: better leave things escaped in the parser @@ -417,16 +417,16 @@ QString ArticleViewer::formatArticleNormalMode(Feed* feed, const Article& articl } if (article.pubDate().isValid()) { - text += QString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date"))); - text += QString ("%1:").arg(i18n("Date")); + text += TQString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date"))); + text += TQString ("%1:").arg(i18n("Date")); text += "</span><span class=\"headertext\">"; text += KGlobal::locale()->formatDateTime(article.pubDate(), false, false)+"</span>\n"; // TODO: might need RTL? } - QString author = article.author(); + TQString author = article.author(); if (!author.isEmpty()) { - text += QString("<br/><span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Author"))); - text += QString ("%1:").arg(i18n("Author")); + text += TQString("<br/><span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Author"))); + text += TQString ("%1:").arg(i18n("Author")); text += "</span><span class=\"headertext\">"; text += author+"</span>\n"; // TODO: might need RTL? } @@ -434,17 +434,17 @@ QString ArticleViewer::formatArticleNormalMode(Feed* feed, const Article& articl if (feed && !feed->image().isNull()) { - QString file = Utils::fileNameForUrl(feed->xmlUrl()); + TQString file = Utils::fileNameForUrl(feed->xmlUrl()); KURL u(m_imageDir); u.setFileName(file); - text += QString("<a href=\"%1\"><img class=\"headimage\" src=\"%2.png\"></a>\n").arg(feed->htmlUrl()).arg(u.url()); + text += TQString("<a href=\"%1\"><img class=\"headimage\" src=\"%2.png\"></a>\n").arg(feed->htmlUrl()).arg(u.url()); } if (!article.description().isEmpty()) { - text += QString("<div dir=\"%1\">").arg(directionOf(Utils::stripTags(article.description())) ); + text += TQString("<div dir=\"%1\">").arg(directionOf(Utils::stripTags(article.description())) ); text += "<span class=\"content\">"+article.description()+"</span>"; text += "</div>"; } @@ -458,7 +458,7 @@ QString ArticleViewer::formatArticleNormalMode(Feed* feed, const Article& articl text += "\">" + i18n( "Comments"); if (article.comments()) { - text += " ("+ QString::number(article.comments()) +")"; + text += " ("+ TQString::number(article.comments()) +")"; } text += "</a>"; } @@ -481,28 +481,28 @@ QString ArticleViewer::formatArticleNormalMode(Feed* feed, const Article& articl if (!article.enclosure().isNull()) { - //QString url = article.enclosure().url(); - //QString type = article.enclosure().type(); + //TQString url = article.enclosure().url(); + //TQString type = article.enclosure().type(); //int length = article.enclosure().length(); - //QString lengthStr = KIO::convertSize(length); + //TQString lengthStr = KIO::convertSize(length); - //text += QString("<hr><div><a href=\"%1\">%2</a> (%3, %4)</div>").arg(url).arg(url).arg(lengthStr).arg(type); + //text += TQString("<hr><div><a href=\"%1\">%2</a> (%3, %4)</div>").arg(url).arg(url).arg(lengthStr).arg(type); } //kdDebug() << text << endl; return text; } -QString ArticleViewer::formatArticleCombinedMode(Feed* feed, const Article& article) +TQString ArticleViewer::formatArticleCombinedMode(Feed* feed, const Article& article) { - QString text; - text = QString("<div class=\"headerbox\" dir=\"%1\">\n").arg(QApplication::reverseLayout() ? "rtl" : "ltr"); + TQString text; + text = TQString("<div class=\"headerbox\" dir=\"%1\">\n").arg(TQApplication::reverseLayout() ? "rtl" : "ltr"); KURL link = article.link(); if (!article.title().isEmpty()) { - text += QString("<div class=\"headertitle\" dir=\"%1\">\n").arg(directionOf(Utils::stripTags(article.title()))); + text += TQString("<div class=\"headertitle\" dir=\"%1\">\n").arg(directionOf(Utils::stripTags(article.title()))); if (link.isValid()) text += "<a href=\""+link.url()+"\">"; text += article.title().replace("<", "<").replace(">", ">"); // TODO: better leave things escaped in the parser @@ -512,17 +512,17 @@ QString ArticleViewer::formatArticleCombinedMode(Feed* feed, const Article& arti } if (article.pubDate().isValid()) { - text += QString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date"))); - text += QString ("%1:").arg(i18n("Date")); + text += TQString("<span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Date"))); + text += TQString ("%1:").arg(i18n("Date")); text += "</span><span class=\"headertext\">"; text += KGlobal::locale()->formatDateTime(article.pubDate(), false, false)+"</span>\n"; // TODO: might need RTL? } - QString author = article.author(); + TQString author = article.author(); if (!author.isEmpty()) { - text += QString("<br/><span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Author"))); - text += QString ("%1:").arg(i18n("Author")); + text += TQString("<br/><span class=\"header\" dir=\"%1\">").arg(directionOf(i18n("Author"))); + text += TQString ("%1:").arg(i18n("Author")); text += "</span><span class=\"headertext\">"; text += author+"</span>\n"; // TODO: might need RTL? } @@ -531,17 +531,17 @@ QString ArticleViewer::formatArticleCombinedMode(Feed* feed, const Article& arti if (feed && !feed->image().isNull()) { - QString file = Utils::fileNameForUrl(feed->xmlUrl()); + TQString file = Utils::fileNameForUrl(feed->xmlUrl()); KURL u(m_imageDir); u.setFileName(file); - text += QString("<a href=\"%1\"><img class=\"headimage\" src=\"%2.png\"></a>\n").arg(feed->htmlUrl()).arg(u.url()); + text += TQString("<a href=\"%1\"><img class=\"headimage\" src=\"%2.png\"></a>\n").arg(feed->htmlUrl()).arg(u.url()); } if (!article.description().isEmpty()) { - text += QString("<div dir=\"%1\">").arg(directionOf(Utils::stripTags(article.description())) ); + text += TQString("<div dir=\"%1\">").arg(directionOf(Utils::stripTags(article.description())) ); text += "<span class=\"content\">"+article.description()+"</span>"; text += "</div>"; } @@ -555,7 +555,7 @@ QString ArticleViewer::formatArticleCombinedMode(Feed* feed, const Article& arti text += "\">" + i18n( "Comments"); if (article.comments()) { - text += " ("+ QString::number(article.comments()) +")"; + text += " ("+ TQString::number(article.comments()) +")"; } text += "</a>"; } @@ -580,7 +580,7 @@ QString ArticleViewer::formatArticleCombinedMode(Feed* feed, const Article& arti } -void ArticleViewer::renderContent(const QString& text) +void ArticleViewer::renderContent(const TQString& text) { closeURL(); m_currentText = text; @@ -592,7 +592,7 @@ void ArticleViewer::renderContent(const QString& text) void ArticleViewer::beginWriting() { - QString head = QString("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n <html><head><title>.</title></head>"); + TQString head = TQString("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n <html><head><title>.</title></head>"); view()->setContentsPos(0,0); begin(m_link); setUserStyleSheet(m_viewMode == CombinedView ? m_combinedModeCSS : m_normalModeCSS); @@ -658,15 +658,15 @@ void ArticleViewer::slotUpdateCombinedView() if (!m_node) return slotClear(); - QValueList<Article> articles = m_node->articles(); + TQValueList<Article> articles = m_node->articles(); qHeapSort(articles); - QValueList<Article>::ConstIterator end = articles.end(); - QValueList<Article>::ConstIterator it = articles.begin(); + TQValueList<Article>::ConstIterator end = articles.end(); + TQValueList<Article>::ConstIterator it = articles.begin(); - QString text; + TQString text; int num = 0; - QTime spent; + TQTime spent; spent.start(); for ( ; it != end; ++it) @@ -684,22 +684,22 @@ void ArticleViewer::slotUpdateCombinedView() } -void ArticleViewer::slotArticlesUpdated(TreeNode* /*node*/, const QValueList<Article>& /*list*/) +void ArticleViewer::slotArticlesUpdated(TreeNode* /*node*/, const TQValueList<Article>& /*list*/) { if (m_viewMode == CombinedView) slotUpdateCombinedView(); } -void ArticleViewer::slotArticlesAdded(TreeNode* /*node*/, const QValueList<Article>& /*list*/) +void ArticleViewer::slotArticlesAdded(TreeNode* /*node*/, const TQValueList<Article>& /*list*/) { } -void ArticleViewer::slotArticlesRemoved(TreeNode* /*node*/, const QValueList<Article>& /*list*/) +void ArticleViewer::slotArticlesRemoved(TreeNode* /*node*/, const TQValueList<Article>& /*list*/) { } /* testingtesting :) -void ArticleViewer::slotPopupMenu(KXMLGUIClient*, const QPoint& p, const KURL& kurl, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t) +void ArticleViewer::slotPopupMenu(KXMLGUIClient*, const TQPoint& p, const KURL& kurl, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t) { kdDebug() << m_link << endl; kdDebug() << kurl.url() << endl; @@ -712,7 +712,7 @@ void ArticleViewer::slotClear() m_node = 0; m_article = Article(); - renderContent(QString()); + renderContent(TQString()); } void ArticleViewer::slotShowNode(TreeNode* node) @@ -735,12 +735,12 @@ void ArticleViewer::slotShowNode(TreeNode* node) slotUpdateCombinedView(); } -void ArticleViewer::keyPressEvent(QKeyEvent* e) +void ArticleViewer::keyPressEvent(TQKeyEvent* e) { e->ignore(); } -void ArticleViewer::urlSelected(const QString &url, int button, int state, const QString& _target, KParts::URLArgs args) +void ArticleViewer::urlSelected(const TQString &url, int button, int state, const TQString& _target, KParts::URLArgs args) { if(url == "config:/disable_introduction") { if(KMessageBox::questionYesNo( widget(), i18n("Are you sure you want to disable this introduction page?"), i18n("Disable Introduction Page"), i18n("Disable"), i18n("Keep Enabled") ) == KMessageBox::Yes) { @@ -766,15 +766,15 @@ void ArticleViewer::connectToNode(TreeNode* node) { if (m_viewMode == CombinedView) { -// connect( node, SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotUpdateCombinedView() ) ); - connect( node, SIGNAL(signalArticlesAdded(TreeNode*, const QValueList<Article>&)), this, SLOT(slotArticlesAdded(TreeNode*, const QValueList<Article>&))); - connect( node, SIGNAL(signalArticlesRemoved(TreeNode*, const QValueList<Article>&)), this, SLOT(slotArticlesRemoved(TreeNode*, const QValueList<Article>&))); - connect( node, SIGNAL(signalArticlesUpdated(TreeNode*, const QValueList<Article>&)), this, SLOT(slotArticlesUpdated(TreeNode*, const QValueList<Article>&))); +// connect( node, TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotUpdateCombinedView() ) ); + connect( node, TQT_SIGNAL(signalArticlesAdded(TreeNode*, const TQValueList<Article>&)), this, TQT_SLOT(slotArticlesAdded(TreeNode*, const TQValueList<Article>&))); + connect( node, TQT_SIGNAL(signalArticlesRemoved(TreeNode*, const TQValueList<Article>&)), this, TQT_SLOT(slotArticlesRemoved(TreeNode*, const TQValueList<Article>&))); + connect( node, TQT_SIGNAL(signalArticlesUpdated(TreeNode*, const TQValueList<Article>&)), this, TQT_SLOT(slotArticlesUpdated(TreeNode*, const TQValueList<Article>&))); } if (m_viewMode == SummaryView) - connect( node, SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotShowSummary(TreeNode*) ) ); + connect( node, TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotShowSummary(TreeNode*) ) ); - connect( node, SIGNAL(signalDestroyed(TreeNode*)), this, SLOT(slotClear() ) ); + connect( node, TQT_SIGNAL(signalDestroyed(TreeNode*)), this, TQT_SLOT(slotClear() ) ); } } @@ -782,12 +782,12 @@ void ArticleViewer::disconnectFromNode(TreeNode* node) { if (node) { -// disconnect( node, SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotUpdateCombinedView() ) ); - disconnect( node, SIGNAL(signalDestroyed(TreeNode*)), this, SLOT(slotClear() ) ); - disconnect( node, SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotShowSummary(TreeNode*) ) ); - disconnect( node, SIGNAL(signalArticlesAdded(TreeNode*, const QValueList<Article>&)), this, SLOT(slotArticlesAdded(TreeNode*, const QValueList<Article>&))); - disconnect( node, SIGNAL(signalArticlesRemoved(TreeNode*, const QValueList<Article>&)), this, SLOT(slotArticlesRemoved(TreeNode*, const QValueList<Article>&))); - disconnect( node, SIGNAL(signalArticlesUpdated(TreeNode*, const QValueList<Article>&)), this, SLOT(slotArticlesUpdated(TreeNode*, const QValueList<Article>&))); +// disconnect( node, TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotUpdateCombinedView() ) ); + disconnect( node, TQT_SIGNAL(signalDestroyed(TreeNode*)), this, TQT_SLOT(slotClear() ) ); + disconnect( node, TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotShowSummary(TreeNode*) ) ); + disconnect( node, TQT_SIGNAL(signalArticlesAdded(TreeNode*, const TQValueList<Article>&)), this, TQT_SLOT(slotArticlesAdded(TreeNode*, const TQValueList<Article>&))); + disconnect( node, TQT_SIGNAL(signalArticlesRemoved(TreeNode*, const TQValueList<Article>&)), this, TQT_SLOT(slotArticlesRemoved(TreeNode*, const TQValueList<Article>&))); + disconnect( node, TQT_SIGNAL(signalArticlesUpdated(TreeNode*, const TQValueList<Article>&)), this, TQT_SLOT(slotArticlesUpdated(TreeNode*, const TQValueList<Article>&))); } } |