#include <akregator_view.h>
Inherits TQWidget.
Public Types | |
enum | ViewMode { NormalView =0 , WidescreenView , CombinedView } |
Public Slots | |
void | slotOnShutdown () |
void | slotNodeSelected (TreeNode *node) |
void | slotArticleSelected (const Article &) |
void | slotFeedTreeContextMenu (TDEListView *, TreeNode *, const TQPoint &) |
void | slotSetTotalUnread () |
void | slotMouseButtonPressed (int button, const Article &article, const TQPoint &pos, int c) |
void | slotOpenArticleExternal (const Article &article, const TQPoint &, int) |
void | slotOpenCurrentArticleExternal () |
void | slotOpenCurrentArticleBackgroundTab () |
void | slotOpenCurrentArticle () |
void | slotCopyLinkAddress () |
void | slotOpenNewTab (const KURL &url, bool background=false) |
void | slotFrameChanged (Frame *f) |
void | slotCaptionChanged (const TQString &) |
void | slotFeedURLDropped (KURL::List &urls, TreeNode *after, Folder *parent) |
void | slotMouseOverInfo (const KFileItem *kifi) |
void | slotStatusText (const TQString &) |
void | slotStarted () |
void | slotCanceled (const TQString &) |
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 TQString &) |
void | setStatusBarText (const TQString &) |
void | setProgress (int) |
void | signalStarted (TDEIO::Job *) |
void | signalCompleted () |
void | signalCanceled (const TQString &) |
Public Member Functions | |
View (Akregator::Part *part, TQWidget *parent, ActionManagerImpl *actionManager, const char *name) | |
~View () | |
void | saveSettings () |
void | slotSettingsChanged () |
bool | importFeeds (const TQDomDocument &doc) |
bool | loadFeeds (const TQDomDocument &doc, Folder *parent=0) |
TQDomDocument | feedListToOPML () |
void | addFeedToGroup (const TQString &url, const TQString &group) |
virtual void | readProperties (TDEConfig *config) |
virtual void | saveProperties (TDEConfig *config) |
Frame * | currentFrame () const |
Public Attributes | |
FeedList * | m_feedList |
TagNodeList * | m_tagNodeList |
NodeListView * | m_feedListView |
NodeListView * | m_tagNodeListView |
ArticleListView * | m_articleList |
ArticleViewer * | m_articleViewer |
TabWidget * | m_tabs |
TQWidget * | m_mainTab |
Frame * | m_mainFrame |
Frame * | m_currentFrame |
SearchBar * | m_searchBar |
TQSplitter * | m_articleSplitter |
TQSplitter * | m_horizontalSplitter |
ListTabWidget * | m_listTabWidget |
Akregator::Part * | m_part |
ViewMode | m_viewMode |
TQTimer * | m_fetchTimer |
TQTimer * | m_expiryTimer |
TQTimer * | m_markReadTimer |
bool | m_shuttingDown |
bool | m_displayingAboutPage |
ActionManagerImpl * | m_actionManager |
TQPixmap | m_keepFlagIcon |
EditNodePropertiesVisitor * | m_editNodePropertiesVisitor |
DeleteNodeVisitor * | m_deleteNodeVisitor |
Protected Slots | |
void | connectFrame (Frame *) |
void | setTabIcon (const TQPixmap &) |
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 TQString &url, TreeNode *after, Folder *parent, bool autoExec=true) |
void | connectToFeedList (FeedList *feedList) |
void | disconnectFromFeedList (FeedList *feedList) |
void | updateTagActions () |
Friends | |
class | EditNodePropertiesVisitor |
class | DeleteNodeVisitor |
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.
Constructor & Destructor Documentation
◆ View()
Akregator::View::View | ( | Akregator::Part * | part, |
TQWidget * | 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 (TQWidget )
Definition at line 215 of file akregator_view.cpp.
◆ ~View()
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 202 of file akregator_view.cpp.
Member Function Documentation
◆ addFeedToGroup()
void Akregator::View::addFeedToGroup | ( | const TQString & | url, |
const TQString & | 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 611 of file akregator_view.cpp.
◆ feedListToOPML()
TQDomDocument Akregator::View::feedListToOPML | ( | ) |
- Returns
- the displayed Feed List in OPML format
Definition at line 606 of file akregator_view.cpp.
◆ importFeeds()
bool Akregator::View::importFeeds | ( | const TQDomDocument & | doc | ) |
Adds the feeds in doc
to the "Imported Folder".
- Parameters
-
doc the DOM tree (OPML) of the feeds to import
Definition at line 513 of file akregator_view.cpp.
◆ loadFeeds()
bool Akregator::View::loadFeeds | ( | const TQDomDocument & | 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 TQDomDocument generated from OPML parent The parent group the new nodes
Definition at line 545 of file akregator_view.cpp.
◆ readProperties()
|
virtual |
session management
Definition at line 1457 of file akregator_view.cpp.
◆ saveSettings()
void Akregator::View::saveSettings | ( | ) |
saves settings.
Make sure that the Settings singleton is not destroyed yet when saveSettings is called
Definition at line 420 of file akregator_view.cpp.
◆ signalUnreadCountChanged
|
signal |
emitted when the unread count of "All Feeds" was changed
◆ slotArticleDelete
|
slot |
deletes the currently selected article
Definition at line 1310 of file akregator_view.cpp.
◆ slotArticleSelected
|
slot |
the article selection has changed
Definition at line 1175 of file akregator_view.cpp.
◆ slotArticleToggleKeepFlag
|
slot |
toggles the keep flag of the currently selected article
Definition at line 1358 of file akregator_view.cpp.
◆ slotCaptionChanged
|
slot |
sets the window caption after a frame change
Definition at line 483 of file akregator_view.cpp.
◆ slotCombinedView
|
slot |
switches view mode to combined view
Definition at line 680 of file akregator_view.cpp.
◆ slotCopyLinkAddress
|
slot |
copies the link of current article to clipboard
Definition at line 1263 of file akregator_view.cpp.
◆ slotFeedAdd
|
slot |
adds a new feed to the feed tree
Definition at line 881 of file akregator_view.cpp.
◆ slotFeedAddGroup
|
slot |
adds a feed group to the feed tree
Definition at line 946 of file akregator_view.cpp.
◆ slotFeedFetched
|
slot |
Feed has been fetched, populate article view if needed and update counters.
Definition at line 1092 of file akregator_view.cpp.
◆ slotFeedModify
|
slot |
calls the properties dialog for feeds, starts renaming for feed groups
Definition at line 991 of file akregator_view.cpp.
◆ slotFeedRemove
|
slot |
removes the currently selected feed (ask for confirmation)
Definition at line 980 of file akregator_view.cpp.
◆ slotFeedTreeContextMenu
|
slot |
Shows requested popup menu for feed tree.
Definition at line 726 of file akregator_view.cpp.
◆ slotFeedURLDropped
|
slot |
called when URLs are dropped into the tree view
Definition at line 1284 of file akregator_view.cpp.
◆ slotFetchAllFeeds
|
slot |
starts fetching of all feeds in the tree
Definition at line 1073 of file akregator_view.cpp.
◆ slotFetchCurrentFeed
|
slot |
fetches the currently selected feed
Definition at line 1066 of file akregator_view.cpp.
◆ slotFrameChanged
|
slot |
called when another part/frame is activated.
Updates progress bar, caption etc. accordingly
- Parameters
-
f the activated frame
Definition at line 693 of file akregator_view.cpp.
◆ slotMarkAllFeedsRead
|
slot |
marks all articles in all feeds in the tree as read
Definition at line 1023 of file akregator_view.cpp.
◆ slotMarkAllRead
|
slot |
marks all articles in the currently selected feed as read
Definition at line 1028 of file akregator_view.cpp.
◆ slotMouseButtonPressed
|
slot |
special behaviour in article list view (TODO: move code there?)
Definition at line 1110 of file akregator_view.cpp.
◆ slotMouseOverInfo
|
slot |
displays a URL in the status bar when the user moves the mouse over a link
Definition at line 1444 of file akregator_view.cpp.
◆ slotNextUnreadArticle
|
slot |
selects the next unread article in the article list
Definition at line 999 of file akregator_view.cpp.
◆ slotNodeSelected
|
slot |
selected tree node has changed
Definition at line 793 of file akregator_view.cpp.
◆ slotNormalView
|
slot |
switches view mode to normal view
Definition at line 632 of file akregator_view.cpp.
◆ slotOpenArticleExternal
|
slot |
opens article of item
in external browser
Definition at line 1212 of file akregator_view.cpp.
◆ slotOpenCurrentArticle
|
slot |
opens current article in new tab, background/foreground depends on settings TODO: use selected instead of current?
Definition at line 1219 of file akregator_view.cpp.
◆ slotOpenCurrentArticleBackgroundTab
|
slot |
opens the current article (currentItem) in background tab TODO: use selected instead of current?
Definition at line 1243 of file akregator_view.cpp.
◆ slotOpenCurrentArticleExternal
|
slot |
opens the current article (currentItem) in external browser TODO: use selected instead of current?
Definition at line 1238 of file akregator_view.cpp.
◆ slotOpenHomepage
|
slot |
opens the homepage of the currently selected feed
Definition at line 1034 of file akregator_view.cpp.
◆ slotOpenNewTab
|
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 432 of file akregator_view.cpp.
◆ slotOpenURLReply
|
protectedslot |
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 864 of file akregator_view.cpp.
◆ slotPrevUnreadArticle
|
slot |
selects the previous unread article in the article list
Definition at line 1011 of file akregator_view.cpp.
◆ slotSetCurrentArticleReadDelayed
|
slot |
marks the currenctly selected article as read after a user-set delay
Definition at line 1434 of file akregator_view.cpp.
◆ slotSetSelectedArticleNew
|
slot |
marks the currently selected article as new
Definition at line 1423 of file akregator_view.cpp.
◆ slotSetSelectedArticleRead
|
slot |
marks the currently selected article as read
Definition at line 1374 of file akregator_view.cpp.
◆ slotSetSelectedArticleUnread
|
slot |
marks the currently selected article as unread
Definition at line 1412 of file akregator_view.cpp.
◆ slotSetTotalUnread
|
slot |
emits signalUnreadCountChanged(int)
Definition at line 1056 of file akregator_view.cpp.
◆ slotStatusText
|
slot |
sets the status bar text to a given string
Definition at line 477 of file akregator_view.cpp.
◆ slotTextToSpeechRequest
|
slot |
reads the currently selected articles using KTTSD
Definition at line 1385 of file akregator_view.cpp.
◆ slotToggleShowQuickFilter
|
slot |
toggles the visibility of the filter bar
Definition at line 1293 of file akregator_view.cpp.
◆ slotUrlClickedInViewer
|
protectedslot |
HACK: part of the url opening hack for 3.5.
called when a viewer emits urlClicked(). TODO: Remove for KDE4
Definition at line 850 of file akregator_view.cpp.
◆ slotWidescreenView
|
slot |
switches view mode to widescreen view
Definition at line 656 of file akregator_view.cpp.
The documentation for this class was generated from the following files: