本文整理汇总了C++中FSpawnTabArgs::GetOwnerWindow方法的典型用法代码示例。如果您正苦于以下问题:C++ FSpawnTabArgs::GetOwnerWindow方法的具体用法?C++ FSpawnTabArgs::GetOwnerWindow怎么用?C++ FSpawnTabArgs::GetOwnerWindow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSpawnTabArgs
的用法示例。
在下文中一共展示了FSpawnTabArgs::GetOwnerWindow方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SNew
TSharedRef<SDockTab> SpawnWebBrowserTab(const FSpawnTabArgs& Args)
{
return SNew(SDockTab)
.Label(LOCTEXT("WebBrowserTab", "Web Browser"))
.ToolTipText(LOCTEXT("WebBrowserTabToolTip", "Switches to the Web Browser to test its features."))
.TabRole(ETabRole::NomadTab)
[
SNew(SWebBrowser)
.ParentWindow(Args.GetOwnerWindow())
];
}
示例2: SNew
TSharedRef<SDockTab> FLogVisualizerModule::SpawnLogVisualizerTab(const FSpawnTabArgs& SpawnTabArgs)
{
const TSharedRef<SDockTab> MajorTab = SNew(SDockTab)
.TabRole(ETabRole::NomadTab);
TSharedPtr<SWidget> TabContent;
TabContent = SNew(SVisualLogger, MajorTab, SpawnTabArgs.GetOwnerWindow());
MajorTab->SetContent(TabContent.ToSharedRef());
return MajorTab;
}
示例3: SpawnProjectLauncherTab
/**
* Creates a new session launcher tab.
*
* @param SpawnTabArgs The arguments for the tab to spawn.
* @return The spawned tab.
*/
TSharedRef<SDockTab> SpawnProjectLauncherTab(const FSpawnTabArgs& SpawnTabArgs)
{
const TSharedRef<SDockTab> DockTab = SNew(SDockTab)
.Icon(FEditorStyle::GetBrush("Launcher.TabIcon"))
.TabRole(ETabRole::NomadTab);
ILauncherServicesModule& ProjectLauncherServicesModule = FModuleManager::LoadModuleChecked<ILauncherServicesModule>("LauncherServices");
ITargetDeviceServicesModule& TargetDeviceServicesModule = FModuleManager::LoadModuleChecked<ITargetDeviceServicesModule>("TargetDeviceServices");
FProjectLauncherModelRef Model = MakeShareable(new FProjectLauncherModel(
TargetDeviceServicesModule.GetDeviceProxyManager(),
ProjectLauncherServicesModule.CreateLauncher(),
ProjectLauncherServicesModule.GetProfileManager()
));
DockTab->SetContent(SNew(SProjectLauncher, DockTab, SpawnTabArgs.GetOwnerWindow(), Model));
return DockTab;
}
示例4: SpawnMessagingDebuggerTab
/**
* Creates a new messaging debugger tab.
*
* @param SpawnTabArgs - The arguments for the tab to spawn.
*
* @return The spawned tab.
*/
TSharedRef<SDockTab> SpawnMessagingDebuggerTab( const FSpawnTabArgs& SpawnTabArgs )
{
const TSharedRef<SDockTab> MajorTab = SNew(SDockTab)
.TabRole(ETabRole::MajorTab);
TSharedPtr<SWidget> TabContent;
IMessageBusPtr MessageBus = IMessagingModule::Get().GetDefaultBus();
if (MessageBus.IsValid())
{
TabContent = SNew(SMessagingDebugger, MajorTab, SpawnTabArgs.GetOwnerWindow(), MessageBus->GetTracer(), Style.ToSharedRef());
}
else
{
TabContent = SNew(STextBlock)
.Text(LOCTEXT("MessagingSystemUnavailableError", "Sorry, the Messaging system is not available right now"));
}
MajorTab->SetContent(TabContent.ToSharedRef());
return MajorTab;
}