You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
UE-9022 - IWCE: Had to restart editor after toggling Blueprintable Components option for anything to work [CL 2446904 by Jamie Dale in Main branch]
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "ModuleInterface.h"
|
|
|
|
|
|
// forward declarations
|
|
class ISettingsContainer;
|
|
class ISettingsEditorModel;
|
|
class SWidget;
|
|
|
|
|
|
/**
|
|
* Interface for settings editor modules.
|
|
*/
|
|
class ISettingsEditorModule
|
|
: public IModuleInterface
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Creates a settings editor widget.
|
|
*
|
|
* @param Model The view model.
|
|
* @return The new widget.
|
|
* @see CreateModel
|
|
*/
|
|
virtual TSharedRef<SWidget> CreateEditor( const TSharedRef<ISettingsEditorModel>& Model ) = 0;
|
|
|
|
/**
|
|
* Creates a view model for the settings editor widget.
|
|
*
|
|
* @param SettingsContainer The settings container.
|
|
* @return The controller.
|
|
* @see CreateEditor
|
|
*/
|
|
virtual TSharedRef<ISettingsEditorModel> CreateModel( const TSharedRef<ISettingsContainer>& SettingsContainer ) = 0;
|
|
|
|
/**
|
|
* Called when the settings have been changed such that an application restart is required for them to be fully applied
|
|
*/
|
|
virtual void OnApplicationRestartRequired() = 0;
|
|
|
|
/**
|
|
* Set the delegate that should be called when a setting editor needs to restart the application
|
|
*
|
|
* @param InRestartApplicationDelegate The new delegate to call
|
|
*/
|
|
virtual void SetRestartApplicationCallback( FSimpleDelegate InRestartApplicationDelegate ) = 0;
|
|
|
|
public:
|
|
|
|
/** Virtual destructor. */
|
|
virtual ~ISettingsEditorModule() { }
|
|
};
|