AddRemoteTemplateDialog.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 <ProjectInfo.h>
  11. #include <QDialog>
  12. #endif
  13. QT_FORWARD_DECLARE_CLASS(QDialogButtonBox)
  14. QT_FORWARD_DECLARE_CLASS(QPushButton)
  15. QT_FORWARD_DECLARE_CLASS(QTimer)
  16. namespace O3DE::ProjectManager
  17. {
  18. QT_FORWARD_DECLARE_CLASS(FormLineEditWidget)
  19. class AddRemoteTemplateDialog
  20. : public QDialog
  21. {
  22. Q_OBJECT
  23. public:
  24. explicit AddRemoteTemplateDialog(QWidget* parent = nullptr);
  25. ~AddRemoteTemplateDialog() = default;
  26. QString GetRepoPath();
  27. private:
  28. void SetDialogReady(bool isReady);
  29. private slots:
  30. void ValidateURI();
  31. void AddTemplateSource();
  32. private:
  33. ProjectInfo m_currentProject;
  34. FormLineEditWidget* m_repoPath = nullptr;
  35. QDialogButtonBox* m_dialogButtons = nullptr;
  36. QPushButton* m_applyButton = nullptr;
  37. QTimer* m_inputTimer = nullptr;
  38. };
  39. } // namespace O3DE::ProjectManager