Files
UnrealEngineUWP/Engine/Source/Editor/TranslationEditor/Public/TranslationEditorModule.h
Ryan Vance 7c51ff94af Merging //UE4/Dev-Main to Dev-VR (//UE4/Dev-VR)
CL 1 of 8
#rb integration

[CL 4748712 by Ryan Vance in Dev-VR branch]
2019-01-17 18:54:05 -05:00

61 lines
2.5 KiB
C++

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Toolkits/AssetEditorToolkit.h"
#include "Modules/ModuleInterface.h"
class FTranslationEditor;
class ULocalizationTarget;
//#include "ITranslationEditor.h"
class FTranslationEditor;
class ULocalizationTarget;
class FTranslationEditorModule : public IModuleInterface,
public IHasMenuExtensibility
{
public:
// IModuleInterface
virtual void StartupModule() override;
virtual void ShutdownModule() override;
/**
* Creates an instance of translation editor object. Only virtual so that it can be called across the DLL boundary.
*
* @param ManifestFile The path to the manifest file to be used for contexts.
* @param NativeArchiveFile The path to the archive file for the native language.
* @param ArchiveFileToEdit The path to the archive file to be viewed and edited.
* @param OutLoadedSuccessfully Whether or not the translation editor was able to load successfully from the .manifest and .archive files
*
* @return The new instance of the translation editor
*/
virtual TSharedRef<FTranslationEditor> CreateTranslationEditor(const FString& ManifestFile, const FString& NativeArchiveFile, const FString& ArchiveFileToEdit, bool& OutLoadedSuccessfully);
/**
* Creates an instance of translation editor object. Only virtual so that it can be called across the DLL boundary.
*
* @param LocalizationTarget The localization target whose data is to be used and edited.
* @param CultureToEdit The name of a supported culture of the localization target, whose archives should be edited.
* @param OutLoadedSuccessfully Whether or not the translation editor was able to load successfully from the .manifest and .archive files
*
* @return The new instance of the translation editor
*/
virtual TSharedRef<FTranslationEditor> CreateTranslationEditor(ULocalizationTarget* const LocalizationTarget, const FString& CultureToEdit, bool& OutLoadedSuccessfully);
/** Gets the extensibility managers for outside entities to extend translation editor's menus and toolbars */
virtual TSharedPtr<FExtensibilityManager> GetMenuExtensibilityManager() override { return MenuExtensibilityManager; }
virtual TSharedPtr<FExtensibilityManager> GetToolbarExtensibilityManager() { return ToolbarExtensibilityManager; }
/** Translation Editor app identifier string */
static const FName TranslationEditorAppIdentifier;
private:
TSharedPtr<FExtensibilityManager> MenuExtensibilityManager;
TSharedPtr<FExtensibilityManager> ToolbarExtensibilityManager;
};