LODTreeSelectionHandler.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <AzCore/Memory/SystemAllocator.h>
  11. #include <AzToolsFramework/UI/PropertyEditor/PropertyEditorAPI.h>
  12. #include <SceneAPI/SceneUI/RowWidgets/NodeTreeSelectionWidget.h>
  13. #include <SceneAPI/SceneUI/RowWidgets/NodeTreeSelectionHandler.h>
  14. #include <SceneAPIExt/Data/LodNodeSelectionList.h>
  15. #include <Editor/PropertyWidgets/LODTreeSelectionWidget.h>
  16. #endif
  17. class QWidget;
  18. namespace EMotionFX
  19. {
  20. namespace Pipeline
  21. {
  22. namespace UI
  23. {
  24. class LODTreeSelectionHandler
  25. : public SceneUI::NodeTreeSelectionHandler
  26. {
  27. Q_OBJECT
  28. public:
  29. AZ_CLASS_ALLOCATOR_DECL
  30. QWidget* CreateGUI(QWidget* parent) override;
  31. AZ::u32 GetHandlerName() const override;
  32. bool IsDefaultHandler() const override;
  33. void ConsumeAttribute(SceneUI::NodeTreeSelectionWidget* widget, AZ::u32 attrib,
  34. AzToolsFramework::PropertyAttributeReader* attrValue, const char* debugName) override;
  35. protected:
  36. void ConsumeHideUncheckableAttribute(SceneUI::NodeTreeSelectionWidget* widget,
  37. AzToolsFramework::PropertyAttributeReader* attrValue);
  38. };
  39. }
  40. }
  41. }