AkWaapiFieldNamesCustomization.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. #pragma once
  16. #if WITH_EDITOR
  17. #include "CoreMinimal.h"
  18. #include "Input/Reply.h"
  19. #include "IPropertyTypeCustomization.h"
  20. #include "PropertyHandle.h"
  21. class SButton;
  22. class SComboButton;
  23. class IMenu;
  24. class AKAUDIO_API FAkWaapiFieldNamesCustomization : public IPropertyTypeCustomization
  25. {
  26. public:
  27. static TSharedRef<IPropertyTypeCustomization> MakeInstance();
  28. /** IPropertyTypeCustomization interface */
  29. virtual void CustomizeHeader(TSharedRef<class IPropertyHandle> StructPropertyHandle, class FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
  30. virtual void CustomizeChildren(TSharedRef<class IPropertyHandle> StructPropertyHandle, class IDetailChildrenBuilder& StructBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils) override;
  31. private:
  32. /** Delegate used to display the Waapi Picker */
  33. FReply OnPickContent(TSharedRef<IPropertyHandle> PropertyHandle);
  34. /** Handler for tree view selection changes */
  35. void FieldNameSelectionChanged(TSharedPtr< FString > in_FieldName, ESelectInfo::Type SelectInfo);
  36. private:
  37. /** The pick button widget */
  38. TSharedPtr<SButton> PickerButton;
  39. TSharedPtr<IPropertyHandle> FieldNameHandle;
  40. TSharedPtr<SWindow> Window;
  41. };
  42. #endif// WITH_EDITOR