Files
qt-creator/src/plugins/ctfvisualizer/ctfvisualizertool.h
Lucie Gérard a7956df3ca Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.

Task-number: QTBUG-67283
Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-26 12:27:18 +00:00

68 lines
1.7 KiB
C++

// Copyright (C) 2019 Klarälvdalens Datakonsult AB, a KDAB Group company,
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once
#include "ctfvisualizerconstants.h"
#include <debugger/debuggermainwindow.h>
#include <tracing/timelinemodelaggregator.h>
#include <tracing/timelinezoomcontrol.h>
#include <QScopedPointer>
namespace CtfVisualizer {
namespace Internal {
class CtfTraceManager;
class CtfStatisticsModel;
class CtfStatisticsView;
class CtfTimelineModel;
class CtfVisualizerTraceView;
class CtfVisualizerTool : public QObject
{
Q_OBJECT
public:
CtfVisualizerTool();
~CtfVisualizerTool();
Timeline::TimelineModelAggregator *modelAggregator() const;
CtfTraceManager *traceManager() const;
Timeline::TimelineZoomControl *zoomControl() const;
void loadJson();
private:
void createViews();
void initialize();
void finalize();
void setAvailableThreads(const QList<CtfTimelineModel *> &threads);
void toggleThreadRestriction(QAction *action);
Utils::Perspective m_perspective{Constants::CtfVisualizerPerspectiveId,
tr("Chrome Trace Format Visualizer")};
bool m_isLoading;
QScopedPointer<QAction> m_loadJson;
CtfVisualizerTraceView *m_traceView;
const QScopedPointer<Timeline::TimelineModelAggregator> m_modelAggregator;
const QScopedPointer<Timeline::TimelineZoomControl> m_zoomControl;
const QScopedPointer<CtfStatisticsModel> m_statisticsModel;
CtfStatisticsView *m_statisticsView;
const QScopedPointer<CtfTraceManager> m_traceManager;
QToolButton *const m_restrictToThreadsButton;
QMenu *const m_restrictToThreadsMenu;
};
} // namespace Internal
} // namespace CtfVisualizer