Plasma Engine  2.0
Loading...
Searching...
No Matches
plQtAssetBrowserFolderView Class Reference

Folder tree of the asset browser to allow filtering by folder. More...

#include <AssetBrowserFolderView.moc.h>

Inheritance diagram for plQtAssetBrowserFolderView:

Public Slots

void NewFolder ()
 Creates a new folder under the current selected item and enters edit mode to allow the user to rename it.
 
void TreeOpenExplorer ()
 Opens the current selected item in the windows explorer or OS equivalent.
 
void DeleteFolder ()
 Deletes the currently selected folder after confirmation.
 

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
 

Detailed Description

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.


The documentation for this class was generated from the following files: