akregator/src

Akregator::View Class Reference

#include <akregator_view.h>

List of all members.


Detailed Description

This is the main widget of the view, containing tree view, article list, viewer etc.

Definition at line 80 of file akregator_view.h.


Public Types

 NormalView = 0
 WidescreenView
 CombinedView
enum  ViewMode { NormalView = 0, WidescreenView, CombinedView }

Public Slots

void slotOnShutdown ()
void slotNodeSelected (TreeNode *node)
void slotArticleSelected (const Article &)
void slotFeedTreeContextMenu (KListView *, TreeNode *, const QPoint &)
void slotSetTotalUnread ()
void slotMouseButtonPressed (int button, const Article &article, const QPoint &pos, int c)
void slotOpenArticleExternal (const Article &article, const QPoint &, int)
void slotOpenCurrentArticleExternal ()
void slotOpenCurrentArticleBackgroundTab ()
void slotOpenCurrentArticle ()
void slotCopyLinkAddress ()
void slotOpenNewTab (const KURL &url, bool background=false)
void slotFrameChanged (Frame *f)
void slotCaptionChanged (const QString &)
void slotFeedURLDropped (KURL::List &urls, TreeNode *after, Folder *parent)
void slotMouseOverInfo (const KFileItem *kifi)
void slotStatusText (const QString &)
void slotStarted ()
void slotCanceled (const QString &)
void slotCompleted ()
void slotLoadingProgress (int)
void slotFetchingStarted ()
void slotFetchingStopped ()
void slotFeedFetched (Feed *)
void slotFeedAdd ()
void slotFeedAddGroup ()
void slotFeedRemove ()
void slotFeedModify ()
void slotFetchCurrentFeed ()
void slotFetchAllFeeds ()
void slotMarkAllRead ()
void slotMarkAllFeedsRead ()
void slotOpenHomepage ()
void slotArticleToggleKeepFlag (bool enabled)
void slotArticleDelete ()
void slotSetSelectedArticleRead ()
void slotSetSelectedArticleUnread ()
void slotSetSelectedArticleNew ()
void slotSetCurrentArticleReadDelayed ()
void slotTextToSpeechRequest ()
void slotAssignTag (const Tag &tag, bool assign)
void slotNewTag ()
void slotTagCreated (const Tag &tag)
void slotTagRemoved (const Tag &tag)
void slotNormalView ()
void slotWidescreenView ()
void slotCombinedView ()
void slotToggleShowQuickFilter ()
void slotPrevUnreadArticle ()
void slotNextUnreadArticle ()
void slotMoveCurrentNodeUp ()
void slotMoveCurrentNodeDown ()
void slotMoveCurrentNodeLeft ()
void slotMoveCurrentNodeRight ()

Signals

void signalUnreadCountChanged (int)
void setWindowCaption (const QString &)
void setStatusBarText (const QString &)
void setProgress (int)
void signalStarted (KIO::Job *)
void signalCompleted ()
void signalCanceled (const QString &)

Public Member Functions

 View (Akregator::Part *part, QWidget *parent, ActionManagerImpl *actionManager, const char *name)
 ~View ()
void saveSettings ()
void slotSettingsChanged ()
bool importFeeds (const QDomDocument &doc)
bool loadFeeds (const QDomDocument &doc, Folder *parent=0)
QDomDocument feedListToOPML ()
void addFeedToGroup (const QString &url, const QString &group)
virtual void readProperties (KConfig *config)
virtual void saveProperties (KConfig *config)
FramecurrentFrame () const

Public Attributes

FeedListm_feedList
TagNodeListm_tagNodeList
NodeListViewm_feedListView
NodeListViewm_tagNodeListView
ArticleListViewm_articleList
ArticleViewerm_articleViewer
TabWidgetm_tabs
QWidget * m_mainTab
Framem_mainFrame
Framem_currentFrame
SearchBarm_searchBar
QSplitter * m_articleSplitter
QSplitter * m_horizontalSplitter
ListTabWidgetm_listTabWidget
Akregator::Partm_part
ViewMode m_viewMode
QTimer * m_fetchTimer
QTimer * m_expiryTimer
QTimer * m_markReadTimer
bool m_shuttingDown
bool m_displayingAboutPage
ActionManagerImplm_actionManager
QPixmap m_keepFlagIcon
EditNodePropertiesVisitor * m_editNodePropertiesVisitor
DeleteNodeVisitor * m_deleteNodeVisitor

Protected Slots

void delayedInit ()
void connectFrame (Frame *)
void setTabIcon (const QPixmap &)
void slotDoIntervalFetches ()
void slotDeleteExpiredArticles ()
void slotOpenURLReply (const KURL &url, Akregator::Viewer *currentViewer, Akregator::BrowserRun::OpeningMode mode)
void slotUrlClickedInViewer (const KURL &url, Viewer *viewer, bool newTab, bool background)
void slotOpenURL (const KURL &url, Akregator::Viewer *currentViewer, Akregator::BrowserRun::OpeningMode mode)

Protected Member Functions

