analyzerrunconfigwidget.h 2.54 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)
**
9
** Contact: Nokia Corporation (qt-info@nokia.com)
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
** If you have questions regarding the use of this file, please contact
31
** Nokia at qt-info@nokia.com.
Mike McQuaid's avatar
Mike McQuaid committed
32 33 34 35 36 37
**
**************************************************************************/

#ifndef ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H
#define ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H

38 39
#include "analyzersettings.h"

Mike McQuaid's avatar
Mike McQuaid committed
40
#include <projectexplorer/runconfiguration.h>
41

42 43
#include <utils/detailswidget.h>

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

namespace Utils {
class DetailsWidget;
}

namespace Analyzer {

class AnalyzerSettings;
56 57 58 59 60 61 62
class AbstractAnalyzerSubConfig;

namespace Internal {

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

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

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

public:
    AnalyzerRunConfigWidget();

75 76
    virtual QString displayName() const;

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

79 80 81
private:
    void setDetailEnabled(bool value);

82 83 84 85
private slots:
    void chooseSettings(int setting);
    void restoreGlobal();

Mike McQuaid's avatar
Mike McQuaid committed
86
private:
87 88 89 90
    QWidget *m_subConfigWidget;
    AnalyzerProjectSettings *m_settings;
    QComboBox *m_settingsCombo;
    QPushButton *m_restoreButton;
Mike McQuaid's avatar
Mike McQuaid committed
91 92
};

93
} // namespace Internal
hjk's avatar
hjk committed
94
} // namespace Analyzer
Mike McQuaid's avatar
Mike McQuaid committed
95 96

#endif // ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H