Skip to content

Commit c8b3d84

Browse files
committed
Updates for 4.15.
1 parent fb2bc61 commit c8b3d84

18 files changed

+63
-52
lines changed

Source/TextAsset/Private/TextAssetModule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
22

3-
#include "TextAssetPCH.h"
3+
#include "CoreMinimal.h"
44
#include "ModuleInterface.h"
5+
#include "ModuleManager.h"
56
#include "TextAsset.h"
67

78

Source/TextAsset/Private/TextAssetPCH.h

Lines changed: 0 additions & 6 deletions
This file was deleted.

Source/TextAsset/Public/TextAsset.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
#pragma once
44

5+
#include "CoreMinimal.h"
6+
#include "UObject/Object.h"
7+
#include "UObject/ObjectMacros.h"
58
#include "TextAsset.generated.h"
69

710

Source/TextAssetEditor/Private/AssetTools/TextAssetActions.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// Copyright 2015 Headcrash Industries LLC. All Rights Reserved.
22

3-
#include "TextAssetEditorPrivatePCH.h"
43
#include "TextAssetActions.h"
4+
5+
#include "TextAsset.h"
56
#include "TextAssetEditorToolkit.h"
7+
#include "Styling/SlateStyle.h"
68

79

810
#define LOCTEXT_NAMESPACE "AssetTypeActions"
@@ -91,7 +93,7 @@ bool FTextAssetActions::HasActions(const TArray<UObject*>& InObjects) const
9193
}
9294

9395

94-
void FTextAssetActions::OpenAssetEditor(const TArray<UObject*>& InObjects, TSharedPtr<class IToolkitHost> EditWithinLevelEditor)
96+
void FTextAssetActions::OpenAssetEditor(const TArray<UObject*>& InObjects, TSharedPtr<IToolkitHost> EditWithinLevelEditor)
9597
{
9698
EToolkitMode::Type Mode = EditWithinLevelEditor.IsValid()
9799
? EToolkitMode::WorldCentric

Source/TextAssetEditor/Private/AssetTools/TextAssetActions.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
#pragma once
44

5+
#include "CoreMinimal.h"
56
#include "AssetTypeActions_Base.h"
67

8+
class ISlateStyle;
9+
710

811
/**
912
* Implements an action for UTextAsset assets.
@@ -31,7 +34,7 @@ class FTextAssetActions
3134
virtual UClass* GetSupportedClass() const override;
3235
virtual FColor GetTypeColor() const override;
3336
virtual bool HasActions(const TArray<UObject*>& InObjects) const override;
34-
virtual void OpenAssetEditor(const TArray<UObject*>& InObjects, TSharedPtr<class IToolkitHost> EditWithinLevelEditor = TSharedPtr<IToolkitHost>()) override;
37+
virtual void OpenAssetEditor(const TArray<UObject*>& InObjects, TSharedPtr<IToolkitHost> EditWithinLevelEditor = TSharedPtr<IToolkitHost>()) override;
3538

3639
private:
3740

Source/TextAssetEditor/Private/Factories/TextAssetFactory.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// Copyright 2015 Headcrash Industries LLC. All Rights Reserved.
22

3-
#include "TextAssetEditorPrivatePCH.h"
43
#include "TextAssetFactory.h"
54

5+
#include "TextAsset.h"
6+
#include "Misc/FileHelper.h"
7+
68

79
/* UTextAssetFactory structors
810
*****************************************************************************/

Source/TextAssetEditor/Private/Factories/TextAssetFactory.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#pragma once
44

55
#include "Factories/Factory.h"
6+
#include "UObject/ObjectMacros.h"
7+
68
#include "TextAssetFactory.generated.h"
79

810

@@ -17,7 +19,7 @@ class UTextAssetFactory
1719

1820
public:
1921

20-
// UFactory Interface
22+
//~ UFactory Interface
2123

2224
virtual UObject* FactoryCreateBinary(UClass* Class, UObject* InParent, FName Name, EObjectFlags Flags, UObject* Context, const TCHAR* Type, const uint8*& Buffer, const uint8* BufferEnd, FFeedbackContext* Warn) override;
2325
};

Source/TextAssetEditor/Private/Factories/TextAssetFactoryNew.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2015 Headcrash Industries LLC. All Rights Reserved.
22

3-
#include "TextAssetEditorPrivatePCH.h"
43
#include "TextAssetFactoryNew.h"
4+
#include "TextAsset.h"
55

66

77
/* UTextAssetFactoryNew structors

Source/TextAssetEditor/Private/Factories/TextAssetFactoryNew.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#pragma once
44

55
#include "Factories/Factory.h"
6+
#include "UObject/ObjectMacros.h"
7+
68
#include "TextAssetFactoryNew.generated.h"
79

810

@@ -17,7 +19,7 @@ class UTextAssetFactoryNew
1719

1820
public:
1921

20-
// UFactory Interface
22+
//~ UFactory Interface
2123

2224
virtual UObject* FactoryCreateNew(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, UObject* Context, FFeedbackContext* Warn) override;
2325
virtual bool ShouldShowInNewMenu() const override;

Source/TextAssetEditor/Private/Styles/TextAssetEditorStyle.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
#pragma once
44

5+
#include "CoreMinimal.h"
56
#include "IPluginManager.h"
7+
#include "Brushes/SlateImageBrush.h"
8+
#include "Styling/SlateStyle.h"
9+
#include "Styling/SlateStyleRegistry.h"
610

711
#define IMAGE_BRUSH(RelativePath, ...) FSlateImageBrush(RootToContentDir(RelativePath, TEXT(".png")), __VA_ARGS__)
812
#define BOX_BRUSH(RelativePath, ...) FSlateBoxBrush(RootToContentDir(RelativePath, TEXT(".png")), __VA_ARGS__)

0 commit comments

Comments
 (0)