19 #ifndef KMAIL_FAVORITEFOLDERVIEW_H
20 #define KMAIL_FAVORITEFOLDERVIEW_H
22 #include "kmfoldertree.h"
26 class FavoriteFolderView;
28 class FavoriteFolderViewItem : public KMFolderTreeItem
33 FavoriteFolderViewItem( FavoriteFolderView *parent, const TQString & name, KMFolder* folder );
36 bool useTopLevelIcon() const { return false; }
37 int iconSize() const { return 22; }
46 class FavoriteFolderView : public FolderTreeBase
52 FavoriteFolderView( KMMainWidget *mainWidget, TQWidget *parent = 0 );
53 ~FavoriteFolderView();
58 KMFolderTreeItem* addFolder( KMFolder *folder, const TQString &name = TQString(),
59 TQListViewItem *after = 0 );
60 void addFolder( KMFolderTreeItem *fti );
63 void folderTreeSelectionChanged( KMFolder *folder );
67 bool acceptDrag(TQDropEvent* e) const;
68 void contentsDragEnterEvent( TQDragEnterEvent *e );
69 void readColorConfig();
72 static TQString prettyName( KMFolderTreeItem* fti );
73 KMFolderTreeItem* findFolderTreeItem( KMFolder* folder ) const;
74 void handleGroupwareFolder( KMFolderTreeItem *fti );
77 void selectionChanged();
78 void itemClicked( TQListViewItem *item );
79 void folderRemoved( KMFolder *folder );
80 void dropped( TQDropEvent *e, TQListViewItem *after );
81 void contextMenu( TQListViewItem *item, const TQPoint &point );
83 void initializeFavorites();
86 void notifyInstancesOnChange();
90 KMFolderTreeItem* mContextMenuItem;
91 static TQValueList<FavoriteFolderView*> mInstances;
|