updates after file renames
Signed-off-by: hultonha <hultonha@amazon.co.uk>
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
#include "EditorPreferencesPageGeneral.h"
|
||||
#include "EditorPreferencesPageFiles.h"
|
||||
#include "EditorPreferencesPageViewportGeneral.h"
|
||||
#include "EditorPreferencesPageViewportGizmo.h"
|
||||
#include "EditorPreferencesPageViewportMovement.h"
|
||||
#include "EditorPreferencesPageViewportManipulator.h"
|
||||
#include "EditorPreferencesPageViewportCamera.h"
|
||||
#include "EditorPreferencesPageViewportDebug.h"
|
||||
#include "EditorPreferencesPageExperimentalLighting.h"
|
||||
#include "EditorPreferencesPageAWS.h"
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "EditorDefs.h"
|
||||
|
||||
#include "EditorPreferencesPageViewportMovement.h"
|
||||
#include "EditorPreferencesPageViewportCamera.h"
|
||||
|
||||
#include <AzCore/std/sort.h>
|
||||
#include <AzFramework/Input/Buses/Requests/InputDeviceRequestBus.h>
|
||||
@@ -226,6 +226,11 @@ CEditorPreferencesPage_ViewportCamera::CEditorPreferencesPage_ViewportCamera()
|
||||
m_icon = QIcon(":/res/Camera.svg");
|
||||
}
|
||||
|
||||
const char* CEditorPreferencesPage_ViewportCamera::GetCategory()
|
||||
{
|
||||
return "Viewports";
|
||||
}
|
||||
|
||||
const char* CEditorPreferencesPage_ViewportCamera::GetTitle()
|
||||
{
|
||||
return "Camera";
|
||||
@@ -236,6 +241,16 @@ QIcon& CEditorPreferencesPage_ViewportCamera::GetIcon()
|
||||
return m_icon;
|
||||
}
|
||||
|
||||
void CEditorPreferencesPage_ViewportCamera::OnCancel()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
bool CEditorPreferencesPage_ViewportCamera::OnQueryCancel()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void CEditorPreferencesPage_ViewportCamera::OnApply()
|
||||
{
|
||||
SandboxEditor::SetCameraTranslateSpeed(m_cameraMovementSettings.m_translateSpeed);
|
||||
|
||||
@@ -29,22 +29,12 @@ public:
|
||||
CEditorPreferencesPage_ViewportCamera();
|
||||
virtual ~CEditorPreferencesPage_ViewportCamera() = default;
|
||||
|
||||
virtual const char* GetCategory() override
|
||||
{
|
||||
return "Viewports";
|
||||
}
|
||||
|
||||
virtual const char* GetTitle();
|
||||
virtual QIcon& GetIcon() override;
|
||||
virtual void OnApply() override;
|
||||
virtual void OnCancel() override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool OnQueryCancel() override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
const char* GetCategory() override;
|
||||
const char* GetTitle() override;
|
||||
QIcon& GetIcon() override;
|
||||
void OnApply() override;
|
||||
void OnCancel() override;
|
||||
bool OnQueryCancel() override;
|
||||
|
||||
private:
|
||||
void InitializeSettings();
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "EditorDefs.h"
|
||||
|
||||
#include "EditorPreferencesPageViewportGizmo.h"
|
||||
#include "EditorPreferencesPageViewportManipulator.h"
|
||||
|
||||
// Editor
|
||||
#include "EditorViewportSettings.h"
|
||||
@@ -53,11 +53,31 @@ CEditorPreferencesPage_ViewportManipulator::CEditorPreferencesPage_ViewportManip
|
||||
m_icon = QIcon(":/res/Gizmos.svg");
|
||||
}
|
||||
|
||||
const char* CEditorPreferencesPage_ViewportManipulator::GetCategory()
|
||||
{
|
||||
return "Viewports";
|
||||
}
|
||||
|
||||
const char* CEditorPreferencesPage_ViewportManipulator::GetTitle()
|
||||
{
|
||||
return "Manipulators";
|
||||
}
|
||||
|
||||
QIcon& CEditorPreferencesPage_ViewportManipulator::GetIcon()
|
||||
{
|
||||
return m_icon;
|
||||
}
|
||||
|
||||
void CEditorPreferencesPage_ViewportManipulator::OnCancel()
|
||||
{
|
||||
// noop
|
||||
}
|
||||
|
||||
bool CEditorPreferencesPage_ViewportManipulator::OnQueryCancel()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void CEditorPreferencesPage_ViewportManipulator::OnApply()
|
||||
{
|
||||
SandboxEditor::SetManipulatorLineBoundWidth(m_manipulators.m_manipulatorLineBoundWidth);
|
||||
|
||||
@@ -25,26 +25,12 @@ public:
|
||||
CEditorPreferencesPage_ViewportManipulator();
|
||||
virtual ~CEditorPreferencesPage_ViewportManipulator() = default;
|
||||
|
||||
virtual const char* GetCategory() override
|
||||
{
|
||||
return "Viewports";
|
||||
}
|
||||
|
||||
virtual const char* GetTitle() override
|
||||
{
|
||||
return "Manipulators";
|
||||
}
|
||||
|
||||
virtual QIcon& GetIcon() override;
|
||||
virtual void OnApply() override;
|
||||
virtual void OnCancel() override
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool OnQueryCancel() override
|
||||
{
|
||||
return true;
|
||||
}
|
||||
const char* GetCategory() override;
|
||||
const char* GetTitle() override;
|
||||
QIcon& GetIcon() override;
|
||||
void OnApply() override;
|
||||
void OnCancel() override;
|
||||
bool OnQueryCancel() override;
|
||||
|
||||
private:
|
||||
void InitializeSettings();
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
#include "EditorPreferencesPageGeneral.h"
|
||||
#include "EditorPreferencesPageFiles.h"
|
||||
#include "EditorPreferencesPageViewportGeneral.h"
|
||||
#include "EditorPreferencesPageViewportGizmo.h"
|
||||
#include "EditorPreferencesPageViewportMovement.h"
|
||||
#include "EditorPreferencesPageViewportManipulator.h"
|
||||
#include "EditorPreferencesPageViewportCamera.h"
|
||||
#include "EditorPreferencesPageViewportDebug.h"
|
||||
#include "EditorPreferencesPageExperimentalLighting.h"
|
||||
#include "EditorPreferencesPageAWS.h"
|
||||
|
||||
@@ -554,10 +554,10 @@ set(FILES
|
||||
EditorPreferencesPageFiles.cpp
|
||||
EditorPreferencesPageViewportGeneral.h
|
||||
EditorPreferencesPageViewportGeneral.cpp
|
||||
EditorPreferencesPageViewportGizmo.h
|
||||
EditorPreferencesPageViewportGizmo.cpp
|
||||
EditorPreferencesPageViewportMovement.h
|
||||
EditorPreferencesPageViewportMovement.cpp
|
||||
EditorPreferencesPageViewportManipulator.h
|
||||
EditorPreferencesPageViewportManipulator.cpp
|
||||
EditorPreferencesPageViewportCamera.h
|
||||
EditorPreferencesPageViewportCamera.cpp
|
||||
EditorPreferencesPageViewportDebug.h
|
||||
EditorPreferencesPageViewportDebug.cpp
|
||||
EditorPreferencesPageExperimentalLighting.h
|
||||
|
||||
Reference in New Issue
Block a user