/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Editor/EditorFramework/GUI/RawDocumentTreeWidget.moc.h
51 строка
2 KB
Jan Krassnigg
Added support for asset or object references in log messages (#1947)
26 май 2026, 10:53
Не верифицирован
26 май 2026, 10:53
c4228c1
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/EditorFrameworkDLL.h> #include <EditorFramework/GUI/RawDocumentTreeModel.moc.h> #include <GuiFoundation/Widgets/ItemView.moc.h> #include <QSortFilterProxyModel> #include <QTreeView> #include <ToolsFoundation/Selection/SelectionManager.h> #include <memory> class ezQtTreeSearchFilterModel; class ezSelectionManager; class ezGameObjectFilter; class EZ_EDITORFRAMEWORK_DLL ezQtDocumentTreeView : public ezQtItemView<QTreeView> { Q_OBJECT public: ezQtDocumentTreeView(QWidget* pParent); ezQtDocumentTreeView(QWidget* pParent, ezDocument* pDocument, std::unique_ptr<ezQtDocumentTreeModel> pCustomModel, ezSelectionManager* pSelection = nullptr); ~ezQtDocumentTreeView(); void Initialize(ezDocument* pDocument, std::unique_ptr<ezQtDocumentTreeModel> pCustomModel, ezSelectionManager* pSelection = nullptr); void EnsureLastSelectedItemVisible(); void SetAllowDragDrop(bool bAllow); void SetAllowDeleteObjects(bool bAllow); ezQtTreeSearchFilterModel* GetProxyFilterModel() const { return m_pFilterModel.get(); } protected: virtual bool event(QEvent* pEvent) override; private Q_SLOTS: void on_selectionChanged_triggered(const QItemSelection& selected, const QItemSelection& deselected); private: void SelectionEventHandler(const ezSelectionManagerEvent& e); private: std::unique_ptr<ezQtDocumentTreeModel> m_pModel; std::unique_ptr<ezQtTreeSearchFilterModel> m_pFilterModel; std::unique_ptr<ezGameObjectFilter> m_pGameObjectFilter; ezSelectionManager* m_pSelectionManager = nullptr; ezDocument* m_pDocument = nullptr; bool m_bBlockSelectionSignal = false; bool m_bAllowDeleteObjects = false; };