PropertyGridBus.h 912 B

1234567891011121314151617181920212223242526272829
  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/EBus/EBus.h>
  10. #include <AzCore/Component/EntityId.h>
  11. namespace ScriptCanvasEditor
  12. {
  13. class PropertyGridRequests : public AZ::EBusTraits
  14. {
  15. public:
  16. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  17. static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
  18. virtual void RefreshPropertyGrid() = 0;
  19. virtual void RebuildPropertyGrid() = 0;
  20. virtual void SetSelection(const AZStd::vector<AZ::EntityId>& selectedEntityIds) = 0;
  21. virtual void ClearSelection() = 0;
  22. };
  23. using PropertyGridRequestBus = AZ::EBus<PropertyGridRequests>;
  24. }