Navigation
API > API/Plugins > API/Plugins/ConcertSharedSlate
Defines the source for of item, e.g. objects.
Imagine you have a list view displaying a list of objects. Over it is a "Add Object" combo button. In the button's menu, you'd find e.g. "Add from World", "Add from Selection", "Import from File", etc. Each of of these sub-menu entries is an item source and corresponds to an IItemSourceModel. Models may also be useful for building context menus entries. When you right-click an item, you may want to add more items based on the object clicked, e.g. add the components of a right-clicked actor.
| Name | IItemSourceModel |
| Type | class |
| Header File | /Engine/Plugins/Developer/Concert/ConcertUI/ConcertSharedSlate/Source/ConcertSharedSlate/Public/Model/Item/IItemSourceModel.h |
| Include Path | #include "Model/Item/IItemSourceModel.h" |
Syntax
template<typename TItemType>
class IItemSourceModel : public TSharedFromThis< IItemSourceModel< TItemType > >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → IItemSourceModel
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IItemSourceModel() |
Model/Item/IItemSourceModel.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EnumerateSelectableItems
(
TFunctionRef< EBreakBehavior(const TItemType&SelectableOption)> Delegate |
Enumerates ALL objects from this source. | Model/Item/IItemSourceModel.h | |
FSourceDisplayInfo GetDisplayInfo() |
Some data for displaying this source in UI. | Model/Item/IItemSourceModel.h | |
virtual uint32 GetNumSelectableItems() |
Model/Item/IItemSourceModel.h | ||
PRAGMA_DISABLE_DEPRECATION_WARNINGSTArray< TItemType > GetSelectableItems() |
Util that converts EnumerateSelectableItems into an array. | Model/Item/IItemSourceModel.h | |
virtual bool HasOptions() |
Model/Item/IItemSourceModel.h |
See Also
-
IObjectSelectionSourceModel and FEditorObjectSelectionSourceModel for an example how sources may be used.
-
FEditorObjectSelectionSourceModel::FContextMenuSources and FEditorObjectSelectionSourceModel::GetContextMenuOptions
-
FSourceModelBuilders for building UI from models
-
e.g. the above mentioned combo button or context menus.