akregator/src

listtabwidget.h
1/*
2 This file is part of Akregator.
3
4 Copyright (C) 2005 Frank Osterfeld <frank.osterfeld at kdemail.net>
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 TQt, and distribute the resulting executable,
22 without including the source code for TQt in the source distribution.
23*/
24
25#ifndef AKREGATOR_LISTTABWIDGET_H
26#define AKREGATOR_LISTTABWIDGET_H
27
28#include <tqwidget.h>
29
30class TQIconSet;
31class TQPixmap;
32class TQString;
33
34namespace Akregator {
35
36class NodeListView;
37class TreeNode;
38
45class ListTabWidget : public TQWidget
46{
47
48TQ_OBJECT
49
50
51public:
52
53 ListTabWidget(TQWidget* parent=0, const char* name=0);
54 virtual ~ListTabWidget();
55
56 enum ViewMode { single, /* horizontalTabs, */ verticalTabs };
57
58 void setViewMode(ViewMode mode);
59 ViewMode viewMode() const;
60
61 void addView(NodeListView* view, const TQString& caption, const TQPixmap& icon);
62
63 NodeListView* activeView() const;
64
65public slots:
66
68 void slotItemUp();
70 void slotItemDown();
72 void slotItemBegin();
74 void slotItemEnd();
76 void slotItemLeft();
78 void slotItemRight();
79
80 void slotPrevFeed();
81 void slotNextFeed();
82 void slotPrevUnreadFeed();
83 void slotNextUnreadFeed();
84
85signals:
86 void signalNodeSelected(TreeNode*);
87
88protected slots:
89
90 void slotRootNodeChanged(NodeListView*, TreeNode*);
91 void slotTabClicked(int id);
92
93private:
94 class ListTabWidgetPrivate;
95 ListTabWidgetPrivate* d;
96};
97
98} // namespace Akregator
99
100#endif // AKREGATOR_LISTTABWIDGET_H
A widget containing multiple list views, e.g.
Definition: listtabwidget.h:46
void slotItemUp()
go one item up
void slotItemLeft()
go to parent item
void slotItemDown()
go one item down
void slotItemBegin()
select the first item in the list
void slotItemRight()
go to first child
void slotItemEnd()
select last item in the list
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:52