akregator
selectioncontroller.cpp
Go to the documentation of this file.
56 static QList<Akregator::Article> articlesForIndexes( const QModelIndexList& indexes, FeedList* feedList )
70 static Akregator::TreeNode* subscriptionForIndex( const QModelIndex& index, Akregator::FeedList* feedList )
75 return feedList->findByID( index.data( Akregator::SubscriptionListModel::SubscriptionIdRole ).toInt() );
141 void Akregator::SelectionController::setSingleArticleDisplay( Akregator::SingleArticleDisplay* display )
150 return ::articleForIndex( m_articleLister->articleSelectionModel()->currentIndex(), m_feedList.get() );
162 return ::articlesForIndexes( m_articleLister->articleSelectionModel()->selectedRows(), m_feedList.get() );
167 return ::subscriptionForIndex( m_feedSelector->selectionModel()->currentIndex(), m_feedList.get() );
193 void Akregator::SelectionController::setFolderExpansionHandler( Akregator::FolderExpansionHandler* handler )
232 delete m_articleModel; //order is important: do not delete the old model before the new model is set in the view
235 disconnect( m_articleLister->articleSelectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
237 connect( m_articleLister->articleSelectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
276 const TreeNode* const node = ::subscriptionForIndex( m_feedSelector->indexAt( point ), m_feedList.get() );
280 QWidget* w = ActionManager::getInstance()->container( node->isGroup() ? "feedgroup_popup" : "feeds_popup" );
303 void SelectionController::setFilters( const std::vector<boost::shared_ptr<const Filters::AbstractMatcher> >& matchers )
SelectionController(QObject *parent=0)
Definition: selectioncontroller.cpp:79
void setFilters(const std::vector< boost::shared_ptr< const Akregator::Filters::AbstractMatcher > > &)
Definition: selectioncontroller.cpp:303
void forceFilterUpdate()
Definition: selectioncontroller.cpp:309
virtual void forceFilterUpdate()=0
~SelectionController()
Definition: selectioncontroller.cpp:92
Akregator::TreeNode * selectedSubscription() const
Definition: selectioncontroller.cpp:165
virtual bool isAggregation() const =0
returns if the node represents an aggregation, i.e.
const Article findArticle(const QString &feedURL, const QString &guid) const
Definition: feedlist.cpp:337
virtual QItemSelectionModel * articleSelectionModel() const =0
void setFolderExpansionHandler(Akregator::FolderExpansionHandler *handler)
Definition: selectioncontroller.cpp:193
Definition: articlejobs.h:108
void setArticleLister(Akregator::ArticleLister *lister)
Definition: selectioncontroller.cpp:124
virtual QWidget * container(const char *name)=0
void setFeedList(const boost::shared_ptr< FeedList > &feedList)
Definition: subscriptionlistmodel.cpp:361
Akregator::Article currentArticle() const
Definition: selectioncontroller.cpp:146
void setModel(Akregator::SubscriptionListModel *model)
Definition: subscriptionlistmodel.cpp:356
QModelIndex currentArticleIndex() const
Definition: selectioncontroller.cpp:153
QPoint listViewScrollBarPositions() const
Definition: treenode.cpp:228
static ActionManager * getInstance()
Definition: actionmanager.cpp:35
virtual bool isGroup() const =0
Helps the rest of the app to decide if node should be handled as group or not.
A proxy class for Syndication::ItemPtr with some additional methods to assist sorting.
Definition: article.h:61
QList< Akregator::Article > selectedArticles() const
Definition: selectioncontroller.cpp:158
void setFeedList(const boost::shared_ptr< FeedList > &list)
Definition: selectioncontroller.cpp:170
void setSingleArticleDisplay(Akregator::SingleArticleDisplay *display)
Definition: selectioncontroller.cpp:141
void setFeedSelector(QAbstractItemView *feedSelector)
Definition: selectioncontroller.cpp:98
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:59
virtual void setFilters(const std::vector< boost::shared_ptr< const Filters::AbstractMatcher > > &)=0
Definition: articlemodel.h:44
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.