-
Notifications
You must be signed in to change notification settings - Fork 765
Expand file tree
/
Copy pathPythonConsoleModule.h
More file actions
41 lines (31 loc) · 989 Bytes
/
PythonConsoleModule.h
File metadata and controls
41 lines (31 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Copyright 1998-2018 20Tab S.r.l. All Rights Reserved.
#pragma once
#include "Runtime/Slate/Public/SlateBasics.h"
/** Style of the debug console */
namespace EPythonConsoleStyle
{
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 FPythonConsoleDelegates
{
FSimpleDelegate OnFocusLost;
FSimpleDelegate OnConsoleCommandExecuted;
};
class FPythonConsoleModule : 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< SEditableTextBox >& OutExposedEditableTextBox ) const;
private:
/** Weak pointer to a debug console that's currently open, if any */
TWeakPtr< SWidget > PythonConsole;
};