Initial commit

This commit is contained in:
alexpete
2021-03-05 11:26:34 -08:00
commit a10351f38d
27091 changed files with 5521199 additions and 0 deletions
@@ -0,0 +1,80 @@
/*
* 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.
*
*/
#include "precompiled.h"
#include <Editor/View/Widgets/LoggingPanel/AssetWindowSession/LoggingAssetDataAggregator.h>
namespace ScriptCanvasEditor
{
///////////////////////////////
// LoggingAssetDataAggregator
///////////////////////////////
LoggingAssetDataAggregator::LoggingAssetDataAggregator(const AZ::Data::AssetId& assetId)
: m_assetId(assetId)
{
}
LoggingAssetDataAggregator::~LoggingAssetDataAggregator()
{
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::AnnotateNodeSignal& /**/)
{
// call parent process function in the aggregator class
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::ExecutionThreadEnd& /*loggableEvent*/)
{
// call parent process function in the aggregator class
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::ExecutionThreadBeginning& /*loggableEvent*/)
{
// call parent process function in the aggregator class
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::GraphActivation& /*loggableEvent*/)
{
// call parent process function in the aggregator class
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::GraphDeactivation& /*loggableEvent*/)
{
// call parent process function in the aggregator class
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::NodeStateChange& loggableEvent)
{
ProcessNodeStateChanged(loggableEvent);
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::InputSignal& loggableEvent)
{
ProcessInputSignal(loggableEvent);
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::OutputDataSignal& loggableEvent)
{
ProcessOutputDataSignal(loggableEvent);
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::OutputSignal& loggableEvent)
{
ProcessOutputSignal(loggableEvent);
}
void LoggingAssetDataAggregator::Visit(ScriptCanvas::VariableChange& loggableEvent)
{
ProcessVariableChangedSignal(loggableEvent);
}
}
@@ -0,0 +1,49 @@
/*
* 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.
*
*/
#pragma once
#include <Editor/View/Widgets/LoggingPanel/LoggingDataAggregator.h>
#include <ScriptCanvas/Debugger/Logger.h>
#include <ScriptCanvas/Core/ExecutionNotificationsBus.h>
namespace ScriptCanvasEditor
{
class LoggingAssetDataAggregator
: public LoggingDataAggregator
, public ScriptCanvas::LoggableEventVisitor
{
public:
AZ_CLASS_ALLOCATOR(LoggingAssetDataAggregator, AZ::SystemAllocator, 0);
LoggingAssetDataAggregator(const AZ::Data::AssetId& assetId);
~LoggingAssetDataAggregator() override;
bool CanCaptureData() const override { return false; }
bool IsCapturingData() const override { return false; }
protected:
void Visit(ScriptCanvas::AnnotateNodeSignal&);
void Visit(ScriptCanvas::ExecutionThreadEnd&);
void Visit(ScriptCanvas::ExecutionThreadBeginning&);
void Visit(ScriptCanvas::GraphActivation&);
void Visit(ScriptCanvas::GraphDeactivation&);
void Visit(ScriptCanvas::NodeStateChange&);
void Visit(ScriptCanvas::InputSignal&);
void Visit(ScriptCanvas::OutputDataSignal&);
void Visit(ScriptCanvas::OutputSignal&);
void Visit(ScriptCanvas::VariableChange&);
private:
AZ::Data::AssetId m_assetId;
};
}
@@ -0,0 +1,53 @@
/*
* 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.
*
*/
#include "precompiled.h"
#include <Editor/View/Widgets/LoggingPanel/AssetWindowSession/LoggingAssetWindowSession.h>
namespace ScriptCanvasEditor
{
//////////////////////////////
// LoggingAssetWindowSession
//////////////////////////////
LoggingAssetWindowSession::LoggingAssetWindowSession(const AZ::Data::AssetId& assetId, QWidget* parent)
: LoggingWindowSession(parent)
, m_dataAggregator(assetId)
, m_assetId(assetId)
{
SetDataId(m_dataAggregator.GetDataId());
m_ui->captureButton->setEnabled(false);
RegisterTreeRoot(m_dataAggregator.GetTreeRoot());
}
LoggingAssetWindowSession::~LoggingAssetWindowSession()
{
}
void LoggingAssetWindowSession::OnCaptureButtonPressed()
{
}
void LoggingAssetWindowSession::OnPlaybackButtonPressed()
{
// TODO
}
void LoggingAssetWindowSession::OnOptionsButtonPressed()
{
// TODO
}
#include <Editor/View/Widgets/LoggingPanel/AssetWindowSession/moc_LoggingAssetWindowSession.cpp>
}
@@ -0,0 +1,44 @@
/*
* 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.
*
*/
#pragma once
#if !defined(Q_MOC_RUN)
#include <Editor/View/Widgets/LoggingPanel/LoggingWindowSession.h>
#include <Editor/View/Widgets/LoggingPanel/AssetWindowSession/LoggingAssetDataAggregator.h>
#endif
namespace ScriptCanvasEditor
{
class LoggingAssetWindowSession
: public LoggingWindowSession
{
Q_OBJECT
public:
AZ_CLASS_ALLOCATOR(LoggingAssetWindowSession, AZ::SystemAllocator, 0);
LoggingAssetWindowSession(const AZ::Data::AssetId& assetId, QWidget* parent = nullptr);
~LoggingAssetWindowSession() override;
protected:
void OnCaptureButtonPressed() override;
void OnPlaybackButtonPressed() override;
void OnOptionsButtonPressed() override;
private:
AZ::Data::AssetId m_assetId;
LoggingAssetDataAggregator m_dataAggregator;
};
}