本文整理汇总了C++中FToolBarBuilder::AddWidget方法的典型用法代码示例。如果您正苦于以下问题:C++ FToolBarBuilder::AddWidget方法的具体用法?C++ FToolBarBuilder::AddWidget怎么用?C++ FToolBarBuilder::AddWidget使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FToolBarBuilder
的用法示例。
在下文中一共展示了FToolBarBuilder::AddWidget方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: FillToolbar
static void FillToolbar(FToolBarBuilder& ToolbarBuilder, TSharedRef<SWidget> InputSnapWidget, TSharedRef<SWidget> OutputSnapWidget)
{
ToolbarBuilder.BeginSection("Curve");
{
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().ZoomToFitHorizontal);
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().ZoomToFitVertical);
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().ZoomToFitAll);
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().ZoomToFitSelected);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Interpolation");
{
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().InterpolationCubicAuto);
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().InterpolationCubicUser);
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().InterpolationCubicBreak);
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().InterpolationLinear);
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().InterpolationConstant);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Snap");
{
ToolbarBuilder.AddToolBarButton(FRichCurveEditorCommands::Get().ToggleSnapping);
ToolbarBuilder.AddWidget(InputSnapWidget);
ToolbarBuilder.AddWidget(OutputSnapWidget);
}
ToolbarBuilder.EndSection();
}
示例2: AddEpicSurveyNotifier
void FEpicSurvey::AddEpicSurveyNotifier( FToolBarBuilder& ToolBarBuilder )
{
if ( ActiveSurvey.IsValid() )
{
ToolBarBuilder.AddWidget( SNew( SSurveyNotification, SharedThis(this), ActiveSurvey.ToSharedRef() ) );
}
}
示例3: FillToolbar
static void FillToolbar(FToolBarBuilder& ToolbarBuilder, TSharedRef<SWidget> CompileBox)
{
ToolbarBuilder.BeginSection("Compile");
{
ToolbarBuilder.AddWidget(CompileBox);
}
ToolbarBuilder.EndSection();
}
示例4: FillToolbar
static void FillToolbar(FToolBarBuilder& ToolbarBuilder, TSharedRef<SWidget> AddEmitterBox)
{
ToolbarBuilder.BeginSection("AddEmitter");
{
ToolbarBuilder.AddWidget(AddEmitterBox);
}
ToolbarBuilder.EndSection();
}
示例5: AddToolbarButtons
static void AddToolbarButtons( FToolBarBuilder& ToolbarBuilder )
{
ToolbarBuilder.AddToolBarButton(
FTranslationEditorCommands::Get().SaveTranslations, "SaveTranslations", TAttribute<FText>(), TAttribute<FText>(), FSlateIcon(FEditorStyle::GetStyleSetName(), "AssetEditor.SaveAsset"));
ToolbarBuilder.AddToolBarButton(
FTranslationEditorCommands::Get().PreviewAllTranslationsInEditor, "PreviewTranslationsInEditor", TAttribute<FText>(), TAttribute<FText>(), FSlateIcon(FEditorStyle::GetStyleSetName(), "TranslationEditor.PreviewInEditor"));
ToolbarBuilder.AddToolBarButton(
FTranslationEditorCommands::Get().ImportLatestFromLocalizationService, "ImportLatestFromLocalizationService", TAttribute<FText>(), TAttribute<FText>(), FSlateIcon(FEditorStyle::GetStyleSetName(), "TranslationEditor.ImportLatestFromLocalizationService"));
ToolbarBuilder.AddToolBarButton(
FTranslationEditorCommands::Get().ExportToPortableObjectFormat, "ExportToPortableObjectFormat", TAttribute<FText>(), TAttribute<FText>(), FSlateIcon(FEditorStyle::GetStyleSetName(), "TranslationEditor.Export"));
ToolbarBuilder.AddToolBarButton(
FTranslationEditorCommands::Get().ImportFromPortableObjectFormat, "ImportFromPortableObjectFormat", TAttribute<FText>(), TAttribute<FText>(), FSlateIcon(FEditorStyle::GetStyleSetName(), "TranslationEditor.Import"));
ToolbarBuilder.AddToolBarButton(
FTranslationEditorCommands::Get().OpenSearchTab, "OpenSearchTab", TAttribute<FText>(), TAttribute<FText>(), FSlateIcon(FEditorStyle::GetStyleSetName(), "TranslationEditor.Search"));
if (GetDefault<UEditorExperimentalSettings>()->bEnableTranslationPicker)
{
ToolbarBuilder.AddWidget(SNew(STranslationWidgetPicker));
}
}
示例6: FillToolbar
static void FillToolbar(FToolBarBuilder& ToolbarBuilder, TSharedRef<SWidget> InterpolationBox, TSharedRef<SWidget> SpeedBox, TSharedRef<SWidget> SnapSettingBox)
{
ToolbarBuilder.BeginSection("CurveMode");
{
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().AddKey);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Interpolation");
{
ToolbarBuilder.AddWidget(InterpolationBox);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Play");
{
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().Play);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().PlayLoop);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().Stop);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().PlayReverse);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Camera");
{
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().CreateCameraActor);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Speed");
{
ToolbarBuilder.AddWidget(SpeedBox);
}
ToolbarBuilder.EndSection();
//ToolbarBuilder.BeginSection("History");
//{
// ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().Undo);
// ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().Redo);
//}
//ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("SnapSetting");
{
ToolbarBuilder.AddWidget(SnapSettingBox);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Curve");
{
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().ToggleCurveEditor);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Snap");
{
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().ToggleSnap);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().ToggleSnapTimeToFrames);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().FixedTimeStepPlayback);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("View");
{
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().FitSequence);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().FitViewToSelected);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().FitLoop);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().FitLoopSequence);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().ViewEndofTrack);
}
ToolbarBuilder.EndSection();
ToolbarBuilder.BeginSection("Record");
{
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().LaunchRecordWindow);
ToolbarBuilder.AddToolBarButton(FMatineeCommands::Get().CreateMovie);
}
ToolbarBuilder.EndSection();
}