analyzerrunconfigwidget.h 2.43 KB
Newer Older
Mike McQuaid's avatar
Mike McQuaid committed
1 2 3 4
/**************************************************************************
**
** This file is part of Qt Creator Instrumentation Tools
**
hjk's avatar
hjk committed
5
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
Mike McQuaid's avatar
Mike McQuaid committed
6 7 8
**
** Author: Milian Wolff, KDAB (milian.wolff@kdab.com)
**
Eike Ziller's avatar
Eike Ziller committed
9
** Contact: http://www.qt-project.org/
Mike McQuaid's avatar
Mike McQuaid committed
10 11 12 13
**
**
** GNU Lesser General Public License Usage
**
hjk's avatar
hjk committed
14 15 16 17 18 19
** This file may be used under the terms of the GNU Lesser General Public
** License version 2.1 as published by the Free Software Foundation and
** appearing in the file LICENSE.LGPL included in the packaging of this file.
** Please review the following information to ensure the GNU Lesser General
** Public License version 2.1 requirements will be met:
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
Mike McQuaid's avatar
Mike McQuaid committed
20 21
**
** In addition, as a special exception, Nokia gives you certain additional
hjk's avatar
hjk committed
22
** rights. These rights are described in the Nokia Qt LGPL Exception
Mike McQuaid's avatar
Mike McQuaid committed
23 24
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
hjk's avatar
hjk committed
25 26 27 28 29
** Other Usage
**
** Alternatively, this file may be used in accordance with the terms and
** conditions contained in a signed written agreement between you and Nokia.
**
Mike McQuaid's avatar
Mike McQuaid committed
30 31 32 33 34 35
**
**************************************************************************/

#ifndef ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H
#define ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H

36 37
#include "analyzersettings.h"

Mike McQuaid's avatar
Mike McQuaid committed
38
#include <projectexplorer/runconfiguration.h>
39

40 41
#include <utils/detailswidget.h>

Friedemann Kleint's avatar
Friedemann Kleint committed
42 43 44 45
QT_BEGIN_NAMESPACE
class QComboBox;
class QPushButton;
QT_END_NAMESPACE
Mike McQuaid's avatar
Mike McQuaid committed
46 47 48 49 50 51 52 53

namespace Utils {
class DetailsWidget;
}

namespace Analyzer {

class AnalyzerSettings;
54 55 56 57 58 59 60
class AbstractAnalyzerSubConfig;

namespace Internal {

class AnalyzerToolDetailWidget : public Utils::DetailsWidget
{
    Q_OBJECT
Mike McQuaid's avatar
Mike McQuaid committed
61

62 63 64 65 66
public:
    explicit AnalyzerToolDetailWidget(AbstractAnalyzerSubConfig *config, QWidget *parent=0);
};

class AnalyzerRunConfigWidget : public ProjectExplorer::RunConfigWidget
Mike McQuaid's avatar
Mike McQuaid committed
67 68 69 70 71 72
{
    Q_OBJECT

public:
    AnalyzerRunConfigWidget();

73 74
    virtual QString displayName() const;

Mike McQuaid's avatar
Mike McQuaid committed
75 76
    void setRunConfiguration(ProjectExplorer::RunConfiguration *rc);

77 78 79
private:
    void setDetailEnabled(bool value);

80 81 82 83
private slots:
    void chooseSettings(int setting);
    void restoreGlobal();

Mike McQuaid's avatar
Mike McQuaid committed
84
private:
85
    QWidget *m_subConfigWidget;
86
    AnalyzerRunConfigurationAspect *m_aspect;
87 88
    QComboBox *m_settingsCombo;
    QPushButton *m_restoreButton;
Mike McQuaid's avatar
Mike McQuaid committed
89 90
};

91
} // namespace Internal
hjk's avatar
hjk committed
92
} // namespace Analyzer
Mike McQuaid's avatar
Mike McQuaid committed
93 94

#endif // ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H