Files
o3de/Code/Tools/AssetProcessor/native/utilities/LogPanel.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

43 lines
1.8 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 <AzToolsFramework/UI/Logging/StyledTracePrintFLogPanel.h>
namespace AssetProcessor
{
//! LogPanel - an implementation of TracePrintFLogPanel which shows recent traceprintfs
//! CreateTabs will create a new instance of LogTab
class LogPanel : public AzToolsFramework::LogPanel::StyledTracePrintFLogPanel
{
public:
explicit LogPanel(QWidget* parent = nullptr);
~LogPanel() override = default;
protected:
QWidget* CreateTab(const AzToolsFramework::LogPanel::TabSettings& settings) override;
};
//! LogTab - a Log View listening on AZ Traceprintfs and puts them in a ring buffer
//! It also filters traceprintfs based on the thread local job id
class LogTab : public AzToolsFramework::LogPanel::StyledTracePrintFLogTab
{
public:
AZ_CLASS_ALLOCATOR(LogTab, AZ::SystemAllocator, 0);
explicit LogTab(const AzToolsFramework::LogPanel::TabSettings& settings, QWidget* parent = nullptr);
~LogTab() override = default;
void AddInitialLogMessage();
//////////////////////////////////////////////////////////////////////////
// TraceMessagesBus
bool OnAssert(const char* message) override;
bool OnException(const char* message) override;
bool OnError(const char* window, const char* message) override;
bool OnWarning(const char* window, const char* message) override;
bool OnPrintf(const char* window, const char* message) override;
//////////////////////////////////////////////////////////////////////////
};
}