1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <AzCore/EBus/EBus.h>
- #include <AzToolsFramework/API/ToolsApplicationAPI.h>
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- //! Interface class that the UI Editor needs to implement
- class UiEditorInernalRequests
- : public AZ::EBusTraits
- {
- public: // member functions
- //! Get the selected entityIds in the UiEditor
- virtual AzToolsFramework::EntityIdList GetSelectedEntityIds() = 0;
- //! Get the selected components in the UiEditor
- virtual AZ::Entity::ComponentArrayType GetSelectedComponents() = 0;
- //! Get the entityId of the active Canvas in the UiEditor
- virtual AZ::EntityId GetActiveCanvasEntityId() = 0;
- };
- typedef AZ::EBus<UiEditorInernalRequests> UiEditorInternalRequestBus;
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- //! Interface class that the UI Editor needs to implement
- class UiEditorInternalNotifications
- : public AZ::EBusTraits
- {
- public:
- //! Called when a property on the selected entities has changed
- virtual void OnSelectedEntitiesPropertyChanged() = 0;
- //! Called before making an undoable change to entities
- virtual void OnBeginUndoableEntitiesChange() = 0;
- //! Called after making an undoable change to entities
- virtual void OnEndUndoableEntitiesChange(const AZStd::string& commandText) = 0;
- };
- typedef AZ::EBus<UiEditorInternalNotifications> UiEditorInternalNotificationBus;
|