21 #ifndef __qSlicerDirectoryListView_h 22 #define __qSlicerDirectoryListView_h 28 #include "qSlicerBaseQTGUIExport.h" 30 class QDragEnterEvent;
32 class qSlicerDirectoryListViewPrivate;
37 Q_PROPERTY(QStringList directoryList READ directoryList WRITE setDirectoryList NOTIFY directoryListChanged);
49 bool hasDirectory(
const QString& path)
const;
51 QStringList directoryList(
bool absolutePath =
false)
const;
53 QStringList selectedDirectoryList(
bool absolutePath =
false)
const;
55 void dragEnterEvent(QDragEnterEvent *event);
56 virtual void dropEvent(QDropEvent *event);
62 void addDirectory(
const QString& path);
68 void setDirectoryList(
const QStringList& paths);
73 void removeDirectory(
const QString& path);
76 void removeSelectedDirectories();
79 void selectAllDirectories();
82 void clearDirectorySelection();
86 void directoryListChanged();
89 QScopedPointer<qSlicerDirectoryListViewPrivate>
d_ptr;
QScopedPointer< qSlicerDirectoryListViewPrivate > d_ptr
QWidget Superclass
Superclass typedef.