2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-03-04 12:15:19 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2011-03-04 12:15:19 +01:00
|
|
|
|
2011-07-13 14:58:54 +02:00
|
|
|
#include "xmlprotocol/error.h"
|
2011-03-04 12:15:19 +01:00
|
|
|
|
2011-12-16 16:06:25 +01:00
|
|
|
#include <utils/pathchooser.h>
|
|
|
|
|
|
2012-02-15 10:42:41 +01:00
|
|
|
#include <QDialog>
|
2011-03-04 12:15:19 +01:00
|
|
|
|
2011-12-16 16:06:25 +01:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QPlainTextEdit;
|
|
|
|
|
class QDialogButtonBox;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
2011-05-23 13:50:28 +02:00
|
|
|
namespace Valgrind {
|
2011-03-04 12:15:19 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
class MemcheckErrorView;
|
2013-08-08 17:37:37 +02:00
|
|
|
class ValgrindBaseSettings;
|
2011-03-04 12:15:19 +01:00
|
|
|
|
|
|
|
|
class SuppressionDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
public:
|
2011-12-16 16:06:25 +01:00
|
|
|
SuppressionDialog(MemcheckErrorView *view,
|
|
|
|
|
const QList<XmlProtocol::Error> &errors);
|
|
|
|
|
static void maybeShow(MemcheckErrorView *view);
|
2011-03-04 16:00:04 +01:00
|
|
|
|
2011-03-04 12:15:19 +01:00
|
|
|
private:
|
2017-03-19 20:10:35 +02:00
|
|
|
void validate();
|
2018-12-10 08:11:18 +01:00
|
|
|
void accept() override;
|
|
|
|
|
void reject() override;
|
2011-12-16 16:06:25 +01:00
|
|
|
|
2011-03-04 12:15:19 +01:00
|
|
|
MemcheckErrorView *m_view;
|
2013-08-08 17:37:37 +02:00
|
|
|
ValgrindBaseSettings *m_settings;
|
2011-03-04 12:15:19 +01:00
|
|
|
bool m_cleanupIfCanceled;
|
2011-07-13 14:58:54 +02:00
|
|
|
QList<XmlProtocol::Error> m_errors;
|
2011-12-16 16:06:25 +01:00
|
|
|
|
|
|
|
|
Utils::PathChooser *m_fileChooser;
|
|
|
|
|
QPlainTextEdit *m_suppressionEdit;
|
|
|
|
|
QDialogButtonBox *m_buttonBox;
|
2011-03-04 12:15:19 +01:00
|
|
|
};
|
|
|
|
|
|
2011-05-18 17:05:49 +02:00
|
|
|
} // namespace Internal
|
2011-05-23 13:50:28 +02:00
|
|
|
} // namespace Valgrind
|