24 #ifndef AKREGATORFEEDLISTVIEW_H
25 #define AKREGATORFEEDLISTVIEW_H
27 #include <tdelistview.h>
39 class NodeListView :
public TDEListView
44 NodeListView( TQWidget *parent = 0,
const char *name = 0 );
45 virtual ~NodeListView();
48 void setNodeList(NodeList* nodeList);
58 TreeNode* selectedNode();
63 void setSelectedNode(TreeNode* node);
70 TreeNode* findNodeByTitle(
const TQString& title);
73 void ensureNodeVisible(TreeNode* node);
76 void startNodeRenaming(TreeNode* node);
83 void setShowTagFolders(
bool enabled);
102 void slotPrevUnreadFeed();
103 void slotNextUnreadFeed();
106 void signalDropped (KURL::List &, TreeNode*, Folder*);
107 void signalNodeSelected(TreeNode*);
108 void signalRootNodeChanged(NodeListView*, TreeNode*);
109 void signalContextMenu(TDEListView*, TreeNode*,
const TQPoint&);
118 TreeNodeItem* findNodeItem(TreeNode* node);
121 virtual TreeNodeItem* findItemByTitle(
const TQString& text,
int column, ComparisonFlags compare = ExactMatch | CaseSensitive )
const;
124 virtual void connectToNode(TreeNode* node);
127 virtual void disconnectFromNode(TreeNode* node);
129 virtual void connectToNodeList(NodeList* list);
130 virtual void disconnectFromNodeList(NodeList* list);
132 virtual void drawContentsOffset( TQPainter * p,
int ox,
int oy,
133 int cx,
int cy,
int cw,
int ch );
134 virtual void contentsDragMoveEvent(TQDragMoveEvent* event);
135 virtual bool acceptDrag(TQDropEvent *event)
const;
136 virtual void movableDropEvent(TQListViewItem* parent, TQListViewItem* afterme);
138 virtual TQDragObject *dragObject();
144 void slotDropped(TQDropEvent *e, TQListViewItem* after);
145 void slotRootNodeChanged(TreeNode*);
146 virtual void slotSelectionChanged(TQListViewItem* item);
147 virtual void slotContextMenu(TDEListView* list, TQListViewItem* item,
const TQPoint& p);
148 virtual void slotItemRenamed(TQListViewItem* item,
int col,
const TQString& text);
149 virtual void slotFeedFetchStarted(Feed* feed);
150 virtual void slotFeedFetchAborted(Feed* feed);
151 virtual void slotFeedFetchError(Feed* feed);
152 virtual void slotFeedFetchCompleted(Feed* feed);
156 virtual void slotNodeAdded(TreeNode* node);
161 virtual void slotNodeRemoved(Folder* parent, TreeNode* node);
164 virtual void slotNodeDestroyed(TreeNode* node);
167 virtual void slotNodeChanged(TreeNode* node);
169 virtual void slotNodeListDestroyed(NodeList*);
173 friend class ConnectNodeVisitor;
174 class ConnectNodeVisitor;
176 friend class DisconnectNodeVisitor;
177 class DisconnectNodeVisitor;
179 friend class CreateItemVisitor;
180 class CreateItemVisitor;
182 friend class DeleteItemVisitor;
183 class DeleteItemVisitor;
185 friend class DragAndDropVisitor;
186 class DragAndDropVisitor;
188 class NodeListViewPrivate;
189 NodeListViewPrivate* d;
193 class TagNodeListView :
public NodeListView
198 TagNodeListView(TQWidget *parent = 0,
const char *name = 0) {}
199 virtual ~TagNodeListView() {}
202 class TagNodeListViewPrivate;
203 TagNodeListViewPrivate* d;