LoggingWindow.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #if !defined(Q_MOC_RUN)
  10. #include <QButtonGroup>
  11. #include <AzCore/Memory/SystemAllocator.h>
  12. #include <AzQtComponents/Components/StyledDockWidget.h>
  13. #include <Editor/View/Widgets/LoggingPanel/LiveWindowSession/LiveLoggingDataAggregator.h>
  14. #include <Editor/View/Widgets/LoggingPanel/LoggingDataAggregator.h>
  15. #endif
  16. namespace Ui
  17. {
  18. class LoggingWindow;
  19. }
  20. namespace ScriptCanvasEditor
  21. {
  22. class PivotTreeWidget;
  23. class LoggingWindow
  24. : public AzQtComponents::StyledDockWidget
  25. {
  26. Q_OBJECT;
  27. public:
  28. AZ_CLASS_ALLOCATOR(LoggingWindow, AZ::SystemAllocator);
  29. LoggingWindow(QWidget* parentWidget = nullptr);
  30. virtual ~LoggingWindow();
  31. protected:
  32. void OnActiveTabChanged(int index);
  33. void PivotOnEntities();
  34. void PivotOnGraphs();
  35. private:
  36. PivotTreeWidget* GetActivePivotWidget() const;
  37. AZStd::unique_ptr<Ui::LoggingWindow> m_ui;
  38. QButtonGroup m_pivotGroup;
  39. LoggingDataId m_activeDataId;
  40. int m_entityPageIndex;
  41. int m_graphPageIndex;
  42. };
  43. }