2015-03-05 00:11:00 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2015-01-27 16:31:40 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "STableRow.h"
|
|
|
|
|
#include "IPropertyUtilities.h"
|
|
|
|
|
#include "PropertyHandle.h"
|
2015-03-28 19:17:15 -04:00
|
|
|
#include "LocalizationTargetTypes.h"
|
|
|
|
|
#include "LocalizationTargetTypes.h"
|
2015-01-27 16:31:40 -05:00
|
|
|
#include "SDockTab.h"
|
|
|
|
|
|
|
|
|
|
class SLocalizationDashboardTargetRow : public SMultiColumnTableRow< TSharedPtr<IPropertyHandle> >
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
void Construct(const FTableRowArgs& InArgs, const TSharedRef<STableViewBase>& OwnerTableView, const TSharedRef<IPropertyUtilities>& InPropertyUtilities, const TSharedRef<IPropertyHandle>& InTargetObjectPropertyHandle);
|
|
|
|
|
TSharedRef<SWidget> GenerateWidgetForColumn( const FName& ColumnName ) override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
ULocalizationTarget* GetTarget() const;
|
|
|
|
|
FLocalizationTargetSettings* GetTargetSettings() const;
|
|
|
|
|
|
|
|
|
|
FText GetTargetName() const;
|
|
|
|
|
void OnNavigate();
|
|
|
|
|
|
|
|
|
|
FText GetCulturesText() const;
|
|
|
|
|
|
|
|
|
|
uint32 GetWordCount() const;
|
|
|
|
|
uint32 GetNativeWordCount() const;
|
|
|
|
|
FText GetWordCountText() const;
|
|
|
|
|
|
|
|
|
|
void UpdateTargetFromReports();
|
|
|
|
|
|
|
|
|
|
FReply Gather();
|
|
|
|
|
FReply ImportAll();
|
|
|
|
|
FReply ExportAll();
|
2015-05-21 22:15:36 -04:00
|
|
|
FReply CountWords();
|
|
|
|
|
FReply CompileAll();
|
2015-01-30 17:29:25 -05:00
|
|
|
|
2015-01-27 16:31:40 -05:00
|
|
|
FReply EnqueueDeletion();
|
|
|
|
|
void Delete();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
TSharedPtr<IPropertyUtilities> PropertyUtilities;
|
|
|
|
|
TSharedPtr<IPropertyHandle> TargetObjectPropertyHandle;
|
2015-01-29 17:59:14 -05:00
|
|
|
TWeakPtr<SDockTab> TargetEditorDockTab;
|
2015-01-27 16:31:40 -05:00
|
|
|
};
|