analyzerrunconfigwidget.h 2.69 KB
Newer Older
hjk's avatar
hjk committed
1
/****************************************************************************
Mike McQuaid's avatar
Mike McQuaid committed
2
**
hjk's avatar
hjk committed
3 4
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
Mike McQuaid's avatar
Mike McQuaid committed
5 6
** Author: Milian Wolff, KDAB (milian.wolff@kdab.com)
**
hjk's avatar
hjk committed
7
** This file is part of Qt Creator.
Mike McQuaid's avatar
Mike McQuaid committed
8
**
hjk's avatar
hjk committed
9 10 11 12 13 14 15
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
Mike McQuaid's avatar
Mike McQuaid committed
16 17
**
** GNU Lesser General Public License Usage
hjk's avatar
hjk committed
18 19 20 21 22 23 24 25 26
** Alternatively, 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.
**
** In addition, as a special exception, Digia gives you certain additional
** rights.  These rights are described in the Digia Qt LGPL Exception
Mike McQuaid's avatar
Mike McQuaid committed
27 28
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
hjk's avatar
hjk committed
29
****************************************************************************/
Mike McQuaid's avatar
Mike McQuaid committed
30 31 32 33

#ifndef ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H
#define ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H

34 35
#include "analyzersettings.h"

Mike McQuaid's avatar
Mike McQuaid committed
36
#include <projectexplorer/runconfiguration.h>
37

38 39
#include <utils/detailswidget.h>

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

namespace Utils {
class DetailsWidget;
}

namespace Analyzer {

class AnalyzerSettings;
52 53 54 55 56 57 58
class AbstractAnalyzerSubConfig;

namespace Internal {

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

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

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

public:
    AnalyzerRunConfigWidget();

71 72
    virtual QString displayName() const;

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

75 76 77
private:
    void setDetailEnabled(bool value);

78 79 80 81
private slots:
    void chooseSettings(int setting);
    void restoreGlobal();

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

89
} // namespace Internal
hjk's avatar
hjk committed
90
} // namespace Analyzer
Mike McQuaid's avatar
Mike McQuaid committed
91 92

#endif // ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H