2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-11-28 09:26:40 -05:00
|
|
|
|
|
|
|
|
#include "LogVisualizer.h"
|
|
|
|
|
#include "Misc/CoreMisc.h"
|
2014-12-01 10:42:59 -05:00
|
|
|
#include "LogVisualizerSettings.h"
|
2014-11-28 09:26:40 -05:00
|
|
|
#if WITH_EDITOR
|
|
|
|
|
#include "Editor/EditorEngine.h"
|
|
|
|
|
#include "ISettingsModule.h"
|
2014-12-10 06:02:42 -05:00
|
|
|
#include "GeometryEdMode.h"
|
2014-12-01 08:43:19 -05:00
|
|
|
#include "UnrealEdMisc.h"
|
2014-11-28 09:26:40 -05:00
|
|
|
#endif // WITH_EDITOR
|
|
|
|
|
|
|
|
|
|
ULogVisualizerSettings::ULogVisualizerSettings(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
|
|
|
|
|
{
|
|
|
|
|
TrivialLogsThreshold = 1;
|
2014-12-02 08:07:26 -05:00
|
|
|
DefaultCameraDistance = 150;
|
2014-12-04 10:00:51 -05:00
|
|
|
bSearchInsideLogs = true;
|
2014-11-28 09:26:40 -05:00
|
|
|
}
|
|
|
|
|
|
2014-12-10 06:02:42 -05:00
|
|
|
#if WITH_EDITOR
|
2014-11-28 09:26:40 -05:00
|
|
|
void ULogVisualizerSettings::PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent)
|
|
|
|
|
{
|
|
|
|
|
Super::PostEditChangeProperty(PropertyChangedEvent);
|
|
|
|
|
|
|
|
|
|
const FName Name = (PropertyChangedEvent.Property != nullptr) ? PropertyChangedEvent.Property->GetFName() : NAME_None;
|
|
|
|
|
if (!FUnrealEdMisc::Get().IsDeletePreferences())
|
|
|
|
|
{
|
|
|
|
|
SaveConfig();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SettingChangedEvent.Broadcast(Name);
|
|
|
|
|
}
|
2014-12-10 06:02:42 -05:00
|
|
|
#endif
|