akregator
mainwidget.cpp
Go to the documentation of this file.
103 Akregator::MainWidget::MainWidget( Part *part, QWidget *parent, ActionManagerImpl* actionManager, const char *name)
207 connect(m_searchBar, SIGNAL(signalSearch(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)),
208 m_selectionController, SLOT(setFilters(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)) );
211 connect( m_feedListView, SIGNAL(expanded(QModelIndex)), expansionHandler, SLOT(itemExpanded(QModelIndex)) );
212 connect( m_feedListView, SIGNAL(collapsed(QModelIndex)), expansionHandler, SLOT(itemCollapsed(QModelIndex)) );
246 connect(m_searchBar, SIGNAL(signalSearch(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)),
247 m_articleViewer, SLOT(setFilters(std::vector<boost::shared_ptr<const Akregator::Filters::AbstractMatcher> >)) );
310 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:56
void loadConfig(const KConfigGroup &config, const QString &prefix)
Load a frame from a config file for session management.
Definition: browserframe.cpp:434
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 setSizes(const QList< int > &list)
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:175
void slotFeedModify()
calls the properties dialog for feeds, starts renaming for feed groups
Definition: mainwidget.cpp:705
Definition: feedlist.h:60
void setSubscriptionListView(SubscriptionListView *view)
Definition: createfoldercommand.cpp:101
void slotMoveCurrentNodeLeft()
Definition: mainwidget.cpp:586
void setPosition(Folder *parent, TreeNode *after)
Definition: createfeedcommand.cpp:169
void setFocusPolicy(Qt::FocusPolicy policy)
void setSubscriptionListView(SubscriptionListView *view)
Definition: createfeedcommand.cpp:154
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
bool isEmpty() const
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:87
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:68
void setUrl(const QString &url)
Definition: createfeedcommand.cpp:164
int count() const
Definition: articlelistview.h:88
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:103
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
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:114
QClipboard * clipboard()
Akregator-specific implementation of the ActionManager interface.
Definition: actionmanagerimpl.h:50
Definition: frame.h:61
bool isEmpty() const
void setObjectName(const QString &name)
void initArticleListView(ArticleListView *articleList)
Definition: actionmanagerimpl.cpp:447
void setFocusProxy(QWidget *w)
Definition: frame.h:174
Definition: articlejobs.h:88
QString xmlUrl() const
returns the url of the actual feed source (rss/rdf/atom file)
Definition: feed.cpp:372
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
void setOpaqueResize(bool opaque)
T & first()
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
Definition: article.h:41
void hide()
void slotFeedRemove()
removes the currently selected feed (ask for confirmation)
Definition: mainwidget.cpp:691
void setMargin(int margin)
Definition: articlejobs.h:48
void slotMoveCurrentNodeUp()
Definition: mainwidget.cpp:554
void slotNetworkStatusChanged(Solid::Networking::Status status)
Definition: mainwidget.cpp:1188
iterator end()
void setOptions(Options options)
Definition: openurlrequest.cpp:99
virtual void setArticleLister(Akregator::ArticleLister *lister)=0
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
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
void slotPrevUnreadArticle()
selects the previous unread article in the article list
Definition: mainwidget.cpp:732
void setWhatsThis(const QString &)
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:159
Definition: articlejobs.h:69
virtual bool isGroup() const =0
Helps the rest of the app to decide if node should be handled as group or not.
QString escape(const QString &plain)
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
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
void setSubscription(const boost::weak_ptr< FeedList > &feedList, int subId)
Definition: deletesubscriptioncommand.cpp:148
void setFeeds(const QVector< int > &feeds)
Definition: expireitemscommand.cpp:124
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:63
QString fromLatin1(const char *str, int size)
void start(int msec)
void setText(const QString &text, Mode mode)
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: searchbar.h:45
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:58
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
iterator begin()
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 setSingleShot(bool singleShot)
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.