void addFeed (const QString &url, TreeNode *after, Folder *parent, bool autoExec=true)
void connectToFeedList (FeedList *feedList)
void disconnectFromFeedList (FeedList *feedList)
void updateTagActions ()

Friends

class EditNodePropertiesVisitor
class DeleteNodeVisitor

Constructor & Destructor Documentation

Akregator::View::View ( Akregator::Part part,
QWidget *  parent,
ActionManagerImpl actionManager,
const char *  name 
)

constructor

Parameters:
part the Akregator::Part which contains this widget
parent parent widget
Actionmanager for this view
name the name of the widget (QWidget )

Definition at line 212 of file akregator_view.cpp.

Akregator::View::~View (  ) 

destructor.

Note that cleanups should be done in slotOnShutdown(), so we don't risk accessing self-deleting objects after deletion.

Definition at line 199 of file akregator_view.cpp.


Member Function Documentation

void Akregator::View::addFeedToGroup ( const QString &  url,
const QString &  group 
)

Add a feed to a group.

Parameters:
url The URL of the feed to add.
group The name of the folder into which the feed is added. If the group does not exist, it is created. The feed is added as the last member of the group.

Definition at line 604 of file akregator_view.cpp.

void Akregator::View::delayedInit (  )  [protected, slot]

this is called by the ctor, does init steps which need a properly created view and part

Definition at line 372 of file akregator_view.cpp.

QDomDocument Akregator::View::feedListToOPML (  ) 

Returns:
the displayed Feed List in OPML format

Definition at line 599 of file akregator_view.cpp.

bool Akregator::View::importFeeds ( const QDomDocument &  doc  ) 

Adds the feeds in doc to the "Imported Folder".

Parameters:
doc the DOM tree (OPML) of the feeds to import

Definition at line 506 of file akregator_view.cpp.

bool Akregator::View::loadFeeds ( const QDomDocument &  doc,
Folder parent = 0 
)

Parse OPML presentation of feeds and read in articles archive, if present.

If parent is NULL, the current feed list is replaced by the parsed one

Parameters:
doc QDomDocument generated from OPML
parent The parent group the new nodes

Definition at line 538 of file akregator_view.cpp.

void Akregator::View::readProperties ( KConfig *  config  )  [virtual]

session management

Definition at line 1452 of file akregator_view.cpp.

void Akregator::View::saveSettings (  ) 

saves settings.

Make sure that the Settings singleton is not destroyed yet when saveSettings is called

Definition at line 417 of file akregator_view.cpp.

void Akregator::View::signalUnreadCountChanged ( int   )  [signal]

emitted when the unread count of "All Feeds" was changed

void Akregator::View::slotArticleDelete (  )  [slot]

deletes the currently selected article

Definition at line 1305 of file akregator_view.cpp.

void Akregator::View::slotArticleSelected ( const Article  )  [slot]

the article selection has changed

Definition at line 1170 of file akregator_view.cpp.

void Akregator::View::slotArticleToggleKeepFlag ( bool  enabled  )  [slot]

toggles the keep flag of the currently selected article

Definition at line 1353 of file akregator_view.cpp.

void Akregator::View::slotCaptionChanged ( const QString &   )  [slot]

sets the window caption after a frame change

Definition at line 476 of file akregator_view.cpp.

void Akregator::View::slotCombinedView (  )  [slot]

switches view mode to combined view

Definition at line 673 of file akregator_view.cpp.

void Akregator::View::slotCopyLinkAddress (  )  [slot]

copies the link of current article to clipboard

Definition at line 1258 of file akregator_view.cpp.

void Akregator::View::slotFeedAdd (  )  [slot]

adds a new feed to the feed tree

Definition at line 876 of file akregator_view.cpp.

void Akregator::View::slotFeedAddGroup (  )  [slot]

adds a feed group to the feed tree

Definition at line 941 of file akregator_view.cpp.

void Akregator::View::slotFeedFetched ( Feed  )  [slot]

Feed has been fetched, populate article view if needed and update counters.

Definition at line 1087 of file akregator_view.cpp.

void Akregator::View::slotFeedModify (  )  [slot]

calls the properties dialog for feeds, starts renaming for feed groups

Definition at line 986 of file akregator_view.cpp.

void Akregator::View::slotFeedRemove (  )  [slot]

removes the currently selected feed (ask for confirmation)

Definition at line 975 of file akregator_view.cpp.

void Akregator::View::slotFeedTreeContextMenu ( KListView ,
TreeNode ,
const QPoint &   
) [slot]

Shows requested popup menu for feed tree.

Definition at line 721 of file akregator_view.cpp.

void Akregator::View::slotFeedURLDropped ( KURL::List &  urls,
TreeNode after,
Folder parent 
) [slot]

called when URLs are dropped into the tree view

Definition at line 1279 of file akregator_view.cpp.

void Akregator::View::slotFetchAllFeeds (  )  [slot]

starts fetching of all feeds in the tree

Definition at line 1068 of file akregator_view.cpp.

void Akregator::View::slotFetchCurrentFeed (  )  [slot]

fetches the currently selected feed

Definition at line 1061 of file akregator_view.cpp.

