![]() |
Plasma Engine
2.0
|
Folder tree of the asset browser to allow filtering by folder. More...
#include <AssetBrowserFolderView.moc.h>
Public Member Functions | |
plQtAssetBrowserFolderView (QWidget *pParent) | |
void | SetFilter (plQtAssetBrowserFilter *pFilter) |
Required to be set right after the ctor. This class will call plQtAssetBrowserFilter::SetPathFilter whenever the current selected item changes. | |
void | SetDialogMode (bool bDialogMode) |
In dialog mode, any modifications (folder movement, creation and deletion) are disabled. | |
virtual void | mouseDoubleClickEvent (QMouseEvent *e) override |
virtual void | mousePressEvent (QMouseEvent *e) override |
Protected Member Functions | |
virtual void | dragMoveEvent (QDragMoveEvent *e) override |
virtual void | mouseMoveEvent (QMouseEvent *e) override |
virtual void | dropEvent (QDropEvent *event) override |
virtual Qt::DropActions | supportedDropActions () const override |
plStatus | canDrop (QDropEvent *e, plDynamicArray< plString > &out_files, plString &out_sTargetFolder) |
virtual QStringList | mimeTypes () const override |
virtual QMimeData * | mimeData (const QList< QTreeWidgetItem * > &items) const override |
virtual void | keyPressEvent (QKeyEvent *e) override |
Folder tree of the asset browser to allow filtering by folder.
This class keeps up to date with the folder structure in plFileSystemModel. Events from plFileSystemModel are cached ans flushed via OnFlushFileSystemEvents. Folder movement, creation and deletion is supported and handled by this class. The context menu is implemented in plQtAssetBrowserWidget as it requires a global context of the asset browser instance.