ToolBarManagerBus.h 947 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/Outcome/Outcome.h>
  11. #include <AzCore/std/string/string.h>
  12. #include <AzToolsFramework/ActionManager/ToolBar/ToolBarManagerInterface.h>
  13. namespace EditorPythonBindings
  14. {
  15. //! ToolBarManagerRequestBus
  16. //! Bus to register and manage ToolBars in the Editor via Python.
  17. //! If writing C++ code, use the ToolBarManagerInterface instead.
  18. class ToolBarManagerRequests : public AZ::EBusTraits
  19. {
  20. public:
  21. static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single;
  22. };
  23. using ToolBarManagerRequestBus = AZ::EBus<AzToolsFramework::ToolBarManagerInterface, ToolBarManagerRequests>;
  24. } // namespace EditorPythonBindings