XII Release 0.1.0
Loading...
Searching...
No Matches
eqQtAssetBrowserFolderView Class Reference

#include <AssetBrowserFolderView.moc.h>

Inheritance diagram for eqQtAssetBrowserFolderView:
[legend]

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

 eqQtAssetBrowserFolderView (QWidget *pParent)
void SetFilter (xiiQtAssetBrowserFilter *pFilter)
 Required to be set right after the ctor. This class will call xiiQtAssetBrowserFilter::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
xiiStatus canDrop (QDropEvent *e, xiiDynamicArray< xiiString > &out_files, xiiString &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 xiiFileSystemModel. Events from xiiFileSystemModel are cached ans flushed via OnFlushFileSystemEvents. Folder movement, creation and deletion is supported and handled by this class. The context menu is implemented in xiiQtAssetBrowserWidget as it requires a global context of the asset browser instance.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Editor/EditorFramework/Assets/AssetBrowserFolderView.moc.h
  • /home/runner/work/XII/XII/Source/Editor/EditorFramework/Assets/Implementation/AssetBrowserFolderView.cpp