2013-03-27 13:03:15 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** 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.
|
2013-03-27 13:03:15 +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.
|
2013-03-27 13:03:15 +01:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef DEBUGGERRUNCONFIGURATIONASPECT_H
|
|
|
|
|
#define DEBUGGERRUNCONFIGURATIONASPECT_H
|
|
|
|
|
|
|
|
|
|
#include "debugger_global.h"
|
2015-12-09 16:17:47 +01:00
|
|
|
#include "debuggerconstants.h"
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
#include <projectexplorer/runconfiguration.h>
|
|
|
|
|
|
|
|
|
|
namespace Debugger {
|
|
|
|
|
|
|
|
|
|
namespace Internal { class DebuggerRunConfigWidget; }
|
|
|
|
|
|
2015-12-09 16:17:47 +01:00
|
|
|
enum DebuggerLanguageStatus {
|
|
|
|
|
DisabledLanguage = 0,
|
|
|
|
|
EnabledLanguage,
|
|
|
|
|
AutoEnabledLanguage
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class DEBUGGER_EXPORT DebuggerRunConfigurationAspectData
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
DebuggerLanguageStatus useCppDebugger = AutoEnabledLanguage;
|
|
|
|
|
DebuggerLanguageStatus useQmlDebugger = AutoEnabledLanguage;
|
|
|
|
|
uint qmlDebugServerPort = Constants::QML_DEFAULT_DEBUG_SERVER_PORT;
|
|
|
|
|
bool useMultiProcess = false;
|
|
|
|
|
};
|
|
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
class DEBUGGER_EXPORT DebuggerRunConfigurationAspect
|
2013-08-08 17:37:37 +02:00
|
|
|
: public ProjectExplorer::IRunConfigurationAspect
|
2013-03-27 13:03:15 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
DebuggerRunConfigurationAspect(ProjectExplorer::RunConfiguration *runConfiguration);
|
2013-08-12 17:04:10 +02:00
|
|
|
DebuggerRunConfigurationAspect *create(ProjectExplorer::RunConfiguration *runConfiguration) const;
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
void fromMap(const QVariantMap &map);
|
2013-08-12 17:05:52 +02:00
|
|
|
void toMap(QVariantMap &map) const;
|
2013-03-27 13:03:15 +01:00
|
|
|
|
2013-03-27 17:17:24 +01:00
|
|
|
ProjectExplorer::RunConfigWidget *createConfigurationWidget();
|
2013-03-27 13:03:15 +01:00
|
|
|
|
|
|
|
|
bool useCppDebugger() const;
|
|
|
|
|
void setUseCppDebugger(bool value);
|
|
|
|
|
bool useQmlDebugger() const;
|
|
|
|
|
void setUseQmlDebugger(bool value);
|
|
|
|
|
uint qmlDebugServerPort() const;
|
|
|
|
|
void setQmllDebugServerPort(uint port);
|
|
|
|
|
bool useMultiProcess() const;
|
|
|
|
|
void setUseMultiProcess(bool on);
|
|
|
|
|
bool isQmlDebuggingSpinboxSuppressed() const;
|
|
|
|
|
|
2016-01-26 14:09:13 +01:00
|
|
|
int portsUsedByDebugger() const;
|
|
|
|
|
|
2013-03-27 13:03:15 +01:00
|
|
|
private:
|
|
|
|
|
friend class Internal::DebuggerRunConfigWidget;
|
2015-12-09 16:17:47 +01:00
|
|
|
DebuggerRunConfigurationAspectData d;
|
2013-03-27 13:03:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGERRUNCONFIGURATIONASPECT_H
|