UpgradeHelper.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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/PlatformDef.h>
  11. AZ_PUSH_DISABLE_WARNING(4244 4251 4800, "-Wunknown-warning-option")
  12. #include <QProgressBar>
  13. AZ_POP_DISABLE_WARNING
  14. #include <AzCore/Component/EntityId.h>
  15. #include <AzCore/Component/TickBus.h>
  16. #include <AzQtComponents/Components/StyledDialog.h>
  17. #include <ScriptCanvas/Bus/EditorScriptCanvasBus.h>
  18. #include <ISystem.h>
  19. #include <IConsole.h>
  20. #include <AzCore/Debug/TraceMessageBus.h>
  21. #endif
  22. class QPushButton;
  23. namespace Ui
  24. {
  25. class UpgradeHelper;
  26. }
  27. namespace ScriptCanvas
  28. {
  29. class SourceHandle;
  30. }
  31. namespace ScriptCanvasEditor
  32. {
  33. //! A tool that collects and upgrades all Script Canvas graphs in the asset catalog
  34. class UpgradeHelper
  35. : public AzQtComponents::StyledDialog
  36. {
  37. Q_OBJECT
  38. public:
  39. AZ_CLASS_ALLOCATOR(UpgradeHelper, AZ::SystemAllocator);
  40. UpgradeHelper(QWidget* parent = nullptr);
  41. ~UpgradeHelper();
  42. private:
  43. AZStd::unique_ptr<Ui::UpgradeHelper> m_ui;
  44. void OpenGraph(const SourceHandle& assetId);
  45. };
  46. }