forked from qt-creator/qt-creator
QbsProjectManager: Provide functionality to add files to a Qbs project.
Started implementing common functions to add new and existing files to a project, using the API provided by Qbs. Works for most use cases already. However, this is still work in progress. Change-Id: I36ea921c203bd7caad564a45cd40cda408c72b54 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Christian Kandeler
parent
92e8009053
commit
a8304f3b42
@@ -105,6 +105,8 @@ public:
|
||||
QbsGroupNode(const qbs::GroupData *grp, const QString &productPath);
|
||||
|
||||
bool isEnabled() const;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const;
|
||||
bool addFiles(const QStringList &filePaths, QStringList *notAdded = 0);
|
||||
void updateQbsGroupData(const qbs::GroupData *grp, const QString &productPath,
|
||||
bool productWasEnabled, bool productIsEnabled);
|
||||
|
||||
@@ -137,6 +139,8 @@ public:
|
||||
|
||||
bool isEnabled() const;
|
||||
bool showInSimpleTree() const;
|
||||
QList<ProjectExplorer::ProjectAction> supportedActions(Node *node) const;
|
||||
bool addFiles(const QStringList &filePaths, QStringList *notAdded = 0);
|
||||
|
||||
void setQbsProductData(const qbs::ProductData prd);
|
||||
const qbs::ProductData qbsProductData() const { return m_qbsProductData; }
|
||||
@@ -163,6 +167,8 @@ public:
|
||||
explicit QbsProjectNode(const QString &path);
|
||||
~QbsProjectNode();
|
||||
|
||||
bool addFiles(const QStringList &filePaths, QStringList *notAdded = 0);
|
||||
|
||||
void update(const qbs::Project &prj);
|
||||
void update(const qbs::ProjectData &prjData);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user