Files
UnrealEngineUWP/Engine/Source/Editor/TranslationEditor/Private/TranslationPickerWidget.h
Joe Conley ef4922e537 Translation Picker improvements:
- 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]
2015-02-19 20:53:05 -05:00

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