GenerateBundlesModal.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 <AzToolsFramework/Asset/AssetBundler.h>
  12. #include <QDialog>
  13. #include <QSharedPointer>
  14. #endif
  15. namespace Ui
  16. {
  17. class GenerateBundlesModal;
  18. }
  19. namespace AssetBundler
  20. {
  21. class AssetListTabWidget;
  22. class GenerateBundlesModal
  23. : public QDialog
  24. {
  25. Q_OBJECT
  26. public:
  27. explicit GenerateBundlesModal(
  28. QWidget* parent,
  29. const AZStd::string& assetListFileAbsolutePath,
  30. const AZStd::string& defaultBundleDirectory,
  31. const AZStd::string& defaultBundleSettingsDirectory,
  32. AssetListTabWidget* assetListTabWidget);
  33. virtual ~GenerateBundlesModal();
  34. private:
  35. void OnOutputBundleLocationBrowseButtonPressed();
  36. void OnBundleSettingsBrowseButtonPressed();
  37. bool LoadBundleSettingsValues(const AZStd::string& absoluteBundleSettingsFilePath);
  38. void UpdateBundleSettingsDisplayName(const AZStd::string& absoluteBundleSettingsFilePath);
  39. void OnBundleSettingsSaveButtonPressed();
  40. void OnMaxBundleSizeChanged();
  41. void OnBundleVersionChanged();
  42. void OnGenerateBundlesButtonPressed();
  43. QSharedPointer<Ui::GenerateBundlesModal> m_ui;
  44. AssetListTabWidget* m_assetListTabWidget = nullptr;
  45. AZStd::string m_assetListFileAbsolutePath;
  46. AZStd::string m_defaultBundleDirectory;
  47. AZStd::string m_defaultBundleSettingsDirectory;
  48. AZStd::string m_platformName;
  49. AzToolsFramework::AssetBundleSettings m_bundleSettings;
  50. };
  51. } // namespace AssetBundler