Files
UnrealEngineUWP/Engine/Source/Developer/OutputLog/Public/OutputLogModule.h
Matt Kuhlenschmidt 9573ab2bf0 Status bar updates
- Hooked up console edit box
- Hooked up active tool messages to modes (the mode specific messages need a lot of improvement
- Added status bars to standalone asset editors

#rb louise.rasmussen

[CL 13264057 by Matt Kuhlenschmidt in ue5-main branch]
2020-05-11 09:39:04 -04:00

57 lines
1.6 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Widgets/SWidget.h"
#include "Modules/ModuleInterface.h"
#include "Widgets/SWindow.h"
#include "Features/IModularFeatures.h"
#include "HAL/IConsoleManager.h"
class SMultiLineEditableTextBox;
/** Style of the debug console */
namespace EDebugConsoleStyle
{
enum Type
{
/** Shows the debug console input line with tab completion only */
Compact,
/** Shows a scrollable log window with the input line on the bottom */
WithLog,
};
};
struct FDebugConsoleDelegates
{
FSimpleDelegate OnFocusLost;
FSimpleDelegate OnConsoleCommandExecuted;
FSimpleDelegate OnCloseConsole;
};
class FOutputLogModule : public IModuleInterface
{
public:
virtual void StartupModule();
virtual void ShutdownModule();
/** Generates a console input box widget. Remember, this widget will become invalid if the
output log DLL is unloaded on the fly. */
virtual TSharedRef<SWidget> MakeConsoleInputBox(TSharedPtr<SMultiLineEditableTextBox>& OutExposedEditableTextBox, const FSimpleDelegate& OnCloseConsole) const;
/** Opens a debug console in the specified window, if not already open */
virtual void ToggleDebugConsoleForWindow(const TSharedRef<SWindow>& Window, const EDebugConsoleStyle::Type InStyle, const FDebugConsoleDelegates& DebugConsoleDelegates);
/** Closes the debug console for the specified window */
virtual void CloseDebugConsole();
virtual void ClearOnPIE(const bool bIsSimulating);
private:
/** Weak pointer to a debug console that's currently open, if any */
TWeakPtr< SWidget > DebugConsole;
};