akregator
mainwidget.cpp
Go to the documentation of this file.
104 Akregator::MainWidget::MainWidget( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const char *name)
208 connect(m_searchBar, SIGNAL(signalSearch(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)),
209 m_selectionController, SLOT(setFilters(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)) );
212 connect( m_feedListView, SIGNAL(expanded(QModelIndex)), expansionHandler, SLOT(itemExpanded(QModelIndex)) );
213 connect( m_feedListView, SIGNAL(collapsed(QModelIndex)), expansionHandler, SLOT(itemCollapsed(QModelIndex)) );
247 connect(m_searchBar, SIGNAL(signalSearch(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)),
248 m_articleViewer, SLOT(setFilters(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)) );
311 if(Solid::Networking::status() == Solid::Networking::Connected ||Solid::Networking::status() == Solid::Networking::Unknown)
666 addFeed(QString::null, lastChild, group, false); //krazy:exclude=nullstrassign for old broken gcc
669 void Akregator::MainWidget::addFeed(const QString& url, TreeNode *after, Folder* parent, bool autoExec)
774 // interval fetching not working although the user is actually online (but solid reports he's not
787 m_selectionController->selectedSubscription()->slotAddToFetchQueue(Kernel::self()->fetchQueue());
826 KToggleAction* const maai = qobject_cast<KToggleAction*>( m_actionManager->action( "article_set_status_important" ) );
933 Kernel::self()->frameManager()->slotOpenUrlRequest( req, false /*don't use settings for open in background*/ );
959 void Akregator::MainWidget::slotFeedUrlDropped(KUrl::List &urls, TreeNode* after, Folder* parent)
996 msg = i18n("<qt>Are you sure you want to delete article <b>%1</b>?</qt>", Qt::escape(articles.first().title()));
999 msg = i18np("<qt>Are you sure you want to delete the selected article?</qt>", "<qt>Are you sure you want to delete the %1 selected articles?</qt>", articles.count());
1062 void setSelectedArticleStatus( const Akregator::AbstractSelectionController* controller, int status )
1190 if(status==Solid::Networking::Connected || Solid::Networking::status() == Solid::Networking::Unknown)
void slotOpenUrlRequest(Akregator::OpenUrlRequest &request, bool useOpenInBackgroundSetting=true)
Definition: framemanager.cpp:303
Definition: frame.h:53
void setStatus(const ArticleId &id, int status)
Definition: articlejobs.cpp:98
Definition: articleviewer.h:55
void loadConfig(const KConfigGroup &config, const QString &prefix)
Load a frame from a config file for session management.
Definition: browserframe.cpp:435
void initTabWidget(TabWidget *tabWidget)
Definition: actionmanagerimpl.cpp:526
static void setInstance(FeedListManagementInterface *)
Definition: feedlistmanagementinterface.cpp:36
void saveProperties(KConfigGroup &config)
Definition: mainwidget.cpp:1163
void setRootFolder(Folder *rootFolder)
Definition: createfoldercommand.cpp:111
void slotDoIntervalFetches()
Definition: mainwidget.cpp:768
void slotFeedUrlDropped(KUrl::List &urls, Akregator::TreeNode *after, Akregator::Folder *parent)
called when URLs are dropped into the tree view
Definition: mainwidget.cpp:959
void ensureArticleTabVisible()
Definition: mainwidget.cpp:1172
Definition: openurlrequest.h:42
void addFeed(const QString &url, TreeNode *after, Folder *parent, bool autoExec=true)
Definition: mainwidget.cpp:669
void setAutoExecute(bool autoexec)
Definition: createfeedcommand.cpp:177
void slotFeedModify()
calls the properties dialog for feeds, starts renaming for feed groups
Definition: mainwidget.cpp:705
Definition: feedlist.h:59
void setSubscriptionListView(SubscriptionListView *view)
Definition: createfoldercommand.cpp:101
void slotMoveCurrentNodeLeft()
Definition: mainwidget.cpp:586
void setPosition(Folder *parent, TreeNode *after)
Definition: createfeedcommand.cpp:171
void setSubscriptionListView(SubscriptionListView *view)
Definition: createfeedcommand.cpp:156
void importFeedList(const QDomDocument &doc)
Adds the feeds in doc to the "Imported Folder".
Definition: mainwidget.cpp:414
void setFeedList(const boost::shared_ptr< FeedList > &feedList)
Definition: mainwidget.cpp:423
void initMainWidget(MainWidget *mainWidget)
Definition: actionmanagerimpl.cpp:198
void slotToggleShowQuickFilter()
toggles the visibility of the filter bar
Definition: mainwidget.cpp:965
void setOpenInBackground(bool background)
Definition: openurlrequest.cpp:60
void slotCopyLinkAddress()
copies the link of current article to clipboard
Definition: mainwidget.cpp:941
virtual int unread() const =0
The unread count, returns the number of new/unread articles in the node (for groups: the accumulated ...
void slotMoveCurrentNodeDown()
Definition: mainwidget.cpp:570
void slotSetSelectedArticleUnread()
marks the currently selected article as unread
Definition: mainwidget.cpp:1110
void setFeedList(const boost::shared_ptr< FeedList > &feedList)
Definition: kernel.cpp:88
void slotSetCurrentArticleReadDelayed()
marks the currenctly selected article as read after a user-set delay
Definition: mainwidget.cpp:1120
void slotOpenSelectedArticles()
opens current article in new tab, background/foreground depends on settings TODO: use selected instea...
Definition: mainwidget.cpp:1203
virtual QList< Akregator::Article > selectedArticles() const =0
void initFrameManager(FrameManager *frameManager)
Definition: actionmanagerimpl.cpp:585
void slotMouseOverInfo(const KFileItem &kifi)
displays a URL in the status bar when the user moves the mouse over a link
Definition: mainwidget.cpp:1133
void setSelectedSubscription(TreeNode *selected)
Definition: createfoldercommand.cpp:106
void slotMarkAllRead()
marks all articles in the currently selected feed as read
Definition: mainwidget.cpp:754
void slotArticleToggleKeepFlag(bool enabled)
toggles the keep flag of the currently selected article
Definition: mainwidget.cpp:1036
article was fetched in the last fetch of it's feed and not read yet.
Definition: types.h:33
void slotOpenHomepage()
opens the homepage of the currently selected feed
Definition: mainwidget.cpp:883
void setFeedList(const boost::shared_ptr< FeedList > &feedList)
sets the feed list to be managed
Definition: progressmanager.cpp:69
void setUrl(const QString &url)
Definition: createfeedcommand.cpp:166
Definition: articlelistview.h:90
void setSubscriptionListView(SubscriptionListView *view)
Definition: editsubscriptioncommand.cpp:133
void slotSetSelectedArticleRead()
marks the currently selected article as read
Definition: mainwidget.cpp:1080
void slotTextToSpeechRequest()
reads the currently selected articles using KTTSD
Definition: mainwidget.cpp:1085
void setSubscription(const boost::shared_ptr< FeedList > &feedList, int subId)
Definition: editsubscriptioncommand.cpp:112
MainWidget(Akregator::Part *part, QWidget *parent, ActionManagerImpl *actionManager, const char *name)
constructor
Definition: mainwidget.cpp:104
void setParentWidget(QWidget *parentWidget)
Definition: command.cpp:59
void slotOpenSelectedArticlesInBackground()
Definition: mainwidget.cpp:1209
void setFeedList(const boost::weak_ptr< FeedList > &feedList)
Definition: expireitemscommand.cpp:113
Akregator-specific implementation of the ActionManager interface.
Definition: actionmanagerimpl.h:50
Definition: frame.h:61
void initArticleListView(ArticleListView *articleList)
Definition: actionmanagerimpl.cpp:447
Definition: frame.h:174
Definition: articlejobs.h:86
QString xmlUrl() const
returns the url of the actual feed source (rss/rdf/atom file)
Definition: feed.cpp:374
void slotDeleteExpiredArticles()
Definition: mainwidget.cpp:459
QList< const TreeNode * > children() const
returns the (direct) children of this node.
Definition: folder.cpp:124
Definition: tabwidget.h:38
Definition: frame.h:61
virtual void setFeedSelector(QAbstractItemView *feedSelector)=0
void slotOpenSelectedArticlesInBrowser()
opens the current article (currentItem) in external browser TODO: use selected instead of current...
Definition: mainwidget.cpp:900
void slotFeedRemove()
removes the currently selected feed (ask for confirmation)
Definition: mainwidget.cpp:691
Definition: articlejobs.h:46
void slotMoveCurrentNodeUp()
Definition: mainwidget.cpp:554
static bool resetQuickFilterOnNodeChange()
Get Reset Quick Filter On Node Change.
Definition: akregatorconfig.h:923
void slotNetworkStatusChanged(Solid::Networking::Status status)
Definition: mainwidget.cpp:1188
void setOptions(Options options)
Definition: openurlrequest.cpp:99
virtual void setArticleLister(Akregator::ArticleLister *lister)=0
void addFeedToGroup(const QString &url, const QString &group)
Add a feed to a group.
Definition: mainwidget.cpp:473
void slotArticleSelected(const Akregator::Article &)
the article selection has changed
Definition: mainwidget.cpp:814
static QList< int > splitter2Sizes()
Get Sizes for second splitter.
Definition: akregatorconfig.h:144
void slotPrevUnreadArticle()
selects the previous unread article in the article list
Definition: mainwidget.cpp:732
void slotMoveCurrentNodeRight()
Definition: mainwidget.cpp:600
void slotMarkAllFeedsRead()
marks all articles in all feeds in the tree as read
Definition: mainwidget.cpp:747
void setRootFolder(Folder *rootFolder)
Definition: createfeedcommand.cpp:161
Definition: articlejobs.h:67
virtual bool isGroup() const =0
Helps the rest of the app to decide if node should be handled as group or not.
void initArticleViewer(ArticleViewer *articleViewer)
Definition: actionmanagerimpl.cpp:427
Represents a folder (containing feeds and/or other folders)
Definition: folder.h:44
void appendArticleId(const Akregator::ArticleId &id)
Definition: articlejobs.cpp:52
void slotSetSelectedArticleNew()
marks the currently selected article as new
Definition: mainwidget.cpp:1115
static void setSplitter2Sizes(const QList< int > &v)
Set Sizes for second splitter.
Definition: akregatorconfig.h:134
void setSubscription(const boost::weak_ptr< FeedList > &feedList, int subId)
Definition: deletesubscriptioncommand.cpp:148
void setFeeds(const QVector< int > &feeds)
Definition: expireitemscommand.cpp:123
static void setSplitter1Sizes(const QList< int > &v)
Set Sizes for first splitter.
Definition: akregatorconfig.h:115
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:61
virtual void setFolderExpansionHandler(Akregator::FolderExpansionHandler *handler)=0
void slotMouseButtonPressed(int button, const KUrl &)
special behaviour in article list view (TODO: move code there?)
Definition: mainwidget.cpp:856
void slotRequestNewFrame(int &frameId)
Definition: mainwidget.cpp:355
Definition: browserframe.h:49
Definition: searchbar.h:43
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:59
void insertChild(TreeNode *node, TreeNode *after)
inserts node as child after child node after.
Definition: folder.cpp:180
void initSubscriptionListView(SubscriptionListView *subscriptionListView)
Definition: actionmanagerimpl.cpp:464
void setKeep(const ArticleId &id, bool keep)
Definition: articlejobs.cpp:103
void slotSpeak(const QString &text, const QString &language)
Definition: speechclient.cpp:74
virtual void setNotificationMode(bool doNotify)
Definition: treenode.cpp:178
void slotOpenArticleInBrowser(const Akregator::Article &article)
opens the link of an article in the external browser
Definition: mainwidget.cpp:908
void slotNodeSelected(Akregator::TreeNode *node)
selected tree node has changed
Definition: mainwidget.cpp:616
void slotNextUnreadArticle()
selects the next unread article in the article list
Definition: mainwidget.cpp:717
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.