analyzerrunconfigwidget.h 2.63 KB
Newer Older
hjk's avatar
hjk committed
1
/****************************************************************************
Mike McQuaid's avatar
Mike McQuaid committed
2
**
3
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
hjk's avatar
hjk committed
4
** 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"

36 37
#include <utils/detailswidget.h>

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

namespace Utils {
class DetailsWidget;
}

namespace Analyzer {

49 50 51 52 53 54 55
class AbstractAnalyzerSubConfig;

namespace Internal {

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

57 58 59 60 61
public:
    explicit AnalyzerToolDetailWidget(AbstractAnalyzerSubConfig *config, QWidget *parent=0);
};

class AnalyzerRunConfigWidget : public ProjectExplorer::RunConfigWidget
Mike McQuaid's avatar
Mike McQuaid committed
62 63 64 65 66 67
{
    Q_OBJECT

public:
    AnalyzerRunConfigWidget();

68 69
    virtual QString displayName() const;

70
    void setRunConfigurationAspect(AnalyzerRunConfigurationAspect *aspect);
Mike McQuaid's avatar
Mike McQuaid committed
71

72 73 74
private:
    void setDetailEnabled(bool value);

75 76 77 78
private slots:
    void chooseSettings(int setting);
    void restoreGlobal();

Mike McQuaid's avatar
Mike McQuaid committed
79
private:
80
    QWidget *m_subConfigWidget;
81
    AnalyzerRunConfigurationAspect *m_aspect;
82 83
    QComboBox *m_settingsCombo;
    QPushButton *m_restoreButton;
Mike McQuaid's avatar
Mike McQuaid committed
84 85
};

86
} // namespace Internal
hjk's avatar
hjk committed
87
} // namespace Analyzer
Mike McQuaid's avatar
Mike McQuaid committed
88 89

#endif // ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H