Plasma Engine  2.0
Loading...
Searching...
No Matches
AssetCuratorPanel.moc.h
1#pragma once
2
3#include <EditorFramework/Assets/AssetBrowserModel.moc.h>
4#include <EditorFramework/EditorFrameworkDLL.h>
5#include <EditorFramework/ui_AssetCuratorPanel.h>
6#include <Foundation/Basics.h>
7#include <GuiFoundation/DockPanels/ApplicationPanel.moc.h>
8
11
12class PL_EDITORFRAMEWORK_DLL plQtAssetCuratorFilter : public plQtAssetFilter
13{
14 Q_OBJECT
15public:
16 explicit plQtAssetCuratorFilter(QObject* pParent);
17
18 void SetFilterTransitive(bool bFilterTransitive);
19
20public:
21 virtual bool IsAssetFiltered(plStringView sDataDirParentRelativePath, bool bIsFolder, const plSubAsset* pInfo) const override;
22
23 bool m_bFilterTransitive = true;
24};
25
26class PL_EDITORFRAMEWORK_DLL plQtAssetCuratorPanel : public plQtApplicationPanel, public Ui_AssetCuratorPanel
27{
28 Q_OBJECT
29
30 PL_DECLARE_SINGLETON(plQtAssetCuratorPanel);
31
32public:
35
36public Q_SLOTS:
37 void OnAssetSelectionChanged(const QItemSelection& selected, const QItemSelection& deselected);
38
39private Q_SLOTS:
40 // note, because of the way we set up the widget, auto-connect doesn't work
41 void onListAssetsDoubleClicked(const QModelIndex& index);
42 void onCheckIndirectToggled(bool checked);
43
44private:
45 void LogWriter(const plLoggingEventData& e);
46 void UpdateIssueInfo();
47
48 plQtAssetBrowserModel* m_pModel;
49 plQtAssetCuratorFilter* m_pFilter;
50 QPersistentModelIndex m_SelectedIndex;
51};
52
Base class for all panels that are supposed to be application wide (not tied to some document).
Definition ApplicationPanel.moc.h:13
Model of the item view in the asset browser.
Definition AssetBrowserModel.moc.h:59
Definition AssetCuratorPanel.moc.h:13
Definition AssetCuratorPanel.moc.h:27
Interface class of the asset filter used to decide which items are shown in the asset browser.
Definition AssetBrowserModel.moc.h:18
Definition CuratorControl.moc.h:14
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
The data that is sent through plLogInterface.
Definition Log.h:50
Information about an asset or sub-asset.
Definition AssetCurator.h:107