void Akregator::View::slotFrameChanged ( Frame f  )  [slot]

called when another part/frame is activated.

Updates progress bar, caption etc. accordingly

Parameters:
f the activated frame

Definition at line 686 of file akregator_view.cpp.

void Akregator::View::slotMarkAllFeedsRead (  )  [slot]

marks all articles in all feeds in the tree as read

Definition at line 1018 of file akregator_view.cpp.

void Akregator::View::slotMarkAllRead (  )  [slot]

marks all articles in the currently selected feed as read

Definition at line 1023 of file akregator_view.cpp.

void Akregator::View::slotMouseButtonPressed ( int  button,
const Article article,
const QPoint &  pos,
int  c 
) [slot]

special behaviour in article list view (TODO: move code there?)

Definition at line 1105 of file akregator_view.cpp.

void Akregator::View::slotMouseOverInfo ( const KFileItem *  kifi  )  [slot]

displays a URL in the status bar when the user moves the mouse over a link

Definition at line 1439 of file akregator_view.cpp.

void Akregator::View::slotNextUnreadArticle (  )  [slot]

selects the next unread article in the article list

Definition at line 994 of file akregator_view.cpp.

void Akregator::View::slotNodeSelected ( TreeNode node  )  [slot]

selected tree node has changed

Definition at line 788 of file akregator_view.cpp.

void Akregator::View::slotNormalView (  )  [slot]

switches view mode to normal view

Definition at line 625 of file akregator_view.cpp.

void Akregator::View::slotOpenArticleExternal ( const Article article,
const QPoint &  ,
int   
) [slot]

opens article of item in external browser

Definition at line 1207 of file akregator_view.cpp.

void Akregator::View::slotOpenCurrentArticle (  )  [slot]

opens current article in new tab, background/foreground depends on settings TODO: use selected instead of current?

Definition at line 1214 of file akregator_view.cpp.

void Akregator::View::slotOpenCurrentArticleBackgroundTab (  )  [slot]

opens the current article (currentItem) in background tab TODO: use selected instead of current?

Definition at line 1238 of file akregator_view.cpp.

void Akregator::View::slotOpenCurrentArticleExternal (  )  [slot]

opens the current article (currentItem) in external browser TODO: use selected instead of current?

Definition at line 1233 of file akregator_view.cpp.

void Akregator::View::slotOpenHomepage (  )  [slot]

opens the homepage of the currently selected feed

Definition at line 1029 of file akregator_view.cpp.

void Akregator::View::slotOpenNewTab ( const KURL &  url,
bool  background = false 
) [slot]

opens a page viewer in a new tab and loads an URL

Parameters:
url the url to load
background whether the tab should be opened in the background or in the foreground (activated after creation)

Definition at line 425 of file akregator_view.cpp.

void Akregator::View::slotOpenURLReply ( const KURL &  url,
Akregator::Viewer currentViewer,
Akregator::BrowserRun::OpeningMode  mode 
) [protected, slot]

HACK: receives signal from browserrun when the browserrun detects an HTML mimetype and actually loads the page TODO: Remove for KDE 4.0.

Definition at line 859 of file akregator_view.cpp.

void Akregator::View::slotPrevUnreadArticle (  )  [slot]

selects the previous unread article in the article list

Definition at line 1006 of file akregator_view.cpp.

void Akregator::View::slotSetCurrentArticleReadDelayed (  )  [slot]

marks the currenctly selected article as read after a user-set delay

Definition at line 1429 of file akregator_view.cpp.

void Akregator::View::slotSetSelectedArticleNew (  )  [slot]

marks the currently selected article as new

Definition at line 1418 of file akregator_view.cpp.

void Akregator::View::slotSetSelectedArticleRead (  )  [slot]

marks the currently selected article as read

Definition at line 1369 of file akregator_view.cpp.

void Akregator::View::slotSetSelectedArticleUnread (  )  [slot]

marks the currently selected article as unread

Definition at line 1407 of file akregator_view.cpp.

void Akregator::View::slotSetTotalUnread (  )  [slot]

emits signalUnreadCountChanged(int)

Definition at line 1051 of file akregator_view.cpp.

void Akregator::View::slotStatusText ( const QString &   )  [slot]

sets the status bar text to a given string

Definition at line 470 of file akregator_view.cpp.

void Akregator::View::slotTextToSpeechRequest (  )  [slot]

reads the currently selected articles using KTTSD

Definition at line 1380 of file akregator_view.cpp.

void Akregator::View::slotToggleShowQuickFilter (  )  [slot]

toggles the visibility of the filter bar

Definition at line 1288 of file akregator_view.cpp.

void Akregator::View::slotUrlClickedInViewer ( const KURL &  url,
Viewer viewer,
bool  newTab,
bool  background 
) [protected, slot]

HACK: part of the url opening hack for 3.5.

called when a viewer emits urlClicked(). TODO: Remove for KDE4

Definition at line 845 of file akregator_view.cpp.

void Akregator::View::slotWidescreenView (  )  [slot]

switches view mode to widescreen view

Definition at line 649 of file akregator_view.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys