Files
UnrealEngineUWP/Engine/Source/Developer/NewLogVisualizer/Private/LogVisualizerSessionSettings.cpp
sebastian kowalczyk fbffec87ca LogVisualization improvements integrated from Dev to Main:
- Added toggle button to LogVisualizer's toolbar, to toggle graphs 2d visualization
- User can change background color for 2d graphs in LogVisualizer's settings

[CL 2383386 by sebastian kowalczyk in Main branch]
2014-12-10 09:28:26 -05:00

33 lines
975 B
C++

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "LogVisualizer.h"
#include "Misc/CoreMisc.h"
#include "LogVisualizerSessionSettings.h"
#if WITH_EDITOR
#include "Editor/EditorEngine.h"
#include "ISettingsModule.h"
#include "GeometryEdMode.h"
#include "UnrealEdMisc.h"
#endif // WITH_EDITOR
ULogVisualizerSessionSettings::ULogVisualizerSessionSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
bEnableGraphsVisualization = true;
}
#if WITH_EDITOR
void ULogVisualizerSessionSettings::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
{
Super::PostEditChangeProperty(PropertyChangedEvent);
const FName Name = (PropertyChangedEvent.Property != nullptr) ? PropertyChangedEvent.Property->GetFName() : NAME_None;
#if 0 //FIXME: should we save this settings too? (SebaK)
if (!FUnrealEdMisc::Get().IsDeletePreferences())
{
SaveConfig();
}
#endif
SettingChangedEvent.Broadcast(Name);
}
#endif