You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Please note that file comments had no purpose in nearly all cases and just added visual clutter. The two files that had meaningful file comments had their comments moved into the corresponding classes. There are still hundreds of file comments left in other files that will be removed over time. Also cleaned up some random stuff along the way: - relative paths to public headers within the same module are no longer necessary (automatically discovered by UBT now) - header guards are deprecated, use #pragma once instead (all compilers support it now) - space between multiple template brackets is no longer required (all compilers support >> now) - NULL to nullptr, OVERRIDE to override - spelling errors, whitespace, line breaks [CL 2104067 by Max Preussner in Main branch]
64 lines
1.6 KiB
C++
64 lines
1.6 KiB
C++
// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
|
|
/** Type definition for shared pointers to instances of ISettingsEditorModel. */
|
|
typedef TSharedPtr<class ISettingsEditorModel> ISettingsEditorModelPtr;
|
|
|
|
/** Type definition for shared references to instances of ISettingsEditorModel. */
|
|
typedef TSharedRef<class ISettingsEditorModel> ISettingsEditorModelRef;
|
|
|
|
|
|
/**
|
|
* Interface for settings editor view models.
|
|
*
|
|
* The settings editor view model stores the view state for the Settings Editor UI.
|
|
* Instances of this interface can be passed to Settings Editors in order to provide
|
|
* access to the settings container being added and to perform various user actions,
|
|
* such as setting the currently selected settings section.
|
|
*/
|
|
class ISettingsEditorModel
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Gets the selected settings section.
|
|
*
|
|
* @return The selected section, if any.
|
|
*/
|
|
virtual const ISettingsSectionPtr& GetSelectedSection( ) const = 0;
|
|
|
|
/**
|
|
* Gets the settings container.
|
|
*
|
|
* @return The settings container.
|
|
*/
|
|
virtual const ISettingsContainerRef& GetSettingsContainer( ) const = 0;
|
|
|
|
/**
|
|
* Selects the specified settings section to be displayed in the editor.
|
|
*
|
|
* @param Section The section to select.
|
|
*
|
|
* @see SelectPreviousSection
|
|
*/
|
|
virtual void SelectSection( const ISettingsSectionPtr& Section ) = 0;
|
|
|
|
public:
|
|
|
|
/**
|
|
* Returns a delegate that is executed when the selected settings section has changed.
|
|
*
|
|
* @return The delegate.
|
|
*/
|
|
virtual FSimpleMulticastDelegate& OnSelectionChanged( ) = 0;
|
|
|
|
public:
|
|
|
|
/**
|
|
* Virtual destructor.
|
|
*/
|
|
virtual ~ISettingsEditorModel( ) { }
|
|
};
|