#include <SDialogueTextPropertyPickList.h>
A widget to edit a Text property but it allows you to pick from a list of possible values and search in it. Inspired from SPropertyMenuAssetPicker and SAssetPicker and SAssetView
Definition at line 17 of file SDialogueTextPropertyPickList.h.
◆ Self
◆ Super
◆ TextListItem
◆ Construct()
void SDialogueTextPropertyPickList::Construct |
( |
const FArguments & | InArgs | ) |
|
The Property handle of the property this widget represents. Does this pick list has a checkbox for ContextSensitive suggestions? The check status of the context sensitive checkbox. The Text that is displayed besides the display checkbox The tooltip text for the context checkbox. Tooltip text to displayed all over the place. Hint text to display for the search text when there is no value All possible suggestions for the search text If the context sensitive checkbox is true. Aka the current context Only used if HasContextCheckbox is true. All possible suggestions for the search text. If the context sensitive checkbox is false. Invoked whenever the text changes Invoked whenever the text is committed (e.g. user presses enter) Callback delegate to have first chance handling of the OnKeyDown event Whether the SearchBox should delay notifying listeners of text changed events until the user is done typing Construct the widget. It must have the PropertyHandle set or else it will fail
- Parameters
-
InArgs | Arguments for widget construction |
Definition at line 15 of file SDialogueTextPropertyPickList.cpp.
◆ CreateShadowOverlay()
TSharedRef< SWidget > SDialogueTextPropertyPickList::CreateShadowOverlay |
( |
TSharedRef< STableViewBase > | Table | ) |
const |
|
inlineprivate |
◆ FocusSearchBox()
void SDialogueTextPropertyPickList::FocusSearchBox |
( |
| ) |
const |
|
private |
◆ GetContextCheckBoxWidget()
TSharedRef< SWidget > SDialogueTextPropertyPickList::GetContextCheckBoxWidget |
( |
| ) |
|
|
private |
◆ GetHighlightText()
FText SDialogueTextPropertyPickList::GetHighlightText |
( |
| ) |
const |
|
inlineprivate |
◆ GetListViewWidget()
TSharedRef< SWidget > SDialogueTextPropertyPickList::GetListViewWidget |
( |
| ) |
|
|
private |
◆ GetMenuWidget()
TSharedRef< SWidget > SDialogueTextPropertyPickList::GetMenuWidget |
( |
| ) |
|
|
private |
◆ GetSearchBoxWidget()
TSharedRef< SWidget > SDialogueTextPropertyPickList::GetSearchBoxWidget |
( |
| ) |
|
|
private |
◆ GetSelectedSuggestion()
TSharedPtr< FName > SDialogueTextPropertyPickList::GetSelectedSuggestion |
( |
| ) |
const |
|
private |
◆ HandleComboBoxOpened()
void SDialogueTextPropertyPickList::HandleComboBoxOpened |
( |
| ) |
|
|
private |
◆ HandleContextCheckboxChanged()
void SDialogueTextPropertyPickList::HandleContextCheckboxChanged |
( |
ECheckBoxState | CheckState | ) |
|
|
private |
◆ HandleKeyDown()
FReply SDialogueTextPropertyPickList::HandleKeyDown |
( |
const FGeometry & | MyGeometry, |
|
|
const FKeyEvent & | InKeyEvent ) |
|
private |
◆ HandleListGenerateRow()
TSharedRef< ITableRow > SDialogueTextPropertyPickList::HandleListGenerateRow |
( |
TextListItem | Text, |
|
|
const TSharedRef< STableViewBase > & | OwnerTable ) |
|
private |
◆ HandleListSelectionChanged()
void SDialogueTextPropertyPickList::HandleListSelectionChanged |
( |
TextListItem | NewValue, |
|
|
ESelectInfo::Type | SelectInfo ) |
|
private |
◆ HandleMenuOpenChanged()
void SDialogueTextPropertyPickList::HandleMenuOpenChanged |
( |
bool | bOpen | ) |
|
|
private |
◆ HandleTextChanged()
void SDialogueTextPropertyPickList::HandleTextChanged |
( |
const FText & | InSearchText | ) |
|
|
private |
◆ HandleTextCommitted()
void SDialogueTextPropertyPickList::HandleTextCommitted |
( |
const FText & | NewText, |
|
|
ETextCommit::Type | CommitType ) |
|
private |
Handles for when text in the editable text box is commited (pressed enter/click).
Handler for when text in the editable text box changed
Definition at line 321 of file SDialogueTextPropertyPickList.cpp.
◆ HasKeyboardFocus()
bool SDialogueTextPropertyPickList::HasKeyboardFocus |
( |
| ) |
const |
|
inlineoverride |
Checks to see if this widget currently has the keyboard focus
- Returns
- True if this widget has keyboard focus
Definition at line 114 of file SDialogueTextPropertyPickList.h.
◆ IsContextCheckBoxChecked()
ECheckBoxState SDialogueTextPropertyPickList::IsContextCheckBoxChecked |
( |
| ) |
const |
|
inlineprivate |
◆ OnFocusReceived()
FReply SDialogueTextPropertyPickList::OnFocusReceived |
( |
const FGeometry & | MyGeometry, |
|
|
const FFocusEvent & | InFocusEvent ) |
|
inlineoverride |
Called when focus is given to this widget. This event does not bubble.
- Parameters
-
MyGeometry | The Geometry of the widget receiving the event |
InFocusEvent | The FocusEvent |
- Returns
- Returns whether the event was handled, along with other possible actions
Definition at line 123 of file SDialogueTextPropertyPickList.h.
◆ OnPreviewKeyDown()
FReply SDialogueTextPropertyPickList::OnPreviewKeyDown |
( |
const FGeometry & | MyGeometry, |
|
|
const FKeyEvent & | InKeyEvent ) |
|
override |
Called after a key is pressed when this widget or a child of this widget has focus If a widget handles this event, OnKeyDown will not be passed to the focused widget.
This event is primarily to allow parent widgets to consume an event before a child widget processes it and it should be used only when there is no better design alternative.
- Parameters
-
MyGeometry | The Geometry of the widget receiving the event |
InKeyEvent | Key event |
- Returns
- Returns whether the event was handled, along with other possible actions
Definition at line 91 of file SDialogueTextPropertyPickList.cpp.
◆ SetPropertyHandle()
void SDialogueTextPropertyPickList::SetPropertyHandle |
( |
const TSharedPtr< IPropertyHandle > & | InPropertyHandle | ) |
|
◆ SetText()
void SDialogueTextPropertyPickList::SetText |
( |
const TAttribute< FText > & | InNewText | ) |
|
◆ SetToolTipAttribute()
void SDialogueTextPropertyPickList::SetToolTipAttribute |
( |
const TAttribute< FText > & | InNewText | ) |
|
◆ SLATE_BEGIN_ARGS()
SDialogueTextPropertyPickList::SLATE_BEGIN_ARGS |
( |
Self | | ) |
|
|
inline |
◆ SupportsKeyboardFocus()
bool SDialogueTextPropertyPickList::SupportsKeyboardFocus |
( |
| ) |
const |
|
inlineoverride |
Checks to see if this widget supports keyboard focus. Override this in derived classes.
- Returns
- True if this widget can take keyboard focus
Definition at line 108 of file SDialogueTextPropertyPickList.h.
◆ UpdateSuggestionList()
void SDialogueTextPropertyPickList::UpdateSuggestionList |
( |
| ) |
|
|
private |
◆ bDelayChangeNotificationsWhileTyping
bool SDialogueTextPropertyPickList::bDelayChangeNotificationsWhileTyping = true |
|
private |
Whether the SearchBox should delay notifying listeners of text changed events until the user is done typing
Definition at line 271 of file SDialogueTextPropertyPickList.h.
◆ bHasContextCheckBox
bool SDialogueTextPropertyPickList::bHasContextCheckBox = false |
|
private |
◆ bIsContextCheckBoxChecked
bool SDialogueTextPropertyPickList::bIsContextCheckBoxChecked = false |
|
private |
◆ ComboButtonTextWidget
TSharedPtr<STextBlock> SDialogueTextPropertyPickList::ComboButtonTextWidget |
|
private |
◆ ComboButtonWidget
TSharedPtr<SComboButton> SDialogueTextPropertyPickList::ComboButtonWidget |
|
private |
◆ ContextCheckBoxTextAttribute
TAttribute<FText> SDialogueTextPropertyPickList::ContextCheckBoxTextAttribute |
|
private |
◆ ContextCheckBoxToolTipTextAttribute
TAttribute<FText> SDialogueTextPropertyPickList::ContextCheckBoxToolTipTextAttribute |
|
private |
◆ ContextCheckBoxWidget
TSharedPtr<SCheckBox> SDialogueTextPropertyPickList::ContextCheckBoxWidget |
|
private |
◆ CurrentContextSuggestionAttributes
TAttribute<TArray<FName> > SDialogueTextPropertyPickList::CurrentContextSuggestionAttributes |
|
private |
◆ HintTextAttribute
TAttribute<FText> SDialogueTextPropertyPickList::HintTextAttribute |
|
private |
◆ InputTextWidget
TSharedPtr<SSearchBox> SDialogueTextPropertyPickList::InputTextWidget |
|
private |
◆ ListViewContainerWidget
TSharedPtr<SBorder> SDialogueTextPropertyPickList::ListViewContainerWidget |
|
private |
◆ ListViewWidget
TSharedPtr<SListView<TextListItem> > SDialogueTextPropertyPickList::ListViewWidget |
|
private |
◆ MenuWidget
TSharedPtr<SVerticalBox> SDialogueTextPropertyPickList::MenuWidget |
|
private |
◆ OnKeyDownHandler
FOnKeyDown SDialogueTextPropertyPickList::OnKeyDownHandler |
|
private |
◆ OnTextChanged
FOnTextChanged SDialogueTextPropertyPickList::OnTextChanged |
|
private |
◆ OnTextCommitted
FOnTextCommitted SDialogueTextPropertyPickList::OnTextCommitted |
|
private |
◆ PropertyHandle
TSharedPtr<IPropertyHandle> SDialogueTextPropertyPickList::PropertyHandle |
|
private |
◆ SuggestionAttributes
TAttribute<TArray<FName> > SDialogueTextPropertyPickList::SuggestionAttributes |
|
private |
All possible suggestions for the search text. When there is no context sensitive checkbox or the context sensitive checkbox is unchecked.
Definition at line 213 of file SDialogueTextPropertyPickList.h.
◆ Suggestions
TArray<TextListItem> SDialogueTextPropertyPickList::Suggestions |
|
private |
All suggestions stored in this widget for the list view. It represents a snapshot of the SuggestionsAttribute or ContextSensitiveSuggestionsAttribute depending on situation. Call UpdateSuggestionList to update.
Definition at line 268 of file SDialogueTextPropertyPickList.h.
◆ TextAttribute
TAttribute<FText> SDialogueTextPropertyPickList::TextAttribute |
|
private |
◆ ToolTipAttribute
TAttribute<FText> SDialogueTextPropertyPickList::ToolTipAttribute |
|
private |
The documentation for this class was generated from the following files: