You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.5 KiB
C++
54 lines
1.5 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include "Include/IPreferencesPage.h"
|
|
#include <AzCore/Serialization/SerializeContext.h>
|
|
#include <AzCore/Serialization/EditContext.h>
|
|
#include <AzCore/RTTI/RTTI.h>
|
|
#include <QIcon>
|
|
|
|
|
|
class CEditorPreferencesPage_ViewportMovement
|
|
: public IPreferencesPage
|
|
{
|
|
public:
|
|
AZ_RTTI(CEditorPreferencesPage_ViewportMovement, "{BC593332-7EAF-4171-8A35-1C5DE5B40909}", IPreferencesPage)
|
|
|
|
static void Reflect(AZ::SerializeContext& serialize);
|
|
|
|
CEditorPreferencesPage_ViewportMovement();
|
|
virtual ~CEditorPreferencesPage_ViewportMovement() = 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; }
|
|
|
|
private:
|
|
void InitializeSettings();
|
|
|
|
struct CameraMovementSettings
|
|
{
|
|
AZ_TYPE_INFO(CameraMovementSettings, "{60B8C07E-5F48-4171-A50B-F45558B5CCA1}")
|
|
|
|
float m_moveSpeed;
|
|
float m_rotateSpeed;
|
|
float m_fastMoveSpeed;
|
|
float m_wheelZoomSpeed;
|
|
bool m_invertYRotation;
|
|
bool m_invertPan;
|
|
};
|
|
|
|
CameraMovementSettings m_cameraMovementSettings;
|
|
QIcon m_icon;
|
|
};
|
|
|
|
|