You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "STableRow.h"
|
|
#include "IPropertyUtilities.h"
|
|
#include "PropertyHandle.h"
|
|
#include "LocalizationTargetTypes.h"
|
|
|
|
class SLocalizationTargetEditorCultureRow : public SMultiColumnTableRow<FCulturePtr>
|
|
{
|
|
public:
|
|
void Construct(const FTableRowArgs& InArgs, const TSharedRef<STableViewBase>& OwnerTableView, const TSharedRef<IPropertyUtilities>& InPropertyUtilities, const TSharedRef<IPropertyHandle>& InTargetSettingsPropertyHandle, const int32 InCultureIndex);
|
|
TSharedRef<SWidget> GenerateWidgetForColumn( const FName& ColumnName ) override;
|
|
|
|
private:
|
|
ULocalizationTarget* GetTarget() const;
|
|
FLocalizationTargetSettings* GetTargetSettings() const;
|
|
FCultureStatistics* GetCultureStatistics() const;
|
|
FCulturePtr GetCulture() const;
|
|
bool IsNativeCultureForTarget() const;
|
|
|
|
void OnNativeCultureCheckStateChanged(const ECheckBoxState CheckState);
|
|
uint32 GetWordCount() const;
|
|
uint32 GetNativeWordCount() const;
|
|
|
|
FText GetCultureDisplayName() const;
|
|
FText GetCultureName() const;
|
|
|
|
FText GetWordCountText() const;
|
|
TOptional<float> GetProgressPercentage() const;
|
|
|
|
void UpdateTargetFromReports();
|
|
|
|
FReply Edit();
|
|
FReply Import();
|
|
FReply Export();
|
|
FReply Compile();
|
|
bool CanDelete() const;
|
|
FReply EnqueueDeletion();
|
|
void Delete();
|
|
|
|
private:
|
|
TSharedPtr<IPropertyUtilities> PropertyUtilities;
|
|
TSharedPtr<IPropertyHandle> TargetSettingsPropertyHandle;
|
|
int32 CultureIndex;
|
|
}; |