AddSeedDialog.h 1.3 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 <AzCore/std/string/string.h>
  11. #include <AzFramework/Platform/PlatformDefaults.h>
  12. #include <QDialog>
  13. #include <QSharedPointer>
  14. #endif
  15. namespace Ui
  16. {
  17. class AddSeedDialog;
  18. }
  19. namespace AssetBundler
  20. {
  21. class GUIApplicationManager;
  22. class AddSeedDialog
  23. : public QDialog
  24. {
  25. Q_OBJECT
  26. public:
  27. explicit AddSeedDialog(
  28. QWidget* parent,
  29. const AzFramework::PlatformFlags& enabledPlatforms,
  30. const AZStd::string& platformSpecificCachePath);
  31. virtual ~AddSeedDialog() {}
  32. AZStd::string GetFileName();
  33. AzFramework::PlatformFlags GetPlatformFlags();
  34. private:
  35. void OnBrowseFileButtonPressed();
  36. void OnPlatformSelectionChanged(const AzFramework::PlatformFlags& selectedPlatforms);
  37. void FormatRelativePathString(QString& relativePath);
  38. QSharedPointer<Ui::AddSeedDialog> m_ui;
  39. QString m_platformSpecificCachePath;
  40. AZStd::string m_fileName;
  41. bool m_fileNameIsValid = false;
  42. bool m_platformIsValid = false;
  43. };
  44. } // namespace AssetBundler