SEzAbleTreeViewWidget.h 771 B

12345678910111213141516171819202122232425262728293031
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "Widgets/SCompoundWidget.h"
  5. #include "Widgets/Layout/SScrollBox.h"
  6. #include "EzAbilityState.h"
  7. /**
  8. *
  9. */
  10. class EZABILITYEDITOR_API SEzAbleTreeViewWidget : public SCompoundWidget
  11. {
  12. public:
  13. SLATE_BEGIN_ARGS(SEzAbleTreeViewWidget)
  14. {}
  15. SLATE_END_ARGS()
  16. /** Constructs this widget with InArgs */
  17. void Construct(const FArguments& InArgs);
  18. FReply HandleAddStateButton();
  19. // Treeview handlers
  20. TSharedRef<ITableRow> HandleGenerateRow(TWeakObjectPtr<UEzAbilityState> InState, const TSharedRef<STableViewBase>& InOwnerTableView);
  21. public:
  22. TSharedPtr<STreeView<TWeakObjectPtr<UEzAbilityState>>> TreeView;
  23. TSharedPtr<SScrollBox> ViewBox;
  24. };