Files
UnrealEngineUWP/Engine/Source/Developer/SettingsEditor/Public/ISettingsEditorModule.h
Jamie Dale 47ce6c9c99 Added a ConfigRestartRequired meta-data property to allow you to tag config properties as requring an application restart before they take effect
UE-9022 - IWCE: Had to restart editor after toggling Blueprintable Components option for anything to work

[CL 2446904 by Jamie Dale in Main branch]
2015-02-16 07:54:27 -05:00

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() { }
};