knode
#include <articlewidget.h>
Public Slots | |
void | scrollDown () |
void | scrollNext () |
void | scrollPrior () |
void | scrollUp () |
Public Member Functions | |
ArticleWidget (QWidget *parent, KXMLGUIClient *guiClient, KActionCollection *actionCollection, bool isMainViewer=false) | |
~ArticleWidget () | |
KNArticle::Ptr | article () const |
bool | atBottom () const |
void | readConfig () |
void | setArticle (KNArticle::Ptr article) |
void | writeConfig () |
Public Member Functions inherited from KNJobConsumer | |
KNJobConsumer () | |
virtual | ~KNJobConsumer () |
void | cancelJobs (boost::shared_ptr< KNJobItem > item) |
void | emitJob (KNJobData *j) |
void | jobDone (KNJobData *j) |
bool | jobsPending () const |
Static Public Member Functions | |
static void | articleChanged (KNArticle::Ptr article) |
static void | articleLoadError (KNArticle::Ptr article, const QString &error) |
static void | articleRemoved (KNArticle::Ptr article) |
static bool | articleVisible (KNArticle::Ptr article) |
static void | cleanup () |
static void | collectionRemoved (KNArticleCollection::Ptr coll) |
static void | configChanged () |
Protected Member Functions | |
void | processJob (KNJobData *j) |
Additional Inherited Members | |
Protected Attributes inherited from KNJobConsumer | |
QList< KNJobData * > | mJobs |
Detailed Description
Widget to display a news article.
Definition at line 47 of file articlewidget.h.
Constructor & Destructor Documentation
ArticleWidget::ArticleWidget | ( | QWidget * | parent, |
KXMLGUIClient * | guiClient, | ||
KActionCollection * | actionCollection, | ||
bool | isMainViewer = false |
||
) |
Construct a new article widget.
Definition at line 88 of file articlewidget.cpp.
ArticleWidget::~ArticleWidget | ( | ) |
Destroy the article widget.
Definition at line 134 of file articlewidget.cpp.
Member Function Documentation
|
inline |
returns the currently shown article
Definition at line 69 of file articlewidget.h.
|
static |
notify all instances that the given article has changed
- Parameters
-
article The changed article.
Definition at line 1113 of file articlewidget.cpp.
|
static |
notify all instances about an error during loading the given article
- Parameters
-
article The article that couldn't be loaded. error The error message.
Definition at line 1121 of file articlewidget.cpp.
|
static |
notify all instances that the given article has been removed
- Parameters
-
article The removed article.
Definition at line 1105 of file articlewidget.cpp.
|
static |
check whether the given article is displayed in any instance
- Parameters
-
article The article to check.
Definition at line 1096 of file articlewidget.cpp.
bool ArticleWidget::atBottom | ( | ) | const |
checks whether the readers is scrolled down to the bottom
Definition at line 1145 of file articlewidget.cpp.
|
static |
cleanup all instances
Definition at line 1137 of file articlewidget.cpp.
|
static |
notify all instances that the given collection has been removed
- Parameters
-
coll The removed article collection (a group or a folder).
Definition at line 1129 of file articlewidget.cpp.
|
static |
notify all instances about a config change
Definition at line 1087 of file articlewidget.cpp.
|
protectedvirtual |
process download jobs for view source action
Reimplemented from KNJobConsumer.
Definition at line 1067 of file articlewidget.cpp.
void ArticleWidget::readConfig | ( | ) |
read config settings
Definition at line 337 of file articlewidget.cpp.
|
slot |
scroll down by one line
Definition at line 1156 of file articlewidget.cpp.
|
slot |
scroll down by one page
Definition at line 1166 of file articlewidget.cpp.
|
slot |
scroll up by one page
Definition at line 1161 of file articlewidget.cpp.
|
slot |
scroll up by one line
Definition at line 1151 of file articlewidget.cpp.
void ArticleWidget::setArticle | ( | KNArticle::Ptr | article | ) |
display the given article
- Parameters
-
article The article to display.
Definition at line 379 of file articlewidget.cpp.
void ArticleWidget::writeConfig | ( | ) |
write config settings (call only for the main viewer)
Definition at line 362 of file articlewidget.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.