Nim: Use helpers from FolderNode

Clean up a bit.

Change-Id: Icff71c84ab23dba96b572cad00362bffcbec3270
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2016-09-30 22:52:12 +02:00
committed by Tobias Hunger
parent 27a2ebb0d7
commit e2fef2d37b
3 changed files with 22 additions and 119 deletions

View File

@@ -47,12 +47,8 @@ public:
NimProject(NimProjectManager *projectManager, const QString &fileName);
QString displayName() const override;
ProjectExplorer::IProjectManager *projectManager() const override;
ProjectExplorer::ProjectNode *rootProjectNode() const override;
QStringList files(FilesMode) const override;
bool needsConfiguration() const override;
QString projectDirectoryPath() const;
QString projectFilePath() const;
bool supportsKit(ProjectExplorer::Kit *k, QString *errorMessage) const override;
Utils::FileNameList nimFiles() const;
@@ -60,17 +56,7 @@ private:
void scheduleProjectScan();
void populateProject();
void recursiveScanDirectory(const QDir &dir, QSet<QString> &container);
void addNodes(const QSet<QString> &nodes);
void removeNodes(const QSet<QString> &nodes);
ProjectExplorer::FolderNode *findFolderFor(const QStringList &projectDirectoryPath);
NimProjectManager *m_projectManager;
TextEditor::TextDocument *m_document;
NimProjectNode *m_rootNode;
QDir m_projectDir;
QFileInfo m_projectFile;
QSet<QString> m_files;
QFileSystemWatcher m_fsWatcher;