Extending Qt Creator Manual | IRunConfigurationAspect

Extending Qt Creator Manual 4.6.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)
| ~IRunConfigurationAspect() override
void | copyFrom(IRunConfigurationAspect *other)
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 | setSettingsKey(const QString &settingsKey)
void | setUsingGlobalSettings(bool value)
QString | settingsKey() const

## 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.

### IRunConfigurationAspect::~IRunConfigurationAspect()

Destroys the instance of IRunConfigurationAspect.

### void IRunConfigurationAspect::copyFrom(IRunConfigurationAspect *other)

### 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::setSettingsKey(const QString &settingsKey)

See also settingsKey().

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

See also isUsingGlobalSettings().

### QString IRunConfigurationAspect::settingsKey() const

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