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

akregator

  • sources
  • kde-4.12
  • 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 <QMap>
30 #include <QAction>
31 #include <QByteArray>
32 
33 class KMenu;
34 
35 namespace Akregator {
36 
37 class TreeNode;
38 
39 class SubscriptionListView : public QTreeView {
40 Q_OBJECT
41 public:
42  explicit SubscriptionListView( QWidget* parent = 0 );
43  ~SubscriptionListView();
44 // the following is all transitional, for easier porting from the item-based views
45 
46  void startNodeRenaming( TreeNode* node );
47 
48  void ensureNodeVisible( TreeNode* node );
49 
50  //override
51  void setModel( QAbstractItemModel* model );
52 
53  void triggerUpdate() {}
54 
55  enum Column {
56  TitleColumn=0,
57  UnreadColumn=1,
58  TotalColumn=2
59  };
60 
61 
62 public Q_SLOTS:
63 
64  void slotPrevFeed();
65  void slotNextFeed();
66 
67  void slotPrevUnreadFeed();
68  void slotNextUnreadFeed();
69 
70  void slotItemBegin();
71  void slotItemEnd();
72  void slotItemLeft();
73  void slotItemRight();
74  void slotItemUp();
75  void slotItemDown();
76 
77 Q_SIGNALS:
78  void userActionTakingPlace();
79 
80 
81 private:
82  void saveHeaderSettings();
83  void loadHeaderSettings();
84  void restoreHeaderState();
85 
86 
87 private Q_SLOTS:
88  void showHeaderMenu( const QPoint& pos );
89  void headerMenuItemTriggered( QAction* action );
90 
91 private:
92  QByteArray m_headerState;
93 };
94 
95 }
96 
97 #endif // AKREGATOR_SUBSCRIPTIONLISTVIEW_H
Akregator::SubscriptionListView::Column
Column
Definition: subscriptionlistview.h:55
Akregator::SubscriptionListView::TitleColumn
Definition: subscriptionlistview.h:56
Akregator::SubscriptionListView::setModel
void setModel(QAbstractItemModel *model)
Definition: subscriptionlistview.cpp:147
Akregator::SubscriptionListView::UnreadColumn
Definition: subscriptionlistview.h:57
Akregator::SubscriptionListView::slotNextFeed
void slotNextFeed()
Definition: subscriptionlistview.cpp:254
Akregator::SubscriptionListView::slotPrevUnreadFeed
void slotPrevUnreadFeed()
Definition: subscriptionlistview.cpp:267
Akregator::SubscriptionListView::slotItemEnd
void slotItemEnd()
Definition: subscriptionlistview.cpp:301
QWidget
Akregator::SubscriptionListView::TotalColumn
Definition: subscriptionlistview.h:58
Akregator::SubscriptionListView::slotPrevFeed
void slotPrevFeed()
Definition: subscriptionlistview.cpp:239
Akregator::SubscriptionListView::slotItemRight
void slotItemRight()
Definition: subscriptionlistview.cpp:323
Akregator::SubscriptionListView
Definition: subscriptionlistview.h:39
Akregator::SubscriptionListView::~SubscriptionListView
~SubscriptionListView()
Definition: subscriptionlistview.cpp:142
QTreeView
Akregator::SubscriptionListView::slotNextUnreadFeed
void slotNextUnreadFeed()
Definition: subscriptionlistview.cpp:280
Akregator::SubscriptionListView::SubscriptionListView
SubscriptionListView(QWidget *parent=0)
Definition: subscriptionlistview.cpp:125
Akregator::SubscriptionListView::ensureNodeVisible
void ensureNodeVisible(TreeNode *node)
Definition: subscriptionlistview.cpp:362
QAbstractItemModel
Akregator::SubscriptionListView::triggerUpdate
void triggerUpdate()
Definition: subscriptionlistview.h:53
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()
Akregator::SubscriptionListView::slotItemDown
void slotItemDown()
Definition: subscriptionlistview.cpp:350
Akregator::TreeNode
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:59
Akregator::SubscriptionListView::slotItemLeft
void slotItemLeft()
Definition: subscriptionlistview.cpp:309
QAction
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

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

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