You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Also deleting Localization Dashboard's ILocalizationServiceProvider, as this class now exists in the LocalizationService module. [CL 2564754 by Joe Conley in Main branch]
65 lines
2.3 KiB
C++
65 lines
2.3 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "IDetailCustomization.h"
|
|
#include "ILocalizationServiceProvider.h"
|
|
|
|
class ULocalizationTarget;
|
|
class IPropertyHandle;
|
|
class ULocalizationTargetSet;
|
|
class IDetailCategoryBuilder;
|
|
|
|
struct FLocalizationServiceProviderWrapper
|
|
{
|
|
FLocalizationServiceProviderWrapper() : Provider(nullptr) {}
|
|
FLocalizationServiceProviderWrapper(ILocalizationServiceProvider* const InProvider) : Provider(InProvider) {}
|
|
|
|
ILocalizationServiceProvider* Provider;
|
|
};
|
|
|
|
class FLocalizationTargetSetDetailCustomization : public IDetailCustomization
|
|
{
|
|
public:
|
|
FLocalizationTargetSetDetailCustomization();
|
|
void CustomizeDetails(IDetailLayoutBuilder& DetailBuilder) override;
|
|
|
|
private:
|
|
void BuildTargetsList();
|
|
void RebuildTargetsList();
|
|
|
|
FText GetCurrentServiceProviderDisplayName() const;
|
|
TSharedRef<SWidget> ServiceProviderComboBox_OnGenerateWidget(TSharedPtr<FLocalizationServiceProviderWrapper> LSPWrapper) const;
|
|
void ServiceProviderComboBox_OnSelectionChanged(TSharedPtr<FLocalizationServiceProviderWrapper> LSPWrapper, ESelectInfo::Type SelectInfo);
|
|
|
|
bool CanGatherAllTargets() const;
|
|
void GatherAllTargets();
|
|
bool CanImportAllTargets() const;
|
|
void ImportAllTargets();
|
|
bool CanExportAllTargets() const;
|
|
void ExportAllTargets();
|
|
bool CanCountWordsForAllTargets() const;
|
|
void CountWordsForAllTargets();
|
|
bool CanCompileAllTargets() const;
|
|
void CompileAllTargets();
|
|
void UpdateTargetFromReports(ULocalizationTarget* const LocalizationTarget);
|
|
|
|
TSharedRef<ITableRow> OnGenerateRow(TSharedPtr<IPropertyHandle> TargetObjectPropertyHandle, const TSharedRef<STableViewBase>& Table);
|
|
FReply OnNewTargetButtonClicked();
|
|
|
|
private:
|
|
IDetailLayoutBuilder* DetailLayoutBuilder;
|
|
|
|
TWeakObjectPtr<ULocalizationTargetSet> TargetSet;
|
|
|
|
IDetailCategoryBuilder* ServiceProviderCategoryBuilder;
|
|
TArray< TSharedPtr<FLocalizationServiceProviderWrapper> > Providers;
|
|
|
|
TSharedPtr<IPropertyHandle> TargetObjectsPropertyHandle;
|
|
FSimpleDelegate TargetsArrayPropertyHandle_OnNumElementsChanged;
|
|
TArray< TSharedPtr<IPropertyHandle> > TargetsList;
|
|
TSharedPtr< SListView< TSharedPtr<IPropertyHandle> > > TargetsListView;
|
|
|
|
/* If set, the entry at the index specified needs to be initialized as soon as possible. */
|
|
int32 NewEntryIndexToBeInitialized;
|
|
}; |