20 #ifndef KMAIL_TREEBASE_H
21 #define KMAIL_TREEBASE_H
24 #include "kmfoldertree.h"
27 #include <tdelistview.h>
33 class TreeBase : public TDEListView
38 TreeBase( TQWidget * parent, KMFolderTree *folderTree,
39 const TQString &preSelection, bool mustBeReadWrite );
41 virtual ~TreeBase() {}
47 inline void setFolder( const TQString& idString )
49 setFolder( kmkernel->findFolderById( idString ) );
52 void reload( bool mustBeReadWrite, bool showOutbox, bool showImapFolders,
53 const TQString& preSelection = TQString() );
55 int folderColumn() const { return mFolderColumn; }
56 void setFolderColumn( const int folderCol ) { mFolderColumn = folderCol; }
57 int pathColumn() const { return mPathColumn; }
58 void setPathColumn( const int pathCol ) { mPathColumn = pathCol; }
61 void addChildFolder();
63 void slotContextMenuRequested( TQListViewItem *lvi,
67 virtual TQListViewItem* createItem( TQListView* ) = 0;
68 virtual TQListViewItem* createItem( TQListView*, TQListViewItem* ) = 0;
69 virtual TQListViewItem* createItem( TQListViewItem* ) = 0;
70 virtual TQListViewItem* createItem( TQListViewItem*, TQListViewItem* ) = 0;
73 KMFolderTree* mFolderTree;
75 bool mLastMustBeReadWrite;
77 bool mLastShowImapFolders;
|