Navigation
API > API/Plugins > API/Plugins/ConcertSharedSlate > API/Plugins/ConcertSharedSlate/Model > API/Plugins/ConcertSharedSlate/Model/Item
Inheritance Hierarchy
- FSharedFromThisBase
- TSharedFromThis
- IItemSourceModel
- FSelectedActorsSource
- FWorldActorSource
References
| Module | ConcertSharedSlate |
| Header | /Engine/Plugins/Developer/Concert/ConcertUI/ConcertSharedSlate/Source/ConcertSharedSlate/Public/Model/Item/IItemSourceModel.h |
| Include | #include "Model/Item/IItemSourceModel.h" |
Syntax
template<typename TItemType>
class IItemSourceModel : public TSharedFromThis< IItemSourceModel< TItemType > >
Remarks
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.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | EnumerateSelectableItems
(
TFunctionRef< EBreakBehavior(const TItemType&SelectableOption)> Delegate |
Enumerates ALL objects from this source. | |
| FSourceDisplayInfo | Some data for displaying this source in UI. | ||
| uint32 | |||
| PRAGMA_DISABLE_DEPRECATION_WARNINGSTArray< TItemType > | Util that converts EnumerateSelectableItems into an array. | ||
| bool | HasOptions () |
See Also
IObjectSelectionSourceModel and FEditorObjectSelectionSourceModel for an example how sources may be used.
FEditorObjectSelectionSourceModel::FContextMenuSources and FEditorObjectSelectionSourceModel::GetContextMenuOptions
FSourceModelBuildersfor building UI from models
e.g. the above mentioned combo button or context menus.