You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
/* KMail Folder Selection Dialog |
|
* Pops up a small window with a list of folders and Ok/Cancel buttons. |
|
* Author: Stefan Taferner <taferner@kde.org> |
|
*/ |
|
#ifndef kmfolderseldlg_h |
|
#define kmfolderseldlg_h |
|
|
|
#include <kdialogbase.h> |
|
#include <klistview.h> |
|
#include <qvaluelist.h> |
|
#include <qguardedptr.h> |
|
|
|
class KMFolder; |
|
class KMFolderTree; |
|
class KMMainWidget; |
|
|
|
namespace KMail { |
|
|
|
class SimpleFolderTree : public KListView |
|
{ |
|
public: |
|
SimpleFolderTree( QWidget * parent, KMFolderTree * folderTree, QString & preSelection ); |
|
|
|
const KMFolder * folder() const; |
|
}; |
|
|
|
} |
|
|
|
//----------------------------------------------------------------------------- |
|
class KMFolderSelDlg: public KDialogBase |
|
{ |
|
Q_OBJECT |
|
|
|
public: |
|
/** Constructor. @p parent @em must be a @ref KMMainWin, because we |
|
need it's foldertree. */ |
|
KMFolderSelDlg( KMMainWidget * parent, const QString& caption ); |
|
virtual ~KMFolderSelDlg(); |
|
|
|
/** Returns selected folder */ |
|
virtual KMFolder* folder( void ); |
|
|
|
protected slots: |
|
void slotSelect(); |
|
|
|
protected: |
|
KMail::SimpleFolderTree * mTreeView; |
|
|
|
static QString oldSelection; |
|
}; |
|
|
|
#endif /*kmfolderseldlg_h*/
|
|
|