DownloadRemoteTemplateDialog.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 <ProjectTemplateInfo.h>
  11. #include <QDialog>
  12. #endif
  13. QT_FORWARD_DECLARE_CLASS(QLabel)
  14. QT_FORWARD_DECLARE_CLASS(QDialogButtonBox)
  15. QT_FORWARD_DECLARE_CLASS(QPushButton)
  16. namespace O3DE::ProjectManager
  17. {
  18. QT_FORWARD_DECLARE_CLASS(FormLineEditWidget)
  19. class DownloadRemoteTemplateDialog
  20. : public QDialog
  21. {
  22. Q_OBJECT
  23. public:
  24. explicit DownloadRemoteTemplateDialog(const ProjectTemplateInfo& projectTemplate, QWidget* parent = nullptr);
  25. ~DownloadRemoteTemplateDialog() = default;
  26. QString GetInstallPath();
  27. signals:
  28. void StartObjectDownload(const QString& objectName);
  29. private:
  30. FormLineEditWidget* m_installPath = nullptr;
  31. QLabel* m_buildToggleLabel = nullptr;
  32. QLabel* m_downloadTemplateLabel = nullptr;
  33. QLabel* m_requirementsTitleLabel = nullptr;
  34. QLabel* m_licensesTitleLabel = nullptr;
  35. QLabel* m_requirementsContentLabel = nullptr;
  36. QLabel* m_licensesContentLabel = nullptr;
  37. QDialogButtonBox* m_dialogButtons = nullptr;
  38. QPushButton* m_applyButton = nullptr;
  39. };
  40. } // namespace O3DE::ProjectManager