2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** 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
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2011-02-17 17:53:52 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2013-08-14 18:30:40 +02:00
|
|
|
#include <coreplugin/dialogs/ioptionspage.h>
|
|
|
|
|
#include <projectexplorer/kitconfigwidget.h>
|
|
|
|
|
#include <projectexplorer/abi.h>
|
|
|
|
|
#include <utils/detailswidget.h>
|
|
|
|
|
#include <utils/fileutils.h>
|
|
|
|
|
#include <utils/pathchooser.h>
|
|
|
|
|
|
2012-09-11 14:03:08 +02:00
|
|
|
#include <QDialog>
|
2013-08-14 18:30:40 +02:00
|
|
|
#include <QStandardItemModel>
|
2012-09-11 14:03:08 +02:00
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QComboBox;
|
2013-08-14 18:30:40 +02:00
|
|
|
class QLabel;
|
2012-09-11 14:03:08 +02:00
|
|
|
class QPushButton;
|
|
|
|
|
QT_END_NAMESPACE
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2012-04-24 15:49:09 +02:00
|
|
|
namespace Debugger {
|
2010-12-10 19:02:19 +01:00
|
|
|
namespace Internal {
|
2013-08-14 18:30:40 +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:
|
2013-09-09 17:10:41 +02:00
|
|
|
DebuggerKitConfigWidget(ProjectExplorer::Kit *workingCopy,
|
|
|
|
|
const ProjectExplorer::KitInformation *ki);
|
2015-11-30 12:43:51 +01:00
|
|
|
~DebuggerKitConfigWidget() override;
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2015-11-30 12:43:51 +01:00
|
|
|
QString displayName() const override;
|
|
|
|
|
QString toolTip() const override;
|
|
|
|
|
void makeReadOnly() override;
|
|
|
|
|
void refresh() override;
|
|
|
|
|
QWidget *buttonWidget() const override;
|
|
|
|
|
QWidget *mainWidget() const override;
|
2012-09-05 14:56:08 +02:00
|
|
|
|
2014-12-19 10:46:40 +01:00
|
|
|
private:
|
2013-08-14 18:30:40 +02:00
|
|
|
void manageDebuggers();
|
|
|
|
|
void currentDebuggerChanged(int idx);
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2013-08-14 18:30:40 +02:00
|
|
|
QVariant currentId() const;
|
|
|
|
|
void updateComboBox(const QVariant &id);
|
|
|
|
|
|
|
|
|
|
bool m_isReadOnly;
|
2018-07-23 22:28:49 +02:00
|
|
|
bool m_ignoreChanges = false;
|
2013-08-14 18:30:40 +02:00
|
|
|
QComboBox *m_comboBox;
|
|
|
|
|
QPushButton *m_manageButton;
|
2012-09-11 14:03:08 +02:00
|
|
|
};
|
|
|
|
|
|
2010-12-10 19:02:19 +01:00
|
|
|
} // namespace Internal
|
2012-04-24 15:49:09 +02:00
|
|
|
} // namespace Debugger
|