Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
lucoiso committed Aug 12, 2023
1 parent 35cf593 commit eabe6a7
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 204 deletions.
8 changes: 4 additions & 4 deletions Source/HttpGPTEditorModule/Private/HttpGPTEditorModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ TSharedRef<SDockTab> FHttpGPTEditorModule::OnSpawnTab(const FSpawnTabArgs& Spawn
if (OutContent.IsValid())
{
return SNew(SDockTab)
.TabRole(NomadTab)
[
OutContent.ToSharedRef()
];
.TabRole(NomadTab)
[
OutContent.ToSharedRef()
];
}

return SNew(SDockTab);
Expand Down
158 changes: 79 additions & 79 deletions Source/HttpGPTEditorModule/Private/SHttpGPTChatView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,37 +123,37 @@ void SHttpGPTChatItem::Construct(const FArguments& InArgs)
const ISlateStyle& AppStyle = FAppStyle::Get();

ChildSlot
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.Padding(SlotPadding)
[
SNew(SVerticalBox)
SNew(SBorder)
.BorderImage(AppStyle.GetBrush("Menu.Background"))
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.Padding(SlotPadding)
.Padding(Slot_Padding)
.AutoHeight()
[
SAssignNew(Role, STextBlock)
.Font(FCoreStyle::GetDefaultFontStyle("Bold", 10))
.Text(RoleText)
]
+ SVerticalBox::Slot()
.Padding(FMargin(Slot_Padding * 4, Slot_Padding, Slot_Padding, Slot_Padding))
.FillHeight(1.f)
[
SNew(SBorder)
.BorderImage(AppStyle.GetBrush("Menu.Background"))
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.Padding(Slot_Padding)
.AutoHeight()
[
SAssignNew(Role, STextBlock)
.Font(FCoreStyle::GetDefaultFontStyle("Bold", 10))
.Text(RoleText)
]
+ SVerticalBox::Slot()
.Padding(FMargin(Slot_Padding * 4, Slot_Padding, Slot_Padding, Slot_Padding))
.FillHeight(1.f)
[
SAssignNew(Message, SMultiLineEditableText)
.AllowMultiLine(true)
.AutoWrapText(true)
.IsReadOnly(true)
.AllowContextMenu(true)
.Text(FText::FromString(InArgs._InputText))
]
]
SAssignNew(Message, SMultiLineEditableText)
.AllowMultiLine(true)
.AutoWrapText(true)
.IsReadOnly(true)
.AllowContextMenu(true)
.Text(FText::FromString(InArgs._InputText))
]
];
]
]
];
}

FString SHttpGPTChatItem::GetRoleText() const
Expand Down Expand Up @@ -183,61 +183,61 @@ void SHttpGPTChatView::Construct([[maybe_unused]] const FArguments&)
InitializeModelsOptions();

ChildSlot
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.Padding(Slot_Padding)
.FillHeight(1.f)
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.Padding(Slot_Padding)
.FillHeight(1.f)
SNew(SBorder)
.BorderImage(AppStyle.GetBrush("NoBorder"))
[
SAssignNew(ChatScrollBox, SScrollBox)
+ SScrollBox::Slot()
[
SNew(SBorder)
.BorderImage(AppStyle.GetBrush("NoBorder"))
[
SAssignNew(ChatScrollBox, SScrollBox)
+ SScrollBox::Slot()
[
SAssignNew(ChatBox, SVerticalBox)
]
]
SAssignNew(ChatBox, SVerticalBox)
]
+ SVerticalBox::Slot()
.Padding(Slot_Padding)
.AutoHeight()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.FillWidth(1.f)
[
SAssignNew(InputTextBox, SEditableTextBox)
]
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.AutoWidth()
[
SNew(SButton)
.Text(FText::FromString("Send"))
.ToolTipText(FText::FromString("Send Message"))
.OnClicked(this, &SHttpGPTChatView::HandleSendMessageButton)
.IsEnabled(this, &SHttpGPTChatView::IsSendMessageEnabled)
]
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.AutoWidth()
[
ModelsComboBox.ToSharedRef()
]
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.AutoWidth()
[
SNew(SButton)
.Text(FText::FromString("Clear"))
.ToolTipText(FText::FromString("Clear Chat History"))
.OnClicked(this, &SHttpGPTChatView::HandleClearChatButton)
.IsEnabled(this, &SHttpGPTChatView::IsClearChatEnabled)
]
]
];
]
]
+ SVerticalBox::Slot()
.Padding(Slot_Padding)
.AutoHeight()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.FillWidth(1.f)
[
SAssignNew(InputTextBox, SEditableTextBox)
]
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.AutoWidth()
[
SNew(SButton)
.Text(FText::FromString("Send"))
.ToolTipText(FText::FromString("Send Message"))
.OnClicked(this, &SHttpGPTChatView::HandleSendMessageButton)
.IsEnabled(this, &SHttpGPTChatView::IsSendMessageEnabled)
]
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.AutoWidth()
[
ModelsComboBox.ToSharedRef()
]
+ SHorizontalBox::Slot()
.Padding(Slot_Padding)
.AutoWidth()
[
SNew(SButton)
.Text(FText::FromString("Clear"))
.ToolTipText(FText::FromString("Clear Chat History"))
.OnClicked(this, &SHttpGPTChatView::HandleClearChatButton)
.IsEnabled(this, &SHttpGPTChatView::IsClearChatEnabled)
]
]
];
}

FReply SHttpGPTChatView::HandleSendMessageButton()
Expand Down
Loading

0 comments on commit eabe6a7

Please sign in to comment.