akregator/src
Akregator::ArticleViewer Class Reference
#include <articleviewer.h>
Inheritance diagram for Akregator::ArticleViewer:

Detailed Description
This HTML viewer is used to display articles.Use the high-level interface provided by the public slots whereever possible (and extend them when necessary instead of using low-level methods).
Definition at line 48 of file articleviewer.h.
Public Types | |
enum | ViewMode { NormalView, CombinedView, SummaryView } |
Public Slots | |
void | slotShowArticle (const Article &article) |
void | slotShowNode (TreeNode *node) |
void | slotSetFilter (const Akregator::Filters::ArticleMatcher &textFilter, const Akregator::Filters::ArticleMatcher &statusFilter) |
void | slotUpdateCombinedView () |
void | slotClear () |
void | slotShowSummary (TreeNode *node) |
virtual void | slotPaletteOrFontChanged () |
Public Member Functions | |
ArticleViewer (QWidget *parent, const char *name) | |
virtual | ~ArticleViewer () |
virtual bool | openURL (const KURL &url) |
void | reload () |
void | displayAboutPage () |
void | renderContent (const QString &body) |
QString | formatArticleNormalMode (Feed *feed, const Article &article) |
QString | formatArticleCombinedMode (Feed *feed, const Article &article) |
void | beginWriting () |
void | endWriting () |
void | generateNormalModeCSS () |
void | generateCombinedModeCSS () |
void | connectToNode (TreeNode *node) |
void | disconnectFromNode (TreeNode *node) |
Public Attributes | |
ShowSummaryVisitor * | m_showSummaryVisitor |
QString | m_normalModeCSS |
QString | m_combinedModeCSS |
QString | m_htmlFooter |
QString | m_currentText |
KURL | m_imageDir |
TreeNode * | m_node |
Article | m_article |
KURL | m_link |
Akregator::Filters::ArticleMatcher | m_textFilter |
Akregator::Filters::ArticleMatcher | m_statusFilter |
ViewMode | m_viewMode |
Protected Slots | |
void | slotArticlesUpdated (TreeNode *node, const QValueList< Article > &list) |
void | slotArticlesAdded (TreeNode *node, const QValueList< Article > &list) |
void | slotArticlesRemoved (TreeNode *node, const QValueList< Article > &list) |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | urlSelected (const QString &url, int button, int state, const QString &_target, KParts::URLArgs args) |
Friends | |
class | ShowNodeSummaryVisitor |
Constructor & Destructor Documentation
|
Constructor.
Definition at line 160 of file articleviewer.cpp. |
Member Function Documentation
|
Resets the canvas and adds writes the HTML header to it.
Definition at line 589 of file articleviewer.cpp. |
|
Finishes writing to the canvas and completes the HTML (by adding closing tags).
Definition at line 598 of file articleviewer.cpp. |
|
Takes an article and renders it as HTML with settings for combined view.
Definition at line 492 of file articleviewer.cpp. |
|
Takes an article and renders it as HTML with settings for normal view and widescreen view.
Definition at line 399 of file articleviewer.cpp. |
|
generates the CSS for combined view mode
Definition at line 264 of file articleviewer.cpp. |
|
generates the CSS used for rendering in single article mode (normal and wide screen view)
Definition at line 185 of file articleviewer.cpp. |
|
Repaints the view.
Definition at line 343 of file articleviewer.cpp. |
|
renders Use this method whereever possible.
Definition at line 579 of file articleviewer.cpp. |
|
Clears the canvas and disconnects from the currently observed node (if in combined view mode).
Definition at line 705 of file articleviewer.cpp. |
|
Set filters
Definition at line 638 of file articleviewer.cpp. |
|
Show single article (normal view).
Definition at line 625 of file articleviewer.cpp. |
|
Shows the articles of the tree node Changes in the node will update the view automatically.
Definition at line 714 of file articleviewer.cpp. |
|
Update view if combined view mode is set. Has to be called when the displayed node gets modified. Definition at line 649 of file articleviewer.cpp. |
|
reimplemented to handle url selection according to the settings for LMB and MMB
Reimplemented from Akregator::Viewer. Definition at line 739 of file articleviewer.cpp. |
The documentation for this class was generated from the following files: