forked from qt-creator/qt-creator
Allow updating of configuration or file list separately
Now it will only update the list of files when you edit [project].files, and only reparse all files when you edit [project].config or [project].includes. When updating the file list it will only parse the added files.
This commit is contained in:
@@ -94,6 +94,14 @@ public:
|
||||
QString buildParser(const QString &buildConfiguration) const;
|
||||
ProjectExplorer::ToolChain *toolChain() const;
|
||||
|
||||
enum RefreshOptions {
|
||||
Files = 0x01,
|
||||
Configuration = 0x02,
|
||||
Everything = Files | Configuration
|
||||
};
|
||||
|
||||
void refresh(RefreshOptions options);
|
||||
|
||||
QStringList includePaths() const;
|
||||
void setIncludePaths(const QStringList &includePaths);
|
||||
|
||||
@@ -106,18 +114,15 @@ public:
|
||||
|
||||
public Q_SLOTS:
|
||||
void setToolChainId(const QString &toolChainId);
|
||||
void refresh();
|
||||
|
||||
protected:
|
||||
virtual void saveSettingsImpl(ProjectExplorer::PersistentSettingsWriter &writer);
|
||||
virtual void restoreSettingsImpl(ProjectExplorer::PersistentSettingsReader &reader);
|
||||
|
||||
private:
|
||||
void parseProject();
|
||||
void parseProject(RefreshOptions options);
|
||||
QStringList convertToAbsoluteFiles(const QStringList &paths) const;
|
||||
|
||||
QStringList readLines(const QString &absoluteFileName) const;
|
||||
|
||||
Manager *m_manager;
|
||||
QString m_fileName;
|
||||
QString m_filesFileName;
|
||||
|
||||
Reference in New Issue
Block a user