akregator/src

simplenodeselector.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_SIMPLENODESELECTOR_H
26#define AKREGATOR_SIMPLENODESELECTOR_H
27
28#include <tqwidget.h>
29
30#include <kdialogbase.h>
31
32class TQListViewItem;
33
34namespace Akregator {
35
36class FeedList;
37class TreeNode;
38
39class SimpleNodeSelector;
40
44class SelectNodeDialog : public KDialogBase
45{
46 TQ_OBJECT
47
48 public:
49 SelectNodeDialog(FeedList* feedList, TQWidget* parent=0, char* name=0);
50 virtual ~SelectNodeDialog();
51
52 TreeNode* selectedNode() const;
53
54 public slots:
55
56 virtual void slotSelectNode(TreeNode* node);
57
58 protected slots:
59
60 virtual void slotNodeSelected(TreeNode* node);
61
62 private:
63 class SelectNodeDialogPrivate;
64 SelectNodeDialogPrivate* d;
65};
66
67class SimpleNodeSelector : public TQWidget
68{
69 TQ_OBJECT
70
71
72 public:
73 SimpleNodeSelector(FeedList* feedList, TQWidget* parent=0, const char* name=0);
74 virtual ~SimpleNodeSelector();
75
76 TreeNode* selectedNode() const;
77
78 public slots:
79 void slotSelectNode(TreeNode* node);
80
81 signals:
82 void signalNodeSelected(TreeNode* node);
83
84 protected slots:
85
86 virtual void slotItemSelected(TQListViewItem* item);
87
88 virtual void slotNodeDestroyed(TreeNode* node);
89 virtual void slotFeedListDestroyed(FeedList* list);
90
91 public: // compat with KDE-3.x assertions, remove for KDE 4
92// private:
93
94 class SimpleNodeSelectorPrivate;
95 SimpleNodeSelectorPrivate* d;
96
97 friend class NodeVisitor;
98 class NodeVisitor;
99};
100
101
102} // namespace Akregator
103
104#endif
The model of a feed tree, represents an OPML document.
Definition: feedlist.h:45
A dialog with a simple listview displaying a feed list for selection purposes Use this dialog if you ...
Abstract base class for all kind of elements in the feed tree, like feeds and feed groups (and search...
Definition: treenode.h:52