File indexing completed on 2024-04-21 04:36:00
0001 /* This file is part of KDevelop 0002 * Copyright 2011 Sebastien Rannou <mxs@sbrk.org> 0003 * Copyright 2008 Hamish Rodda <rodda@kde.org> 0004 * Copyright 2011 Lucas Sarie <lucas.sarie@gmail.com> 0005 * Copyright 2017 Anton Anikin <anton@anikin.xyz> 0006 0007 This program is free software; you can redistribute it and/or 0008 modify it under the terms of the GNU General Public 0009 License as published by the Free Software Foundation; either 0010 version 2 of the License, or (at your option) any later version. 0011 0012 This program is distributed in the hope that it will be useful, 0013 but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 General Public License for more details. 0016 0017 You should have received a copy of the GNU General Public License 0018 along with this program; see the file COPYING. If not, write to 0019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0020 Boston, MA 02110-1301, USA. 0021 0022 */ 0023 0024 #pragma once 0025 0026 #include <QWidget> 0027 #include <KConfigGroup> 0028 0029 class QProcess; 0030 class QTemporaryFile; 0031 0032 namespace Valgrind 0033 { 0034 0035 namespace Ui { class CallgrindView; } 0036 0037 class CallgrindFunctionsModel; 0038 0039 class CallgrindView : public QWidget 0040 { 0041 Q_OBJECT 0042 0043 public: 0044 CallgrindView(KConfigGroup configGroup, QTemporaryFile* outputFile, CallgrindFunctionsModel* model, QWidget* parent = nullptr); 0045 ~CallgrindView() override; 0046 0047 private: 0048 QScopedPointer<Ui::CallgrindView> ui; 0049 QScopedPointer<QProcess> m_kcachegrindProcess; 0050 }; 0051 0052 }