13#define LOC_DEFINE_REGION
16SLATE_API void MakeUICommand_InternalUseOnly(
FBindingContext* This,
TSharedPtr< FUICommandInfo >&
OutCommand,
const TCHAR*
InSubNamespace,
const TCHAR*
InCommandName,
const TCHAR*
InCommandNameUnderscoreTooltip,
const ANSICHAR*
DotCommandName,
const TCHAR* FriendlyName,
const TCHAR*
InDescription,
const EUserInterfaceActionType CommandType,
const FInputChord&
InDefaultChord,
const FInputChord&
InAlternateDefaultChord =
FInputChord());
19#define UI_COMMAND_EXT( BindingContext, OutUICommandInfo, CommandIdName, FriendlyName, InDescription, CommandType, InDefaultChord, ... ) \
20 MakeUICommand_InternalUseOnly( BindingContext, OutUICommandInfo, TEXT(LOCTEXT_NAMESPACE), TEXT(CommandIdName), TEXT(CommandIdName) TEXT("_ToolTip"), "." CommandIdName, TEXT(FriendlyName), TEXT(InDescription), CommandType, InDefaultChord, ## __VA_ARGS__ );
22#define UI_COMMAND( CommandId, FriendlyName, InDescription, CommandType, InDefaultChord, ... ) \
23 MakeUICommand_InternalUseOnly( this, CommandId, TEXT(LOCTEXT_NAMESPACE), TEXT(#CommandId), TEXT(#CommandId) TEXT("_ToolTip"), "." #CommandId, TEXT(FriendlyName), TEXT(InDescription), CommandType, InDefaultChord, ## __VA_ARGS__ );
25#undef LOC_DEFINE_REGION
27#define UE_DECLARE_TCOMMANDS(Type, Api) template<> Api TWeakPtr<Type>& TCommands<Type>::GetInstance();
28#define UE_DEFINE_TCOMMANDS(Type) template<> TWeakPtr<Type>& TCommands<Type>::GetInstance() { static TWeakPtr<Type> Inst; return Inst; }
31template<
typename CommandContextType>
94 check(InstancePtr.IsUnique());
119#if PLATFORM_UNIX || PLATFORM_APPLE
#define check(expr)
Definition AssertionMacros.h:314
SLATE_API void MakeUICommand_InternalUseOnly(FBindingContext *This, TSharedPtr< FUICommandInfo > &OutCommand, const TCHAR *InSubNamespace, const TCHAR *InCommandName, const TCHAR *InCommandNameUnderscoreTooltip, const ANSICHAR *DotCommandName, const TCHAR *FriendlyName, const TCHAR *InDescription, const EUserInterfaceActionType CommandType, const FInputChord &InDefaultChord, const FInputChord &InAlternateDefaultChord=FInputChord())
Definition Commands.cpp:8
SharedPointerInternals::TRawPtrProxy< ObjectType > MakeShareable(ObjectType *InObject)
Definition SharedPointer.h:1947
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EUserInterfaceActionType
Definition UICommandInfo.h:20
Definition UICommandInfo.h:85
static SLATE_API FOnBindingContextChanged CommandsChanged
Definition UICommandInfo.h:162
Definition NameTypes.h:617
static const FBindingContext & GetContext()
Definition Commands.h:100
static CommandContextType & Get()
Definition Commands.h:73
static bool IsRegistered()
Definition Commands.h:67
static TWeakPtr< CommandContextType > & GetInstance()
Definition Commands.h:126
static void Register()
Definition Commands.h:38
virtual void RegisterCommands()=0
static void Unregister()
Definition Commands.h:82
virtual ~TCommands()
Definition Commands.h:114
TCommands(const FName InContextName, const FText &InContextDesc, const FName InContextParent, const FName InStyleSetName)
Definition Commands.h:110
Definition SharedPointer.h:153
Definition SharedPointer.h:1295