ObjectEditorCard.h 965 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #include <AzQtComponents/Components/Widgets/Card.h>
  10. #include <Source/Editor/ObjectEditor.h>
  11. QT_FORWARD_DECLARE_CLASS(QWidget)
  12. namespace AZ
  13. {
  14. class SerializeContext;
  15. }
  16. namespace EMStudio
  17. {
  18. class ObjectEditorCard
  19. : public AzQtComponents::Card
  20. {
  21. Q_OBJECT //AUTOMOC
  22. public:
  23. ObjectEditorCard(AZ::SerializeContext* serializeContext, QWidget* parent = nullptr);
  24. ~ObjectEditorCard() override = default;
  25. void Update(const QString& cardName, const AZ::TypeId& objectTypeId, void* object);
  26. EMotionFX::ObjectEditor* GetObjectEditor() const { return m_objectEditor; }
  27. private:
  28. EMotionFX::ObjectEditor* m_objectEditor = nullptr;
  29. };
  30. } // namespace EMStudio