ScriptCanvasDeveloperEditorComponent.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #include <AzCore/Component/Component.h>
  10. #include <ScriptCanvas/Bus/ScriptCanvasBus.h>
  11. class QMainWindow;
  12. namespace ScriptCanvasDeveloperEditor
  13. {
  14. class SystemComponent
  15. : public AZ::Component
  16. , private ScriptCanvasEditor::UINotificationBus::Handler
  17. {
  18. public:
  19. AZ_COMPONENT(SystemComponent, "{5360A16B-1918-42B7-8769-D2EBD97CB1DB}");
  20. SystemComponent() = default;
  21. static void Reflect(AZ::ReflectContext* context);
  22. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  23. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  24. // AZ::Component
  25. void Init() override;
  26. void Activate() override;
  27. void Deactivate() override;
  28. ////
  29. // ScriptCanvasEditor::UINotificationBus
  30. void MainWindowCreationEvent(QMainWindow* mainWindow) override;
  31. };
  32. }