analyzerrunconfigwidget.h 2.29 KB
Newer Older
Mike McQuaid's avatar
Mike McQuaid committed
1 2 3 4 5 6 7 8
/**************************************************************************
**
** This file is part of Qt Creator Instrumentation Tools
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Author: Milian Wolff, KDAB (milian.wolff@kdab.com)
**
hjk's avatar
hjk committed
9
** Contact: Nokia Corporation (info@qt.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
Tobias Hunger's avatar
Tobias Hunger committed
31
** Nokia at info@qt.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 40
#include "analyzerbase_global.h"
#include "analyzersettings.h"

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

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

namespace Utils {
class DetailsWidget;
}

namespace Analyzer {

class AnalyzerSettings;

56
class ANALYZER_EXPORT AnalyzerRunConfigWidget : public ProjectExplorer::RunConfigWidget
Mike McQuaid's avatar
Mike McQuaid committed
57 58 59 60 61 62
{
    Q_OBJECT

public:
    AnalyzerRunConfigWidget();

63 64
    virtual QString displayName() const;

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

67 68 69 70
private slots:
    void chooseSettings(int setting);
    void restoreGlobal();

Mike McQuaid's avatar
Mike McQuaid committed
71 72
private:
    Utils::DetailsWidget *m_detailsWidget;
73 74 75 76
    QWidget *m_subConfigWidget;
    AnalyzerProjectSettings *m_settings;
    QComboBox *m_settingsCombo;
    QPushButton *m_restoreButton;
Mike McQuaid's avatar
Mike McQuaid committed
77 78
};

hjk's avatar
hjk committed
79
} // namespace Analyzer
Mike McQuaid's avatar
Mike McQuaid committed
80 81

#endif // ANALYZER_INTERNAL_ANALYZERRUNCONFIGWIDGET_H