2010-12-10 19:02:19 +01:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2012-01-26 18:33:46 +01:00
|
|
|
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2012-07-19 12:26:56 +02:00
|
|
|
** Contact: http://www.qt-project.org/
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** 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.
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2011-02-17 17:53:52 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2011-02-17 17:53:52 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** 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.
|
|
|
|
|
**
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
#ifndef DEBUGGER_DEBUGGERKITCONFIGWIDGET_H
|
|
|
|
|
#define DEBUGGER_DEBUGGERKITCONFIGWIDGET_H
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
#include <projectexplorer/kitconfigwidget.h>
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-09-05 14:56:08 +02:00
|
|
|
#include "debuggerconstants.h"
|
|
|
|
|
|
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QLabel)
|
|
|
|
|
QT_FORWARD_DECLARE_CLASS(QComboBox)
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
namespace ProjectExplorer { class Kit; }
|
2012-09-05 14:56:08 +02:00
|
|
|
namespace Utils {
|
|
|
|
|
class PathChooser;
|
|
|
|
|
class FileName;
|
|
|
|
|
}
|
2012-04-24 15:49:09 +02:00
|
|
|
|
|
|
|
|
namespace Debugger {
|
2012-09-03 18:31:44 +02:00
|
|
|
class DebuggerKitInformation;
|
2010-12-10 19:02:19 +01:00
|
|
|
|
|
|
|
|
namespace Internal {
|
2012-04-24 15:49:09 +02:00
|
|
|
// -----------------------------------------------------------------------
|
2012-09-03 18:31:44 +02:00
|
|
|
// DebuggerKitConfigWidget:
|
2012-04-24 15:49:09 +02:00
|
|
|
// -----------------------------------------------------------------------
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
class DebuggerKitConfigWidget : public ProjectExplorer::KitConfigWidget
|
2010-12-10 19:02:19 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2010-12-10 19:02:19 +01:00
|
|
|
public:
|
2012-09-03 18:31:44 +02:00
|
|
|
DebuggerKitConfigWidget(ProjectExplorer::Kit *p,
|
|
|
|
|
const DebuggerKitInformation *ki,
|
|
|
|
|
QWidget *parent = 0);
|
2012-04-24 15:49:09 +02:00
|
|
|
|
|
|
|
|
QString displayName() const;
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
void makeReadOnly();
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
void apply();
|
|
|
|
|
void discard();
|
|
|
|
|
bool isDirty() const;
|
2012-06-21 16:05:30 +02:00
|
|
|
QWidget *buttonWidget() const;
|
2012-09-07 16:30:18 +02:00
|
|
|
void addToLayout(QGridLayout *layout, int row);
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-09-05 14:56:08 +02:00
|
|
|
DebuggerEngineType engineType() const;
|
|
|
|
|
void setEngineType(DebuggerEngineType et);
|
|
|
|
|
|
|
|
|
|
Utils::FileName fileName() const;
|
|
|
|
|
void setFileName(const Utils::FileName &fn);
|
|
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
private slots:
|
|
|
|
|
void autoDetectDebugger();
|
2012-09-05 14:56:08 +02:00
|
|
|
void refreshLabel();
|
2010-12-10 19:02:19 +01:00
|
|
|
|
|
|
|
|
private:
|
2012-09-03 18:31:44 +02:00
|
|
|
ProjectExplorer::Kit *m_kit;
|
|
|
|
|
const DebuggerKitInformation *m_info;
|
2012-09-05 14:56:08 +02:00
|
|
|
QComboBox *m_comboBox;
|
|
|
|
|
QLabel *m_label;
|
2012-04-24 15:49:09 +02:00
|
|
|
Utils::PathChooser *m_chooser;
|
2010-12-10 19:02:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2012-04-24 15:49:09 +02:00
|
|
|
} // namespace Debugger
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
#endif // DEBUGGER_DEBUGGERKITINFORMATION_H
|