Files
UnrealEngineUWP/Engine/Source/Editor/TranslationEditor/Private/TranslationPickerWidget.h
bryan sefcik 8cc129f2b6 IWYU Pass 1 - Engine/Source/Editor/...
#jira
#preflight 6306736ac85b7fef22be7751

[CL 21558583 by bryan sefcik in ue5-main branch]
2022-08-24 22:45:13 -04:00

55 lines
1.2 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "HAL/Platform.h"
#include "Templates/SharedPointer.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
#define LOCTEXT_NAMESPACE "TranslationPicker"
class STranslationPickerFloatingWindow;
class SWindow;
enum class ECheckBoxState : uint8;
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