SWwiseReconcileItemView.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #include "Widgets/SWwiseReconcile.h"
  17. #include "Widgets/Views/SListView.h"
  18. #include "Wwise/WwiseReconcile.h"
  19. class SWwiseReconcileListView : public SListView< TSharedPtr<FWwiseReconcileItem> >
  20. {
  21. public:
  22. ~SWwiseReconcileListView() {};
  23. /** Constructs this widget with InArgs */
  24. void Construct(const FArguments& InArgs, TSharedRef<SWwiseReconcile> Owner);
  25. /** Weak reference to the picker widget that owns this list */
  26. TWeakPtr<SWwiseReconcile> WwiseReconcileWeak;
  27. };
  28. /** Widget that represents a row in the picker's tree control. Generates widgets for each column on demand. */
  29. class SWwiseReconcileRow
  30. : public SMultiColumnTableRow< TSharedPtr<FWwiseReconcileItem> >
  31. {
  32. public:
  33. virtual TSharedRef<SWidget> GenerateWidgetForColumn(const FName& InColumnId) override;
  34. /** The item associated with this row of data */
  35. TWeakPtr<FWwiseReconcileItem> Item;
  36. /** Weak reference to the picker widget that owns this list */
  37. TWeakPtr<SWwiseReconcile> WwiseReconcileWeak;
  38. SLATE_BEGIN_ARGS(SWwiseReconcileRow) {}
  39. /** The list item for this row */
  40. SLATE_ARGUMENT(TSharedPtr < FWwiseReconcileItem >, Item)
  41. SLATE_END_ARGS()
  42. /** Construct function for this widget */
  43. void Construct(const FArguments& InArgs, const TSharedRef<SWwiseReconcileListView>& ReconcileListView, TSharedRef<SWwiseReconcile>
  44. WwiseReconcile);
  45. };