akregator/src
Akregator::NodeListView Class Reference
Inheritance diagram for Akregator::NodeListView:

Detailed Description
Definition at line 39 of file feedlistview.h.
Public Slots | |
void | slotItemUp () |
void | slotItemDown () |
void | slotItemBegin () |
void | slotItemEnd () |
void | slotItemLeft () |
void | slotItemRight () |
void | slotPrevFeed () |
void | slotNextFeed () |
void | slotPrevUnreadFeed () |
void | slotNextUnreadFeed () |
Signals | |
void | signalDropped (KURL::List &, TreeNode *, Folder *) |
void | signalNodeSelected (TreeNode *) |
void | signalRootNodeChanged (NodeListView *, TreeNode *) |
void | signalContextMenu (KListView *, TreeNode *, const QPoint &) |
Public Member Functions | |
NodeListView (QWidget *parent=0, const char *name=0) | |
virtual | ~NodeListView () |
void | setNodeList (NodeList *nodeList) |
Folder * | rootNode () |
TreeNode * | selectedNode () |
void | setSelectedNode (TreeNode *node) |
TreeNode * | findNodeByTitle (const QString &title) |
void | ensureNodeVisible (TreeNode *node) |
void | startNodeRenaming (TreeNode *node) |
virtual void | clear () |
void | setShowTagFolders (bool enabled) |
TreeNodeItem * | findNodeItem (TreeNode *node) |
virtual TreeNodeItem * | findItemByTitle (const QString &text, int column, ComparisonFlags compare=ExactMatch|CaseSensitive) const |
virtual void | connectToNode (TreeNode *node) |
virtual void | disconnectFromNode (TreeNode *node) |
virtual void | connectToNodeList (NodeList *list) |
virtual void | disconnectFromNodeList (NodeList *list) |
virtual void | drawContentsOffset (QPainter *p, int ox, int oy, int cx, int cy, int cw, int ch) |
virtual void | contentsDragMoveEvent (QDragMoveEvent *event) |
virtual bool | acceptDrag (QDropEvent *event) const |
virtual void | movableDropEvent (QListViewItem *parent, QListViewItem *afterme) |
virtual QDragObject * | dragObject () |
Public Attributes | |
NodeListViewPrivate * | d |
Protected Slots | |
void | slotDropped (QDropEvent *e, QListViewItem *after) |
void | slotRootNodeChanged (TreeNode *) |
virtual void | slotSelectionChanged (QListViewItem *item) |
virtual void | slotContextMenu (KListView *list, QListViewItem *item, const QPoint &p) |
virtual void | slotItemRenamed (QListViewItem *item, int col, const QString &text) |
virtual void | slotFeedFetchStarted (Feed *feed) |
virtual void | slotFeedFetchAborted (Feed *feed) |
virtual void | slotFeedFetchError (Feed *feed) |
virtual void | slotFeedFetchCompleted (Feed *feed) |
void | openFolder () |
virtual void | slotNodeAdded (TreeNode *node) |
virtual void | slotNodeRemoved (Folder *parent, TreeNode *node) |
virtual void | slotNodeDestroyed (TreeNode *node) |
virtual void | slotNodeChanged (TreeNode *node) |
virtual void | slotNodeListDestroyed (NodeList *) |
Friends | |
class | ConnectNodeVisitor |
class | DisconnectNodeVisitor |
class | CreateItemVisitor |
class | DeleteItemVisitor |
class | DragAndDropVisitor |
Member Function Documentation
void Akregator::NodeListView::setNodeList | ( | NodeList * | nodeList | ) |
sets the feed list to show.
Disconnects from the old feed list, if there is any.
Definition at line 406 of file feedlistview.cpp.
Folder * Akregator::NodeListView::rootNode | ( | ) |
TreeNode * Akregator::NodeListView::selectedNode | ( | ) |
Returns the currently selected node, null
when no one is selected.
- Returns:
- selected node
Definition at line 435 of file feedlistview.cpp.
void Akregator::NodeListView::setSelectedNode | ( | TreeNode * | node | ) |
selects node
, if it exists
- Parameters:
-
node the node to select
Definition at line 442 of file feedlistview.cpp.
TreeNode * Akregator::NodeListView::findNodeByTitle | ( | const QString & | title | ) |
Find first node with title title
returns 0 if no node was found.
- Parameters:
-
title
- Returns:
- node
Definition at line 449 of file feedlistview.cpp.
void Akregator::NodeListView::ensureNodeVisible | ( | TreeNode * | node | ) |
void Akregator::NodeListView::startNodeRenaming | ( | TreeNode * | node | ) |
void Akregator::NodeListView::clear | ( | ) | [virtual] |
reimplemented: clears the view and creates the root node ("All Feeds")
Definition at line 482 of file feedlistview.cpp.
void Akregator::NodeListView::setShowTagFolders | ( | bool | enabled | ) |
void Akregator::NodeListView::slotItemUp | ( | ) | [slot] |
void Akregator::NodeListView::slotItemDown | ( | ) | [slot] |
void Akregator::NodeListView::slotItemBegin | ( | ) | [slot] |
void Akregator::NodeListView::slotItemEnd | ( | ) | [slot] |
void Akregator::NodeListView::slotItemLeft | ( | ) | [slot] |
void Akregator::NodeListView::slotItemRight | ( | ) | [slot] |
TreeNodeItem * Akregator::NodeListView::findNodeItem | ( | TreeNode * | node | ) |
Find item belonging to tree node node
, null
when node is not in tree.
- Returns:
- item representing node
- Parameters:
-
node a tree node
Definition at line 458 of file feedlistview.cpp.
TreeNodeItem * Akregator::NodeListView::findItemByTitle | ( | const QString & | text, | |
int | column, | |||
ComparisonFlags | compare = ExactMatch|CaseSensitive | |||
) | const [virtual] |
void Akregator::NodeListView::connectToNode | ( | TreeNode * | node | ) | [virtual] |
observe node:
connect status change signals of node
to slots
Definition at line 936 of file feedlistview.cpp.
void Akregator::NodeListView::disconnectFromNode | ( | TreeNode * | node | ) | [virtual] |
stop observing node:
disconnect from status change signals of node
Definition at line 960 of file feedlistview.cpp.
void Akregator::NodeListView::slotNodeAdded | ( | TreeNode * | node | ) | [protected, virtual, slot] |
called when a node is added to the tree.
If no item for the node exists, it will be created
Definition at line 924 of file feedlistview.cpp.
void Akregator::NodeListView::slotNodeRemoved | ( | Folder * | parent, | |
TreeNode * | node | |||
) | [protected, virtual, slot] |
Called when a node in the tree is taken out of the tree (parent->removeChild()).
Removes a node and its children from the tree. Note that it doesn't delete the corresponding view items (get deleted only when the node itself gets deleted)
Definition at line 930 of file feedlistview.cpp.
void Akregator::NodeListView::slotNodeDestroyed | ( | TreeNode * | node | ) | [protected, virtual, slot] |
void Akregator::NodeListView::slotNodeChanged | ( | TreeNode * | node | ) | [protected, virtual, slot] |
The documentation for this class was generated from the following files: