akregator
articleviewer.cpp
Go to the documentation of this file.
117 connect(ext, SIGNAL(popupMenu(QPoint,KUrl,mode_t,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags,KParts::BrowserExtension::ActionGroupMap)),
118 this, SLOT(slotPopupMenu(QPoint,KUrl,mode_t,KParts::OpenUrlArguments,KParts::BrowserArguments,KParts::BrowserExtension::PopupFlags))); // ActionGroupMap argument removed, unused by slot
120 connect( ext, SIGNAL(openUrlRequestDelayed(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)),
121 this, SLOT(slotOpenUrlRequestDelayed(KUrl,KParts::OpenUrlArguments,KParts::BrowserArguments)) );
148 connect(KGlobalSettings::self(), SIGNAL(kdisplayPaletteChanged()), this, SLOT(slotPaletteOrFontChanged()) );
149 connect(KGlobalSettings::self(), SIGNAL(kdisplayFontChanged()), this, SLOT(slotPaletteOrFontChanged()) );
168 void ArticleViewer::slotOpenUrlRequestDelayed(const KUrl& url, const KParts::OpenUrlArguments& args, const KParts::BrowserArguments& browserArgs)
225 void ArticleViewer::slotPopupMenu(const QPoint& p, const KUrl& kurl, mode_t, const KParts::OpenUrlArguments&, const KParts::BrowserArguments&, KParts::BrowserExtension::PopupFlags kpf)
227 const bool isLink = (kpf & KParts::BrowserExtension::ShowNavigationItems) == 0; // ## why not use kpf & IsLink ?
237 popup.addAction( createOpenLinkInNewTabAction( kurl, this, SLOT(slotOpenLinkInForegroundTab()), &popup ) );
238 popup.addAction( createOpenLinkInExternalBrowserAction( kurl, this, SLOT(slotOpenLinkInBrowser()), &popup ) );
277 // which spec? Nobody seems to care (tested Firefox (3.5.10) Konqueror,and KMail (4.2.3)), so I re-enable the following line unless someone gives
284 ActionManager::getInstance()->action("viewer_copy")->setEnabled(!m_part->selectedText().isEmpty());
390 connect( node, SIGNAL(signalChanged(Akregator::TreeNode*)), this, SLOT(slotUpdateCombinedView()) );
391 connect( node, SIGNAL(signalArticlesAdded(Akregator::TreeNode*,QList<Akregator::Article>)), this, SLOT(slotArticlesAdded(Akregator::TreeNode*,QList<Akregator::Article>)));
392 connect( node, SIGNAL(signalArticlesRemoved(Akregator::TreeNode*,QList<Akregator::Article>)), this, SLOT(slotArticlesRemoved(Akregator::TreeNode*,QList<Akregator::Article>)));
393 connect( node, SIGNAL(signalArticlesUpdated(Akregator::TreeNode*,QList<Akregator::Article>)), this, SLOT(slotArticlesUpdated(Akregator::TreeNode*,QList<Akregator::Article>)));
396 connect( node, SIGNAL(signalChanged(Akregator::TreeNode*)), this, SLOT(slotShowSummary(Akregator::TreeNode*)) );
420 QString head = QString("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n <html><head><title>.</title>");
511 void ArticleViewer::setFilters(const std::vector< shared_ptr<const AbstractMatcher> >& filters )
536 const std::vector< shared_ptr<const AbstractMatcher> >::const_iterator filterEnd = m_filters.end();
543 if ( std::find_if( m_filters.begin(), m_filters.end(), !bind( &AbstractMatcher::matches, _1, i ) ) != filterEnd )
546 text += "<p><div class=\"article\">"+m_combinedViewFormatter->formatArticle( i, ArticleFormatter::NoIcon)+"</div><p>";
550 kDebug() <<"Combined view rendering: (" << num <<" articles):" <<"generating HTML:" << spent.elapsed() <<"ms";
694 QString catchPhrase = ""; //not enough space for a catch phrase at default window size i18n("Part of the Kontact Suite");
700 QString rtl = kapp->isRightToLeft() ? QString("@import \"%1\";" ).arg( KStandardDirs::locate( "data", "kdeui/about/kde_infopage_rtl.css" )) : QString();
702 m_part->write( content.arg( infocss, rtl, fontSize, appTitle, catchPhrase, quickDescription, info ) );
724 bool ArticleViewerPart::urlSelected(const QString &url, int button, int state, const QString &_target,
735 if(KMessageBox::questionYesNo( widget(), i18n("Are you sure you want to disable this introduction page?"), i18n("Disable Introduction Page"), yesButton, noButton) == KMessageBox::Yes)
void slotCreateNewWindow(const KUrl &url, const KParts::OpenUrlArguments &args, const KParts::BrowserArguments &browserArgs, const KParts::WindowArgs &windowArgs, KParts::ReadOnlyPart **part)
Definition: articleviewer.cpp:208
void slotShowSummary(Akregator::TreeNode *node)
Definition: articleviewer.cpp:449
Definition: openurlrequest.h:42
void setOpenInBackground(bool background)
Definition: openurlrequest.cpp:60
void showArticle(const Article &article)
Definition: articleviewer.cpp:473
virtual QAction * action(const char *name)=0
void completed()
void signalOpenUrlRequest(Akregator::OpenUrlRequest &)
This gets emitted when url gets clicked.
void selectionChanged()
void setCombinedViewFormatter(const boost::shared_ptr< ArticleFormatter > &formatter)
Definition: articleviewer.cpp:762
void slotArticlesUpdated(Akregator::TreeNode *node, const QList< Akregator::Article > &list)
Definition: articleviewer.cpp:555
bool urlSelected(const QString &url, int button, int state, const QString &_target, const KParts::OpenUrlArguments &args=KParts::OpenUrlArguments(), const KParts::BrowserArguments &browserArgs=KParts::BrowserArguments())
reimplemented to get the mouse button
Definition: articleviewer.cpp:724
void slotArticlesListed(KJob *job)
Definition: articleviewer.cpp:617
KParts::ReadOnlyPart * part() const
The part that was created for a "NewTab" request.
Definition: openurlrequest.cpp:109
void setArgs(const KParts::OpenUrlArguments &args)
Definition: openurlrequest.cpp:70
void setBrowserArgs(const KParts::BrowserArguments &args)
Definition: openurlrequest.cpp:81
void slotSelectionChanged()
Definition: articleviewer.cpp:282
void setOptions(Options options)
Definition: openurlrequest.cpp:99
void setNormalViewFormatter(const boost::shared_ptr< ArticleFormatter > &formatter)
Definition: articleviewer.cpp:755
Definition: articleviewer.h:214
void slotSetZoomFactor(int percent)
Definition: articleviewer.cpp:371
AKREGATOR_EXPORT QAction * createOpenLinkInExternalBrowserAction(const KUrl &url, QObject *receiver=0, const char *slot=0, QObject *parent=0)
Definition: actions.cpp:42
void showNode(Akregator::TreeNode *node)
Shows the articles of the tree node node (combined view).
Definition: articleviewer.cpp:593
AKREGATOR_EXPORT QAction * createOpenLinkInNewTabAction(const KUrl &url, QObject *receiver=0, const char *slot=0, QObject *parent=0)
Definition: actions.cpp:33
static ActionManager * getInstance()
Definition: actionmanager.cpp:35
int pointsToPixel(int points) const
Definition: articleviewer.cpp:163
void slotUpdateCombinedView()
Update view if combined view mode is set.
Definition: articleviewer.cpp:521
void slotClear()
Clears the canvas and disconnects from the currently observed node (if in combined view mode)...
Definition: articleviewer.cpp:583
void slotPaletteOrFontChanged()
Definition: articleviewer.cpp:648
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:61
void started(KIO::Job *)
void setFilters(const std::vector< boost::shared_ptr< const Akregator::Filters::AbstractMatcher > > &filters)
Set filters which will be used if the viewer is in combined view mode.
Definition: articleviewer.cpp:511
void slotPopupMenu(const QPoint &, const KUrl &, mode_t, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &, KParts::BrowserExtension::PopupFlags)
Definition: articleviewer.cpp:225
ArticleViewerPart(QWidget *parent)
Definition: articleviewer.cpp:706
virtual void setArticleActionsEnabled(bool enabled)=0
void slotArticlesRemoved(Akregator::TreeNode *node, const QList< Akregator::Article > &list)
Definition: articleviewer.cpp:573
void slotArticlesAdded(Akregator::TreeNode *node, const QList< Akregator::Article > &list)
Definition: articleviewer.cpp:563
void slotOpenUrlRequestDelayed(const KUrl &, const KParts::OpenUrlArguments &, const KParts::BrowserArguments &)
Definition: articleviewer.cpp:168
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:14 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.