PvdWidget.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #pragma once
  2. /*
  3. * Copyright (c) Contributors to the Open 3D Engine Project.
  4. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. *
  6. * SPDX-License-Identifier: Apache-2.0 OR MIT
  7. *
  8. */
  9. #if !defined(Q_MOC_RUN)
  10. #include <AzToolsFramework/UI/PropertyEditor/PropertyEditorAPI_Internals.h>
  11. #include <QWidget>
  12. #include <PhysX/Configuration/PhysXConfiguration.h>
  13. #endif
  14. #pragma once
  15. namespace PhysX
  16. {
  17. namespace Editor
  18. {
  19. class DocumentationLinkWidget;
  20. class PvdWidget
  21. : public QWidget
  22. , private AzToolsFramework::IPropertyEditorNotify
  23. {
  24. Q_OBJECT
  25. public:
  26. AZ_CLASS_ALLOCATOR(PvdWidget, AZ::SystemAllocator);
  27. explicit PvdWidget(QWidget* parent = nullptr);
  28. void SetValue(const Debug::PvdConfiguration& configuration);
  29. signals:
  30. void onValueChanged(const Debug::PvdConfiguration& configuration);
  31. private:
  32. void CreatePropertyEditor(QWidget* parent);
  33. void BeforePropertyModified(AzToolsFramework::InstanceDataNode* /*node*/) override;
  34. void AfterPropertyModified(AzToolsFramework::InstanceDataNode* /*node*/) override;
  35. void SetPropertyEditingActive(AzToolsFramework::InstanceDataNode* /*node*/) override;
  36. void SetPropertyEditingComplete(AzToolsFramework::InstanceDataNode* /*node*/) override;
  37. void SealUndoStack() override;
  38. AzToolsFramework::ReflectedPropertyEditor* m_propertyEditor;
  39. DocumentationLinkWidget* m_documentationLinkWidget;
  40. Debug::PvdConfiguration m_config;
  41. };
  42. }
  43. }