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.
23 lines
531 B
23 lines
531 B
#ifndef __KMFOLDERTREE |
|
#define __KMFOLDERTREE |
|
|
|
#include <qwidget.h> |
|
#include <qdir.h> |
|
#include <ktreelist.h> |
|
|
|
class KMFolderTree : public KTreeList { |
|
Q_OBJECT |
|
public: |
|
KMFolderTree(QWidget *parent=0,const char *name=0); |
|
void cdFolder(QDir *dir,int index=-1); // cd's "dir" to the directory of folder "index" |
|
void getList(); // get/refresh the folder tree |
|
private: |
|
void getListRecur(QDir *,KPath *); |
|
signals: |
|
void folderSelected(QDir *); // path to folder |
|
private slots: |
|
void doFolderSelected(int); |
|
}; |
|
|
|
#endif |
|
|
|
|