Files
UnrealEngineUWP/Engine/Source/Editor/TranslationEditor/Public/TranslationEditorModule.h

44 lines
1.8 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleInterface.h"
#include "Toolkits/IToolkit.h" // For EAssetEditorMode
#include "Toolkits/AssetEditorToolkit.h" // For FExtensibilityManager
//#include "ITranslationEditor.h"
class FTranslationEditor;
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 ProjectName Name of the project to translate
* @param TranslationTargetLanguage Language to translate to
* @param LocalizationTargetGuid Unique ID for this Localization Target
* @param OutLoadedSuccessfully Whether or not the translation editor was able to load successfully from the .manifest and .archive files
*
* @return Interface to the new translation editor
*/
virtual TSharedRef<FTranslationEditor> CreateTranslationEditor(const FString& ManifestFile, const FString& ArchiveFile, const FGuid& LocalizationTargetGuid, 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;
};