SGenerateSoundBanks.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. /*------------------------------------------------------------------------------------
  16. SGenerateSoundBanks.h
  17. ------------------------------------------------------------------------------------*/
  18. #pragma once
  19. #include "Widgets/SCompoundWidget.h"
  20. #include "Widgets/Views/SListView.h"
  21. #include "Widgets/Views/STableRow.h"
  22. #include "AssetManagement/WwiseProjectInfo.h"
  23. class SCheckBox;
  24. class SGenerateSoundBanks : public SCompoundWidget
  25. {
  26. public:
  27. SLATE_BEGIN_ARGS( SGenerateSoundBanks )
  28. {}
  29. SLATE_END_ARGS( )
  30. SGenerateSoundBanks(void);
  31. AUDIOKINETICTOOLS_API void Construct(const FArguments& InArgs);
  32. virtual FReply OnKeyDown( const FGeometry& MyGeometry, const FKeyEvent& InKeyboardEvent ) override;
  33. /** override the base method to allow for keyboard focus */
  34. virtual bool SupportsKeyboardFocus() const
  35. {
  36. return true;
  37. }
  38. bool ShouldDisplayWindow() { return PlatformNames.Num() != 0; }
  39. private:
  40. void PopulateList();
  41. private:
  42. FReply OnGenerateButtonClicked();
  43. TSharedRef<ITableRow> MakePlatformListItemWidget(TSharedPtr<FString> Platform, const TSharedRef<STableViewBase>& OwnerTable);
  44. private:
  45. TSharedPtr<SListView<TSharedPtr<FString>>> PlatformList;
  46. TSharedPtr<SListView<TSharedPtr<FString>>> LanguageList;
  47. TSharedPtr<SCheckBox> SkipLanguagesCheckBox;
  48. TArray<TSharedPtr<FString>> PlatformNames;
  49. TArray<TSharedPtr<FString>> LanguagesNames;
  50. WwiseProjectInfo wwiseProjectInfo;
  51. };