Extending Qt Creator Manual | IRunConfigurationAspect

Extending Qt Creator Manual 4.3.0

# IRunConfigurationAspect Class

(ProjectExplorer::IRunConfigurationAspect)

The IRunConfigurationAspect class provides an additional configuration aspect. More...

Header: | #include <IRunConfigurationAspect>
Inherited By: | Debugger::DebuggerRunConfigurationAspect, ProjectExplorer::ArgumentsAspect, ProjectExplorer::TerminalAspect, and ProjectExplorer::WorkingDirectoryAspect

- List of all members, including inherited members

## Public Functions

| IRunConfigurationAspect(RunConfiguration *runConfig)
virtual IRunConfigurationAspect * | clone(RunConfiguration *runConfig) const
virtual IRunConfigurationAspect * | create(RunConfiguration *runConfig) const = 0
RunConfigWidget * | createConfigurationWidget() const
ISettingsAspect * | currentSettings() const
QString | displayName() const
ISettingsAspect * | globalSettings() const
Core::Id | id() const
bool | isUsingGlobalSettings() const
ISettingsAspect * | projectSettings() const
void | resetProjectToGlobalSettings()
RunConfiguration * | runConfiguration() const
void | setDisplayName(const QString &displayName)
void | setGlobalSettings(ISettingsAspect *settings)
void | setId(Core::Id id)
void | setProjectSettings(ISettingsAspect *settings)
void | setRunConfigWidgetCreator(const RunConfigWidgetCreator &runConfigWidgetCreator)
void | setUsingGlobalSettings(bool value)

## Protected Functions

virtual void | fromMap(const QVariantMap &map)
virtual void | toMap(QVariantMap &data) const

## Detailed Description

The IRunConfigurationAspect class provides an additional configuration aspect.

Aspects are a mechanism to add RunControl-specific options to a run configuration without subclassing the run configuration for every addition. This prevents a combinatorial explosion of subclasses and eliminates the need to add all options to the base class.

## Member Function Documentation

### IRunConfigurationAspect::IRunConfigurationAspect(RunConfiguration *runConfig)

Default constructs an instance of IRunConfigurationAspect.

### `[virtual]` IRunConfigurationAspect *IRunConfigurationAspect::clone(RunConfiguration *runConfig) const

### `[pure virtual]` IRunConfigurationAspect *IRunConfigurationAspect::create(RunConfiguration *runConfig) const

### RunConfigWidget *IRunConfigurationAspect::createConfigurationWidget() const

### ISettingsAspect *IRunConfigurationAspect::currentSettings() const

### QString IRunConfigurationAspect::displayName() const

See also setDisplayName().

### `[virtual protected]` void IRunConfigurationAspect::fromMap(const QVariantMap &map)

### ISettingsAspect *IRunConfigurationAspect::globalSettings() const

See also setGlobalSettings().

### Core::Id IRunConfigurationAspect::id() const

See also setId().

### bool IRunConfigurationAspect::isUsingGlobalSettings() const

### ISettingsAspect *IRunConfigurationAspect::projectSettings() const

See also setProjectSettings().

### void IRunConfigurationAspect::resetProjectToGlobalSettings()

### RunConfiguration *IRunConfigurationAspect::runConfiguration() const

### void IRunConfigurationAspect::setDisplayName(const QString &displayName)

See also displayName().

### void IRunConfigurationAspect::setGlobalSettings(ISettingsAspect *settings)

See also globalSettings().

### void IRunConfigurationAspect::setId(Core::Id id)

See also id().

### void IRunConfigurationAspect::setProjectSettings(ISettingsAspect *settings)

See also projectSettings().

### void IRunConfigurationAspect::setRunConfigWidgetCreator(const RunConfigWidgetCreator &runConfigWidgetCreator)

### void IRunConfigurationAspect::setUsingGlobalSettings(bool value)

See also isUsingGlobalSettings().

### `[virtual protected]` void IRunConfigurationAspect::toMap(QVariantMap &data) const