forked from qt-creator/qt-creator
Debugger: (Sub-)Aspectify DebuggerRunConfigurationAspect
Change-Id: If7fcc52a88dec02061c4e0cce4aa48d1b923ceb2 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -29,26 +29,11 @@
|
||||
#include "debuggerconstants.h"
|
||||
|
||||
#include <projectexplorer/runconfiguration.h>
|
||||
#include <projectexplorer/runconfigurationaspects.h>
|
||||
|
||||
namespace Debugger {
|
||||
|
||||
namespace Internal { class DebuggerRunConfigWidget; }
|
||||
|
||||
enum DebuggerLanguageStatus {
|
||||
DisabledLanguage = 0,
|
||||
EnabledLanguage,
|
||||
AutoEnabledLanguage
|
||||
};
|
||||
|
||||
class DEBUGGER_EXPORT DebuggerRunConfigurationAspectData
|
||||
{
|
||||
public:
|
||||
DebuggerLanguageStatus useCppDebugger = AutoEnabledLanguage;
|
||||
DebuggerLanguageStatus useQmlDebugger = AutoEnabledLanguage;
|
||||
|
||||
bool useMultiProcess = false;
|
||||
QString overrideStartup;
|
||||
};
|
||||
namespace Internal { class DebuggerLanguageAspect; }
|
||||
|
||||
class DEBUGGER_EXPORT DebuggerRunConfigurationAspect
|
||||
: public ProjectExplorer::GlobalOrProjectAspect
|
||||
@@ -71,8 +56,10 @@ public:
|
||||
int portsUsedByDebugger() const;
|
||||
|
||||
private:
|
||||
friend class Internal::DebuggerRunConfigWidget;
|
||||
DebuggerRunConfigurationAspectData d;
|
||||
Internal::DebuggerLanguageAspect *m_cppAspect;
|
||||
Internal::DebuggerLanguageAspect *m_qmlAspect;
|
||||
ProjectExplorer::BaseBoolAspect *m_multiProcessAspect;
|
||||
ProjectExplorer::BaseStringAspect *m_overrideStartupAspect;
|
||||
ProjectExplorer::Target *m_target;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user