You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Can now start the translation picker from the main Window menu in the editor - Disable "save" button for text that we can't find the manifest/archive data for - Hover window now presents the information about an FText in a more readable format - Fixed issue where the same FText info was not displayed twice in certain cases [CL 2452676 by Joe Conley in Main branch]
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
#pragma once
|
|
|
|
#include "SDocumentationToolTip.h"
|
|
#include "TranslationPickerFloatingWindow.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "TranslationPicker"
|
|
|
|
class TranslationPickerManager
|
|
{
|
|
public:
|
|
static TSharedPtr<SWindow> PickerWindow;
|
|
static TSharedPtr<STranslationPickerFloatingWindow> PickerWindowWidget;
|
|
|
|
static bool IsPickerWindowOpen() { return PickerWindow.IsValid(); }
|
|
|
|
static bool OpenPickerWindow();
|
|
|
|
static void ClosePickerWindow();
|
|
};
|
|
|
|
/** Widget used to launch a 'picking' session */
|
|
class STranslationWidgetPicker : public SCompoundWidget
|
|
{
|
|
public:
|
|
SLATE_BEGIN_ARGS(STranslationWidgetPicker) {}
|
|
|
|
SLATE_END_ARGS()
|
|
|
|
void Construct(const FArguments& InArgs);
|
|
|
|
private:
|
|
|
|
/**
|
|
* Called by slate to determine if this button should appear checked
|
|
*
|
|
* @return ECheckBoxState::Checked if it should be checked, ECheckBoxState::Unchecked if not.
|
|
*/
|
|
ECheckBoxState IsChecked() const;
|
|
|
|
/**
|
|
* Called by Slate when this tool bar check box button is toggled
|
|
*/
|
|
void OnCheckStateChanged(const ECheckBoxState NewCheckedState);
|
|
};
|
|
|
|
#undef LOCTEXT_NAMESPACE |