OSDN Git Service

a62ffc5dd4811ad81b7420a36e57d5e9202a997f
[qt-creator-jp/qt-creator-jp.git] / src / plugins / memcheck / memcheckconfigwidget.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator Instrumentation Tools
4 **
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Author: Milian Wolff, KDAB (milian.wolff@kdab.com)
8 **
9 ** Contact: Nokia Corporation (qt-info@nokia.com)
10 **
11 ** No Commercial Usage
12 **
13 ** This file contains pre-release code and may not be distributed.
14 ** You may use this file in accordance with the terms and conditions
15 ** contained in the Technology Preview License Agreement accompanying
16 ** this package.
17 **
18 ** GNU Lesser General Public License Usage
19 **
20 ** Alternatively, this file may be used under the terms of the GNU Lesser
21 ** General Public License version 2.1 as published by the Free Software
22 ** Foundation and appearing in the file LICENSE.LGPL included in the
23 ** packaging of this file.  Please review the following information to
24 ** ensure the GNU Lesser General Public License version 2.1 requirements
25 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
26 **
27 ** In addition, as a special exception, Nokia gives you certain additional
28 ** rights.  These rights are described in the Nokia Qt LGPL Exception
29 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
30 **
31 ** If you have questions regarding the use of this file, please contact
32 ** Nokia at qt-info@nokia.com.
33 **
34 **************************************************************************/
35
36
37 #ifndef ANALYZER_INTERNAL_MEMCHECKCONFIGWIDGET_H
38 #define ANALYZER_INTERNAL_MEMCHECKCONFIGWIDGET_H
39
40 #include <QtGui/QWidget>
41
42 QT_BEGIN_NAMESPACE
43 class QStandardItemModel;
44
45 namespace Ui {
46 class MemcheckConfigWidget;
47 }
48 QT_END_NAMESPACE
49
50 namespace Analyzer {
51 namespace Internal {
52
53 class AbstractMemcheckSettings;
54
55 class MemcheckConfigWidget : public QWidget
56 {
57     Q_OBJECT
58
59 public:
60     MemcheckConfigWidget(AbstractMemcheckSettings *settings, QWidget *parent);
61     virtual ~MemcheckConfigWidget();
62
63     void setSuppressions(const QStringList &files);
64     QStringList suppressions() const;
65
66 public Q_SLOTS:
67     void slotAddSuppression();
68     void slotRemoveSuppression();
69     void slotSuppressionsRemoved(const QStringList &files);
70     void slotSuppressionsAdded(const QStringList &files);
71     void slotSuppressionSelectionChanged();
72
73 private:
74     AbstractMemcheckSettings *m_settings;
75     QStandardItemModel *m_model;
76     Ui::MemcheckConfigWidget *m_ui;
77 };
78
79 }
80 }
81
82 #endif // ANALYZER_INTERNAL_MEMCHECKCONFIGWIDGET_H