EditorWindow.h 1013 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/Asset/AssetCommon.h>
  11. #include <QWidget>
  12. #include <Blast/BlastSystemBus.h>
  13. #endif
  14. namespace Ui
  15. {
  16. class EditorWindowClass;
  17. }
  18. namespace Blast
  19. {
  20. namespace Editor
  21. {
  22. /// Window pane wrapper for the Blast Configuration Widget.
  23. class EditorWindow : public QWidget
  24. {
  25. Q_OBJECT
  26. public:
  27. AZ_CLASS_ALLOCATOR(EditorWindow, AZ::SystemAllocator, 0);
  28. static void RegisterViewClass();
  29. explicit EditorWindow(QWidget* parent = nullptr);
  30. private:
  31. static void SaveConfiguration(const BlastGlobalConfiguration& materialLibrary);
  32. QScopedPointer<Ui::EditorWindowClass> m_ui;
  33. };
  34. } // namespace Editor
  35. }; // namespace Blast