analyzerrunconfigwidget.h 2.35 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"

Friedemann Kleint's avatar
Friedemann Kleint committed
36 37 38 39
QT_BEGIN_NAMESPACE
class QComboBox;
class QPushButton;
QT_END_NAMESPACE
Mike McQuaid's avatar
Mike McQuaid committed
40

hjk's avatar
hjk committed
41
namespace Utils { class DetailsWidget; }
Mike McQuaid's avatar
Mike McQuaid committed
42 43

namespace Analyzer {
44 45 46
namespace Internal {

class AnalyzerRunConfigWidget : public ProjectExplorer::RunConfigWidget
Mike McQuaid's avatar
Mike McQuaid committed
47 48 49 50
{
    Q_OBJECT

public:
hjk's avatar
hjk committed
51
    AnalyzerRunConfigWidget(AnalyzerRunConfigurationAspect *aspect);
Mike McQuaid's avatar
Mike McQuaid committed
52

hjk's avatar
hjk committed
53
    QString displayName() const;
54

55 56 57 58
private slots:
    void chooseSettings(int setting);
    void restoreGlobal();

Mike McQuaid's avatar
Mike McQuaid committed
59
private:
hjk's avatar
hjk committed
60
    QWidget *m_configWidget;
61
    AnalyzerRunConfigurationAspect *m_aspect;
62
    ISettingsAspect *m_config;
63 64
    QComboBox *m_settingsCombo;
    QPushButton *m_restoreButton;
hjk's avatar
hjk committed
65
    Utils::DetailsWidget *m_details;
Mike McQuaid's avatar
Mike McQuaid committed
66 67
};

68
} // namespace Internal
hjk's avatar
hjk committed
69
} // namespace Analyzer
Mike McQuaid's avatar
Mike McQuaid committed
70 71

#endif // ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H