/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Editor/EditorFramework/PropertyGrid/GameObjectReferencePropertyWidget.moc.h
46 строк
1 KB
Ingrater
Clang-format fixes and update to 18.1.1 (#1234)
10 мар 2024, 15:51
Не верифицирован
10 мар 2024, 15:51
2f16acf
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/EditorFrameworkDLL.h> #include <GuiFoundation/PropertyGrid/Implementation/PropertyWidget.moc.h> #include <QLineEdit> #include <QModelIndex> class ezSelectionContext; struct ezSelectionManagerEvent; class EZ_EDITORFRAMEWORK_DLL ezQtGameObjectReferencePropertyWidget : public ezQtStandardPropertyWidget { Q_OBJECT public: ezQtGameObjectReferencePropertyWidget(); private Q_SLOTS: void on_PickObject_clicked(); protected slots: void on_customContextMenuRequested(const QPoint& pt); void OnSelectReferencedObject(); void OnCopyReference(); void OnClearReference(); void OnPasteReference(); protected: virtual void OnInit() override; virtual void InternalSetValue(const ezVariant& value) override; void FillContextMenu(QMenu& menu); void PickObjectOverride(const ezDocumentObject* pObject); void SetValue(const QString& sText); void ClearPicking(); void SelectionManagerEventHandler(const ezSelectionManagerEvent& e); virtual void showEvent(QShowEvent* event) override; protected: QPalette m_Pal; QHBoxLayout* m_pLayout = nullptr; QLabel* m_pWidget = nullptr; QString m_sInternalValue; QToolButton* m_pButton = nullptr; ezHybridArray<ezSelectionContext*, 8> m_SelectionContextsToUnsubscribe; };