You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.7 KiB
C++
50 lines
1.7 KiB
C++
/*
|
|
* 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;
|