Files
karen jirak 356c94488d Place Actors Milestone 2, new builders.
-Header and body container
- Simple Title container
- Column wrapping container
- Zero State builder
- Addition of favorites
- moved additions of placement entries into the category builder

#jira UE-205201
#rb JeanMichel.Dignard

[CL 32977191 by karen jirak in ue5-main branch]
2024-04-15 17:30:12 -04:00

47 lines
1.4 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Common/BuilderTypes.h"
#include "Layout/Containers/SlateBuilder.h"
#include "Styles/BuilderIconKeys.h"
#define LOCTEXT_NAMESPACE "ZeroStateBuilder"
/**
* A builder which builds a view of a "Zero State" which can be displayed when no objects are available for that view. It has an icon which
* shows some indication of the missing data, and some text which explains the state.
*/
class FZeroStateBuilder : public FSlateBuilder
{
public:
/**
* The constructor which takes a FLabelAndIconArgs to initialize the Zero state
*
* @param LabelAndIconArgs a parameter object to provide the label and icon information
*/
explicit FZeroStateBuilder( UE::DisplayBuilders::FLabelAndIconArgs LabelAndIconArgs =
UE::DisplayBuilders::FLabelAndIconArgs{ LOCTEXT("ZeroStateBuilderDefaultLabel", "No items available." )
, FBuilderIconKeys::Get().ZeroStateDefaultMedium().GetSlateIcon() } );
/**
* Build the Zero state SWidget and return it
*/
virtual TSharedPtr<SWidget> GenerateWidget() override;
private:
/**
* Keeping UpdateWidget private until/unless there is a need for it
*/
virtual void UpdateWidget() override;
/**
* Keeping ResetWidget private until/unless there is a need for it
*/
virtual void ResetWidget() override;
FSlateIcon Icon;
FText Label;
};
#undef LOCTEXT_NAMESPACE