Files
o3de/Code/Tools/Standalone/Source/Driller/Replica/BaseDetailViewSavedState.h
T
2021-04-23 09:43:40 -07:00

67 lines
2.3 KiB
C++

/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or the license accompanying this file. Do not
* remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
*/
#ifndef DRILLER_REPLICA_BASEDETAILVIEWSAVEDSTATE_H
#define DRILLER_REPLICA_BASEDETAILVIEWSAVEDSTATE_H
#include <AzCore/std/containers/vector.h>
#include <AzCore/UserSettings/UserSettings.h>
namespace Driller
{
class BaseDetailViewSplitterSavedState
: public AZ::UserSettings
{
public:
AZ_RTTI(BaseDetailViewSplitterSavedState, "{280A523E-9A7F-4E23-BAF8-1F6084AB77D6}", AZ::UserSettings);
AZ_CLASS_ALLOCATOR(BaseDetailViewSplitterSavedState, AZ::SystemAllocator, 0);
AZStd::vector< AZ::u8 > m_splitterStorage;
static void Reflect(AZ::ReflectContext* context)
{
AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context);
if (serialize)
{
serialize->Class<BaseDetailViewSplitterSavedState>()
->Field("m_splitterStorage", &BaseDetailViewSplitterSavedState::m_splitterStorage)
->Version(1);
;
}
}
};
class BaseDetailViewTreeSavedState
: public AZ::UserSettings
{
public:
AZ_RTTI(BaseDetailViewTreeSavedState, "{4B3ED3CE-5446-4DCD-98D3-62B577A75786}", AZ::UserSettings);
AZ_CLASS_ALLOCATOR(BaseDetailViewTreeSavedState, AZ::SystemAllocator, 0);
AZStd::vector<AZ::u8> m_treeColumnStorage;
static void Reflect(AZ::ReflectContext* context)
{
AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context);
if (serialize)
{
serialize->Class<BaseDetailViewTreeSavedState>()
->Field("m_treeColumnStorage", &BaseDetailViewTreeSavedState::m_treeColumnStorage)
->Version(1);
}
}
};
}
#endif