GemsGemRepoScreen.h 971 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. #if !defined(Q_MOC_RUN)
  10. #include <ScreenWidget.h>
  11. #endif
  12. QT_FORWARD_DECLARE_CLASS(QStackedWidget)
  13. namespace O3DE::ProjectManager
  14. {
  15. QT_FORWARD_DECLARE_CLASS(ScreenHeader)
  16. QT_FORWARD_DECLARE_CLASS(GemRepoScreen)
  17. //! A wrapper for a GemRepoScreen with a header that has a back button
  18. class GemsGemRepoScreen
  19. : public ScreenWidget
  20. {
  21. public:
  22. explicit GemsGemRepoScreen(QWidget* parent = nullptr);
  23. ~GemsGemRepoScreen() = default;
  24. ProjectManagerScreen GetScreenEnum() override;
  25. protected slots:
  26. void HandleBackButton();
  27. private:
  28. GemRepoScreen* m_gemRepoScreen = nullptr;
  29. ScreenHeader* m_header = nullptr;
  30. };
  31. } // namespace O3DE::ProjectManager