Profile introduction

Introduce Profiles to store sets of values that describe a system/device.

These profiles are held by a target, getting rid of much of the information
stored in the Build-/Run-/DeployConfigurations, greatly simplifying those.

This is a squash of the wip/profile branch which has been on gerrit for a
while, rebased to current master.

Change-Id: I25956c8dd4d1962b2134bfaa8a8076ae3909460f
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Tobias Hunger
2012-04-24 15:49:09 +02:00
parent 8c77b8c9d7
commit 2431456216
379 changed files with 12690 additions and 14437 deletions

View File

@@ -50,14 +50,11 @@ namespace Utils {
class EnvironmentItem;
}
namespace QtSupport {
class BaseQtVersion;
}
namespace QtSupport { class BaseQtVersion; }
namespace QmlProjectManager {
namespace Internal {
class QmlProjectTarget;
class QmlProjectRunConfigurationFactory;
class QmlProjectRunConfigurationWidget;
}
@@ -68,20 +65,14 @@ class QMLPROJECTMANAGER_EXPORT QmlProjectRunConfiguration : public ProjectExplor
friend class Internal::QmlProjectRunConfigurationFactory;
friend class Internal::QmlProjectRunConfigurationWidget;
// used in qmldumptool.cpp
Q_PROPERTY(int qtVersionId READ qtVersionId)
public:
QmlProjectRunConfiguration(Internal::QmlProjectTarget *parent);
QmlProjectRunConfiguration(ProjectExplorer::Target *parent);
virtual ~QmlProjectRunConfiguration();
Internal::QmlProjectTarget *qmlTarget() const;
QString viewerPath() const;
QString observerPath() const;
QString viewerArguments() const;
QString workingDirectory() const;
int qtVersionId() const;
QtSupport::BaseQtVersion *qtVersion() const;
enum MainScriptSource {
@@ -110,10 +101,9 @@ public slots:
private slots:
void updateEnabled();
void updateQtVersions();
protected:
QmlProjectRunConfiguration(Internal::QmlProjectTarget *parent,
QmlProjectRunConfiguration(ProjectExplorer::Target *parent,
QmlProjectRunConfiguration *source);
virtual bool fromMap(const QVariantMap &map);
void setEnabled(bool value);
@@ -121,7 +111,6 @@ protected:
private:
void ctor();
static bool isValidVersion(QtSupport::BaseQtVersion *version);
void setQtVersionId(int id);
static QString canonicalCapsPath(const QString &filePath);
@@ -138,7 +127,6 @@ private:
QString m_scriptFile;
QString m_qmlViewerArgs;
Internal::QmlProjectTarget *m_projectTarget;
QWeakPointer<Internal::QmlProjectRunConfigurationWidget> m_configurationWidget;
bool m_isEnabled;