25 #include "actionmanager.h"
27 #include "folderitem.h"
30 #include <tqpopupmenu.h>
31 #include <tdeaction.h>
32 #include <kiconloader.h>
36 FolderItem::FolderItem(FolderItem* parent, Folder* node) : TreeNodeItem(parent, node)
41 FolderItem::FolderItem(FolderItem* parent, TreeNodeItem* after, Folder* node) : TreeNodeItem(parent, after, node)
46 FolderItem::FolderItem(TDEListView* parent, Folder* node) : TreeNodeItem(parent, node)
51 FolderItem::FolderItem(TDEListView* parent, TreeNodeItem* after, Folder* node) : TreeNodeItem(parent, after, node)
56 void FolderItem::initialize(Folder* node)
58 setOpen(node->isOpen());
59 setPixmap ( 0, TDEGlobal::iconLoader()->loadIcon( "folder", TDEIcon::Small) );
61 setText(0, node->title());
64 Folder* FolderItem::node()
66 return static_cast<Folder* > (m_node);
69 void FolderItem::setOpen( bool open)
71 node()->setOpen(open);
72 TDEListViewItem::setOpen(open);
75 FolderItem::~FolderItem()
79 void FolderItem::showContextMenu( const TQPoint& p)
81 TQWidget* w = ActionManager::getInstance()->container( "feedgroup_popup");
83 static_cast<TQPopupMenu * >(w)->exec(p);
|