You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
65 lines
2.1 KiB
C++
65 lines
2.1 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#define LOCTEXT_NAMESPACE ""
|
|
|
|
/**
|
|
* The device details commands
|
|
*/
|
|
class FDeviceDetailsCommands
|
|
: public TCommands<FDeviceDetailsCommands>
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Default constructor.
|
|
*/
|
|
FDeviceDetailsCommands()
|
|
: TCommands<FDeviceDetailsCommands>(
|
|
"DeviceDetails",
|
|
NSLOCTEXT("Contexts", "DeviceDetails", "Device Details"),
|
|
NAME_None, FEditorStyle::GetStyleSetName()
|
|
)
|
|
{ }
|
|
|
|
public:
|
|
|
|
// TCommands interface
|
|
|
|
virtual void RegisterCommands( ) override
|
|
{
|
|
UI_COMMAND(Claim, "Claim", "Claim the device", EUserInterfaceActionType::Button, FInputChord());
|
|
UI_COMMAND(Release, "Release", "Release the device", EUserInterfaceActionType::Button, FInputChord());
|
|
UI_COMMAND(Remove, "Remove", "Remove the device", EUserInterfaceActionType::Button, FInputChord());
|
|
UI_COMMAND(Share, "Share", "Share the device with other users", EUserInterfaceActionType::ToggleButton, FInputChord());
|
|
|
|
UI_COMMAND(Connect, "Connect", "Connect to the device", EUserInterfaceActionType::Button, FInputChord());
|
|
UI_COMMAND(Disconnect, "Disconnect", "Disconnect from the device", EUserInterfaceActionType::Button, FInputChord());
|
|
|
|
UI_COMMAND(PowerOff, "Power Off", "Power off the device", EUserInterfaceActionType::Button, FInputChord());
|
|
UI_COMMAND(PowerOffForce, "Power Off (Force)", "Power off the device (forcefully close any running applications)", EUserInterfaceActionType::Button, FInputChord());
|
|
UI_COMMAND(PowerOn, "Power On", "Power on the device", EUserInterfaceActionType::Button, FInputChord());
|
|
UI_COMMAND(Reboot, "Reboot", "Reboot the device", EUserInterfaceActionType::Button, FInputChord());
|
|
}
|
|
|
|
public:
|
|
|
|
// ownership commands
|
|
TSharedPtr<FUICommandInfo> Claim;
|
|
TSharedPtr<FUICommandInfo> Release;
|
|
TSharedPtr<FUICommandInfo> Remove;
|
|
TSharedPtr<FUICommandInfo> Share;
|
|
|
|
// connectivity commands
|
|
TSharedPtr<FUICommandInfo> Connect;
|
|
TSharedPtr<FUICommandInfo> Disconnect;
|
|
|
|
// remote control commands
|
|
TSharedPtr<FUICommandInfo> PowerOff;
|
|
TSharedPtr<FUICommandInfo> PowerOffForce;
|
|
TSharedPtr<FUICommandInfo> PowerOn;
|
|
TSharedPtr<FUICommandInfo> Reboot;
|
|
};
|
|
|
|
#undef LOCTEXT_NAMESPACE |