• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • sources
  • kde-4.14
  • kdepim
  • akregator
  • src
subscriptionlistview.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2007 Frank Osterfeld <osterfeld@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #ifndef AKREGATOR_SUBSCRIPTIONLISTVIEW_H
26 #define AKREGATOR_SUBSCRIPTIONLISTVIEW_H
27 
28 #include <QTreeView>
29 #include <QAction>
30 #include <QByteArray>
31 
32 
33 namespace Akregator {
34 
35 class TreeNode;
36 
37 class SubscriptionListView : public QTreeView {
38 Q_OBJECT
39 public:
40  explicit SubscriptionListView( QWidget* parent = 0 );
41  ~SubscriptionListView();
42 // the following is all transitional, for easier porting from the item-based views
43 
44  void startNodeRenaming( TreeNode* node );
45 
46  void ensureNodeVisible( TreeNode* node );
47 
48  //override
49  void setModel( QAbstractItemModel* model );
50 
51  void triggerUpdate() {}
52 
53  enum Column {
54  TitleColumn=0,
55  UnreadColumn=1,
56  TotalColumn=2
57  };
58 
59 
60 public Q_SLOTS:
61 
62  void slotPrevFeed();
63  void slotNextFeed();
64 
65  void slotPrevUnreadFeed();
66  void slotNextUnreadFeed();
67 
68  void slotItemBegin();
69  void slotItemEnd();
70  void slotItemLeft();
71  void slotItemRight();
72  void slotItemUp();
73  void slotItemDown();
74 
75 Q_SIGNALS:
76  void userActionTakingPlace();
77 
78 
79 private:
80  void saveHeaderSettings();
81  void loadHeaderSettings();
82  void restoreHeaderState();
83 
84 
85 private Q_SLOTS:
86  void showHeaderMenu( const QPoint& pos );
87  void headerMenuItemTriggered( QAction* action );
88 
89 private:
90  QByteArray m_headerState;
91 };
92 
93 }
94 
95 #endif // AKREGATOR_SUBSCRIPTIONLISTVIEW_H
Akregator::SubscriptionListView::Column
Column
Definition: subscriptionlistview.h:53
QWidget
Akregator::SubscriptionListView::TitleColumn
Definition: subscriptionlistview.h:54
Akregator::SubscriptionListView::setModel
void setModel(QAbstractItemModel *model)
Definition: subscriptionlistview.cpp:147
Akregator::SubscriptionListView::UnreadColumn
Definition: subscriptionlistview.h:55
Akregator::SubscriptionListView::slotNextFeed
void slotNextFeed()
Definition: subscriptionlistview.cpp:254
QByteArray
Akregator::SubscriptionListView::slotPrevUnreadFeed
void slotPrevUnreadFeed()
Definition: subscriptionlistview.cpp:267
Akregator::SubscriptionListView::slotItemEnd
void slotItemEnd()
Definition: subscriptionlistview.cpp:301
Akregator::SubscriptionListView::TotalColumn
Definition: subscriptionlistview.h:56
Akregator::SubscriptionListView::slotPrevFeed
void slotPrevFeed()
Definition: subscriptionlistview.cpp:239
Akregator::SubscriptionListView::slotItemRight
void slotItemRight()
Definition: subscriptionlistview.cpp:323
QPoint
Akregator::SubscriptionListView
Definition: subscriptionlistview.h:37
Akregator::SubscriptionListView::~SubscriptionListView
~SubscriptionListView()
Definition: subscriptionlistview.cpp:142
Akregator::SubscriptionListView::slotNextUnreadFeed
void slotNextUnreadFeed()
Definition: subscriptionlistview.cpp:280
QWidget::pos
QPoint pos() const
Akregator::SubscriptionListView::SubscriptionListView
SubscriptionListView(QWidget *parent=0)
Definition: subscriptionlistview.cpp:125
Akregator::SubscriptionListView::ensureNodeVisible
void ensureNodeVisible(TreeNode *node)
Definition: subscriptionlistview.cpp:362
Akregator::SubscriptionListView::triggerUpdate
void triggerUpdate()
Definition: subscriptionlistview.h:51
Akregator::SubscriptionListView::startNodeRenaming
void startNodeRenaming(TreeNode *node)
Definition: subscriptionlistview.cpp:366
Akregator::SubscriptionListView::slotItemBegin
void slotItemBegin()
Definition: subscriptionlistview.cpp:293
Akregator::SubscriptionListView::slotItemUp
void slotItemUp()
Definition: subscriptionlistview.cpp:337
Akregator::SubscriptionListView::userActionTakingPlace
void userActionTakingPlace()
QTreeView
Akregator::SubscriptionListView::slotItemDown
void slotItemDown()
Definition: subscriptionlistview.cpp:350
QAction
QAbstractItemModel
QAbstractItemView::model
QAbstractItemModel * model() const
QObject::parent
QObject * parent() const
Akregator::TreeNode
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:58
Akregator::SubscriptionListView::slotItemLeft
void slotItemLeft()
Definition: subscriptionlistview.cpp:309
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

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal