Files
UnrealEngineUWP/Engine/Source/Editor/TranslationEditor/Public/TranslationEditorModule.h
ryan durand 627baf970a Updating copyright for Engine Editor.
#rnx
#rb none


#ROBOMERGE-SOURCE: CL 10869241 via CL 10869527 via CL 10869904
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870586 by ryan durand in Main branch]
2019-12-26 15:33:43 -05:00

61 lines
2.5 KiB
C++

// Copyright 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;
};