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