2009-02-25 09:15:00 +01:00
|
|
|
/**************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
2011-01-11 16:28:15 +01:00
|
|
|
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Contact: Nokia Corporation (info@qt.nokia.com)
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
** GNU Lesser General Public License Usage
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** This file may be used under the terms of the GNU Lesser General Public
|
|
|
|
|
** License version 2.1 as published by the Free Software Foundation and
|
|
|
|
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
|
|
|
|
** Please review the following information to ensure the GNU Lesser General
|
|
|
|
|
** Public License version 2.1 requirements will be met:
|
|
|
|
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
2011-04-13 08:42:33 +02:00
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
2010-12-17 16:01:08 +01:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2011-04-13 08:42:33 +02:00
|
|
|
** Other Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used in accordance with the terms and
|
|
|
|
|
** conditions contained in a signed written agreement between you and Nokia.
|
|
|
|
|
**
|
2010-12-17 16:01:08 +01:00
|
|
|
** If you have questions regarding the use of this file, please contact
|
2011-05-06 15:05:37 +02:00
|
|
|
** Nokia at info@qt.nokia.com.
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2009-02-25 09:15:00 +01:00
|
|
|
**************************************************************************/
|
2008-12-02 16:19:05 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
#ifndef QT4NODES_H
|
|
|
|
|
#define QT4NODES_H
|
|
|
|
|
|
2011-01-21 15:37:05 +01:00
|
|
|
#include "qt4buildconfiguration.h"
|
|
|
|
|
|
2010-01-20 14:47:08 +01:00
|
|
|
#include <coreplugin/ifile.h>
|
2008-12-02 12:01:29 +01:00
|
|
|
#include <projectexplorer/projectnodes.h>
|
2009-01-14 17:13:17 +01:00
|
|
|
#include <projectexplorer/project.h>
|
2011-01-20 18:05:58 +01:00
|
|
|
#include <projectexplorer/runconfiguration.h>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
#include <QtCore/QHash>
|
|
|
|
|
#include <QtCore/QStringList>
|
2009-01-14 17:13:17 +01:00
|
|
|
#include <QtCore/QDateTime>
|
|
|
|
|
#include <QtCore/QMap>
|
2010-03-10 16:55:37 +01:00
|
|
|
#include <QtCore/QFutureWatcher>
|
2010-08-10 16:27:35 +02:00
|
|
|
#include <QtCore/QFileSystemWatcher>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
// defined in proitems.h
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class ProFile;
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
|
|
namespace Core {
|
|
|
|
|
class ICore;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace Qt4ProjectManager {
|
|
|
|
|
|
|
|
|
|
// Import base classes into namespace
|
|
|
|
|
using ProjectExplorer::Node;
|
|
|
|
|
using ProjectExplorer::FileNode;
|
|
|
|
|
using ProjectExplorer::FolderNode;
|
|
|
|
|
using ProjectExplorer::ProjectNode;
|
|
|
|
|
using ProjectExplorer::NodesWatcher;
|
|
|
|
|
|
|
|
|
|
// Import enums into namespace
|
|
|
|
|
using ProjectExplorer::NodeType;
|
|
|
|
|
using ProjectExplorer::FileNodeType;
|
|
|
|
|
using ProjectExplorer::FolderNodeType;
|
|
|
|
|
using ProjectExplorer::ProjectNodeType;
|
|
|
|
|
|
|
|
|
|
using ProjectExplorer::UnknownFileType;
|
|
|
|
|
using ProjectExplorer::ProjectFileType;
|
|
|
|
|
|
|
|
|
|
class Qt4Project;
|
|
|
|
|
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
using ProjectExplorer::FileType;
|
|
|
|
|
class ProFileReader;
|
2009-05-12 14:12:20 +02:00
|
|
|
class Qt4UiCodeModelSupport;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
// Type of projects
|
|
|
|
|
enum Qt4ProjectType {
|
|
|
|
|
InvalidProject = 0,
|
|
|
|
|
ApplicationTemplate,
|
|
|
|
|
LibraryTemplate,
|
|
|
|
|
ScriptTemplate,
|
2011-05-05 17:42:35 +02:00
|
|
|
AuxTemplate,
|
2008-12-02 12:01:29 +01:00
|
|
|
SubDirsTemplate
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Other variables of interest
|
|
|
|
|
enum Qt4Variable {
|
|
|
|
|
DefinesVar = 1,
|
|
|
|
|
IncludePathVar,
|
|
|
|
|
UiDirVar,
|
2009-05-13 18:09:47 +02:00
|
|
|
MocDirVar,
|
2010-01-12 13:13:22 +01:00
|
|
|
PkgConfigVar,
|
2010-03-29 15:17:04 +02:00
|
|
|
PrecompiledHeaderVar,
|
2010-08-16 18:23:30 +02:00
|
|
|
LibDirectoriesVar,
|
2010-09-21 14:28:55 +02:00
|
|
|
ConfigVar,
|
2010-10-05 17:38:45 +02:00
|
|
|
QmlImportPathVar,
|
2010-12-14 16:19:44 +01:00
|
|
|
Makefile,
|
2011-05-10 16:18:04 +02:00
|
|
|
SymbianCapabilities
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class Qt4PriFileNode;
|
|
|
|
|
class Qt4ProFileNode;
|
|
|
|
|
|
2010-01-20 14:47:08 +01:00
|
|
|
class Qt4PriFile : public Core::IFile
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
Qt4PriFile(Qt4PriFileNode *qt4PriFile);
|
2011-05-10 20:43:03 +02:00
|
|
|
virtual bool save(QString *errorString, const QString &fileName, bool autoSave);
|
2010-01-20 14:47:08 +01:00
|
|
|
virtual QString fileName() const;
|
2010-05-11 14:13:38 +02:00
|
|
|
virtual void rename(const QString &newName);
|
2010-01-20 14:47:08 +01:00
|
|
|
|
|
|
|
|
virtual QString defaultPath() const;
|
|
|
|
|
virtual QString suggestedFileName() const;
|
|
|
|
|
virtual QString mimeType() const;
|
|
|
|
|
|
|
|
|
|
virtual bool isModified() const;
|
|
|
|
|
virtual bool isReadOnly() const;
|
|
|
|
|
virtual bool isSaveAsAllowed() const;
|
|
|
|
|
|
2010-03-19 10:28:05 +01:00
|
|
|
ReloadBehavior reloadBehavior(ChangeTrigger state, ChangeType type) const;
|
2011-04-04 15:24:13 +02:00
|
|
|
bool reload(QString *errorString, ReloadFlag flag, ChangeType type);
|
2010-01-20 14:47:08 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Qt4PriFileNode *m_priFile;
|
|
|
|
|
};
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
// Implements ProjectNode for qt4 pro files
|
2009-03-19 16:33:44 +01:00
|
|
|
class Qt4PriFileNode : public ProjectExplorer::ProjectNode
|
|
|
|
|
{
|
2008-12-02 12:01:29 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
Q_DISABLE_COPY(Qt4PriFileNode)
|
|
|
|
|
public:
|
2008-12-05 14:29:18 +01:00
|
|
|
Qt4PriFileNode(Qt4Project *project, Qt4ProFileNode* qt4ProFileNode, const QString &filePath);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-03-10 16:55:37 +01:00
|
|
|
void update(ProFile *includeFileExact, ProFileReader *readerExact, ProFile *includeFileCumlative, ProFileReader *readerCumalative);
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
// ProjectNode interface
|
2010-05-11 14:13:38 +02:00
|
|
|
QList<ProjectAction> supportedActions(Node *node) const;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-02-02 11:59:24 +01:00
|
|
|
bool hasBuildTargets() const { return false; }
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-08-26 18:33:16 +02:00
|
|
|
bool canAddSubProject(const QString &proFilePath) const;
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
bool addSubProjects(const QStringList &proFilePaths);
|
|
|
|
|
bool removeSubProjects(const QStringList &proFilePaths);
|
|
|
|
|
|
|
|
|
|
bool addFiles(const FileType fileType, const QStringList &filePaths,
|
|
|
|
|
QStringList *notAdded = 0);
|
|
|
|
|
bool removeFiles(const FileType fileType, const QStringList &filePaths,
|
|
|
|
|
QStringList *notRemoved = 0);
|
2010-08-10 16:27:35 +02:00
|
|
|
bool deleteFiles(const FileType fileType,
|
|
|
|
|
const QStringList &filePaths);
|
2008-12-02 12:01:29 +01:00
|
|
|
bool renameFile(const FileType fileType,
|
|
|
|
|
const QString &filePath, const QString &newFilePath);
|
|
|
|
|
|
2010-10-13 15:22:52 +02:00
|
|
|
void folderChanged(const QString &changedFolder);
|
2010-08-10 16:27:35 +02:00
|
|
|
|
2010-08-24 17:17:11 +02:00
|
|
|
bool deploysFolder(const QString &folder) const;
|
2011-01-20 18:05:58 +01:00
|
|
|
QList<ProjectExplorer::RunConfiguration *> runConfigurationsFor(Node *node);
|
2010-08-24 17:17:11 +02:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
protected:
|
|
|
|
|
void clear();
|
|
|
|
|
static QStringList varNames(FileType type);
|
2010-08-10 16:27:35 +02:00
|
|
|
static QStringList dynamicVarNames(ProFileReader *readerExact, ProFileReader *readerCumulative);
|
|
|
|
|
static QSet<QString> filterFiles(ProjectExplorer::FileType fileType, const QSet<QString> &files);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
enum ChangeType {
|
|
|
|
|
AddToProFile,
|
|
|
|
|
RemoveFromProFile
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
bool changeIncludes(ProFile *includeFile,
|
|
|
|
|
const QStringList &proFilePaths,
|
|
|
|
|
ChangeType change);
|
|
|
|
|
|
|
|
|
|
void changeFiles(const FileType fileType,
|
|
|
|
|
const QStringList &filePaths,
|
|
|
|
|
QStringList *notChanged,
|
|
|
|
|
ChangeType change);
|
2008-12-05 14:29:18 +01:00
|
|
|
|
2008-12-09 17:17:12 +01:00
|
|
|
private slots:
|
|
|
|
|
void scheduleUpdate();
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
private:
|
2010-01-14 22:58:55 +01:00
|
|
|
void save(const QStringList &lines);
|
2008-12-02 12:01:29 +01:00
|
|
|
bool priFileWritable(const QString &path);
|
2010-01-22 16:49:57 +01:00
|
|
|
bool saveModifiedEditors();
|
2010-06-08 12:15:43 +02:00
|
|
|
QStringList formResources(const QString &formFile) const;
|
2010-03-10 16:55:37 +01:00
|
|
|
QStringList baseVPaths(ProFileReader *reader, const QString &projectDir);
|
|
|
|
|
QStringList fullVPaths(const QStringList &baseVPaths, ProFileReader *reader, FileType type, const QString &qmakeVariable, const QString &projectDir);
|
2010-08-10 16:27:35 +02:00
|
|
|
void watchFolders(const QSet<QString> &folders);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
Qt4Project *m_project;
|
2008-12-05 14:29:18 +01:00
|
|
|
Qt4ProFileNode *m_qt4ProFileNode;
|
2008-12-02 12:01:29 +01:00
|
|
|
QString m_projectFilePath;
|
|
|
|
|
QString m_projectDir;
|
2008-12-09 17:17:12 +01:00
|
|
|
|
2009-05-12 14:12:20 +02:00
|
|
|
QMap<QString, Qt4UiCodeModelSupport *> m_uiCodeModelSupport;
|
2010-01-22 16:49:57 +01:00
|
|
|
Qt4PriFile *m_qt4PriFile;
|
2009-05-12 14:12:20 +02:00
|
|
|
|
2010-08-10 16:27:35 +02:00
|
|
|
// Memory is cheap...
|
|
|
|
|
// TODO (really that cheap?)
|
|
|
|
|
QMap<ProjectExplorer::FileType, QSet<QString> > m_files;
|
|
|
|
|
QSet<QString> m_recursiveEnumerateFiles;
|
|
|
|
|
QSet<QString> m_watchedFolders;
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
// managed by Qt4ProFileNode
|
|
|
|
|
friend class Qt4ProFileNode;
|
2010-01-20 14:47:08 +01:00
|
|
|
friend class Qt4PriFile; // for scheduling updates on modified
|
2009-08-17 17:59:57 +02:00
|
|
|
// internal temporary subtree representation
|
2009-08-22 00:59:35 +02:00
|
|
|
friend struct InternalNode;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2010-03-10 16:55:37 +01:00
|
|
|
struct TargetInformation
|
|
|
|
|
{
|
|
|
|
|
bool valid;
|
|
|
|
|
QString workingDir;
|
|
|
|
|
QString target;
|
|
|
|
|
QString executable;
|
2010-05-07 10:41:34 +02:00
|
|
|
QString buildDir;
|
2010-03-10 16:55:37 +01:00
|
|
|
bool operator==(const TargetInformation &other) const
|
|
|
|
|
{
|
|
|
|
|
return workingDir == other.workingDir
|
|
|
|
|
&& target == other.target
|
|
|
|
|
&& executable == other.executable
|
2010-05-07 10:41:34 +02:00
|
|
|
&& valid == valid
|
|
|
|
|
&& buildDir == buildDir;
|
2010-03-10 16:55:37 +01:00
|
|
|
}
|
|
|
|
|
bool operator!=(const TargetInformation &other) const
|
|
|
|
|
{
|
|
|
|
|
return !(*this == other);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TargetInformation()
|
|
|
|
|
: valid(false)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
TargetInformation(const TargetInformation &other)
|
|
|
|
|
: valid(other.valid),
|
|
|
|
|
workingDir(other.workingDir),
|
|
|
|
|
target(other.target),
|
2010-05-07 10:41:34 +02:00
|
|
|
executable(other.executable),
|
|
|
|
|
buildDir(other.buildDir)
|
2010-03-10 16:55:37 +01:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
2010-10-27 17:19:52 +02:00
|
|
|
struct InstallsItem {
|
|
|
|
|
InstallsItem(QString p, QStringList f) : path(p), files(f) {}
|
|
|
|
|
QString path;
|
|
|
|
|
QStringList files;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct InstallsList {
|
|
|
|
|
void clear() { targetPath.clear(); items.clear(); }
|
|
|
|
|
QString targetPath;
|
|
|
|
|
QList<InstallsItem> items;
|
|
|
|
|
};
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
// Implements ProjectNode for qt4 pro files
|
2009-03-19 16:33:44 +01:00
|
|
|
class Qt4ProFileNode : public Qt4PriFileNode
|
|
|
|
|
{
|
2008-12-02 12:01:29 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
Q_DISABLE_COPY(Qt4ProFileNode)
|
|
|
|
|
public:
|
|
|
|
|
Qt4ProFileNode(Qt4Project *project,
|
|
|
|
|
const QString &filePath,
|
|
|
|
|
QObject *parent = 0);
|
2008-12-02 18:14:06 +01:00
|
|
|
~Qt4ProFileNode();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-03-10 16:55:37 +01:00
|
|
|
bool isParent(Qt4ProFileNode *node);
|
|
|
|
|
|
2010-02-02 11:59:24 +01:00
|
|
|
bool hasBuildTargets() const;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
Qt4ProjectType projectType() const;
|
|
|
|
|
|
|
|
|
|
QStringList variableValue(const Qt4Variable var) const;
|
|
|
|
|
|
2009-05-12 14:12:20 +02:00
|
|
|
void updateCodeModelSupportFromBuild(const QStringList &files);
|
2010-02-26 14:55:25 +01:00
|
|
|
void updateCodeModelSupportFromEditor(const QString &uiFileName, const QString &contents);
|
2009-12-03 16:23:15 +01:00
|
|
|
|
2011-01-21 15:37:05 +01:00
|
|
|
QString buildDir(Qt4BuildConfiguration *bc = 0) const;
|
2009-12-04 19:22:12 +01:00
|
|
|
|
2009-12-03 16:23:15 +01:00
|
|
|
QString uiDirectory() const;
|
|
|
|
|
static QString uiHeaderFile(const QString &uiDir, const QString &formFile);
|
|
|
|
|
|
2010-07-06 14:32:33 +02:00
|
|
|
const Qt4ProFileNode *findProFileFor(const QString &string) const;
|
|
|
|
|
TargetInformation targetInformation(const QString &fileName) const;
|
|
|
|
|
TargetInformation targetInformation() const;
|
2009-12-04 19:22:12 +01:00
|
|
|
|
2010-10-27 17:19:52 +02:00
|
|
|
InstallsList installsList() const;
|
|
|
|
|
|
2010-10-05 17:38:45 +02:00
|
|
|
QString makefile() const;
|
2010-12-14 16:19:44 +01:00
|
|
|
QStringList symbianCapabilities() const;
|
2011-05-10 16:18:04 +02:00
|
|
|
bool isDeployable() const;
|
2010-10-05 17:38:45 +02:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
void update();
|
2010-03-10 16:55:37 +01:00
|
|
|
void scheduleUpdate();
|
|
|
|
|
|
2010-10-27 16:27:22 +02:00
|
|
|
void emitProFileInvalidated();
|
2010-11-02 16:39:45 +01:00
|
|
|
void emitProFileUpdated();
|
2010-10-27 16:27:22 +02:00
|
|
|
|
|
|
|
|
bool validParse() const;
|
|
|
|
|
|
2010-11-18 17:31:30 +01:00
|
|
|
bool hasBuildTargets(Qt4ProjectType projectType) const;
|
2011-01-20 18:05:58 +01:00
|
|
|
|
2010-03-10 16:55:37 +01:00
|
|
|
public slots:
|
|
|
|
|
void asyncUpdate();
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
private slots:
|
2009-01-14 17:13:17 +01:00
|
|
|
void buildStateChanged(ProjectExplorer::Project*);
|
2010-03-10 16:55:37 +01:00
|
|
|
void applyAsyncEvaluate();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2008-12-09 17:17:12 +01:00
|
|
|
private:
|
2010-03-10 16:55:37 +01:00
|
|
|
void setupReader();
|
2011-02-09 20:03:04 +01:00
|
|
|
enum EvalResult { EvalFail, EvalPartial, EvalOk };
|
|
|
|
|
EvalResult evaluate();
|
|
|
|
|
void applyEvaluate(EvalResult parseResult, bool async);
|
2010-03-10 16:55:37 +01:00
|
|
|
|
2011-02-09 20:03:04 +01:00
|
|
|
void asyncEvaluate(QFutureInterface<EvalResult> &fi);
|
2010-03-10 16:55:37 +01:00
|
|
|
|
2009-12-03 16:23:15 +01:00
|
|
|
typedef QHash<Qt4Variable, QStringList> Qt4VariablesHash;
|
|
|
|
|
|
2009-05-12 14:12:20 +02:00
|
|
|
void createUiCodeModelSupport();
|
|
|
|
|
QStringList updateUiFiles();
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-04-13 16:34:51 +02:00
|
|
|
QString uiDirPath(ProFileReader *reader) const;
|
|
|
|
|
QString mocDirPath(ProFileReader *reader) const;
|
2008-12-02 12:01:29 +01:00
|
|
|
QStringList includePaths(ProFileReader *reader) const;
|
2010-03-29 15:17:04 +02:00
|
|
|
QStringList libDirectories(ProFileReader *reader) const;
|
2008-12-02 12:01:29 +01:00
|
|
|
QStringList subDirsPaths(ProFileReader *reader) const;
|
2010-03-10 16:55:37 +01:00
|
|
|
TargetInformation targetInformation(ProFileReader *reader) const;
|
2010-10-27 17:19:52 +02:00
|
|
|
void setupInstallsList(const ProFileReader *reader);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
void invalidate();
|
|
|
|
|
|
|
|
|
|
Qt4ProjectType m_projectType;
|
2009-12-03 16:23:15 +01:00
|
|
|
Qt4VariablesHash m_varValues;
|
2011-05-10 16:18:04 +02:00
|
|
|
bool m_isDeployable;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2009-01-14 17:13:17 +01:00
|
|
|
QMap<QString, QDateTime> m_uitimestamps;
|
2010-03-10 16:55:37 +01:00
|
|
|
TargetInformation m_qt4targetInformation;
|
2010-10-27 17:19:52 +02:00
|
|
|
InstallsList m_installsList;
|
2008-12-02 12:01:29 +01:00
|
|
|
friend class Qt4NodeHierarchy;
|
2010-03-10 16:55:37 +01:00
|
|
|
|
2010-10-27 16:27:22 +02:00
|
|
|
bool m_validParse;
|
|
|
|
|
|
2010-03-10 16:55:37 +01:00
|
|
|
// Async stuff
|
2011-02-09 20:03:04 +01:00
|
|
|
QFutureWatcher<EvalResult> m_parseFutureWatcher;
|
2010-03-10 16:55:37 +01:00
|
|
|
ProFileReader *m_readerExact;
|
|
|
|
|
ProFileReader *m_readerCumulative;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2009-03-19 16:33:44 +01:00
|
|
|
class Qt4NodesWatcher : public ProjectExplorer::NodesWatcher
|
|
|
|
|
{
|
2008-12-02 12:01:29 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
Q_DISABLE_COPY(Qt4NodesWatcher)
|
|
|
|
|
public:
|
|
|
|
|
Qt4NodesWatcher(QObject *parent = 0);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void projectTypeChanged(Qt4ProjectManager::Internal::Qt4ProFileNode *projectNode,
|
|
|
|
|
const Qt4ProjectManager::Internal::Qt4ProjectType oldType,
|
|
|
|
|
const Qt4ProjectManager::Internal::Qt4ProjectType newType);
|
|
|
|
|
|
|
|
|
|
void variablesChanged(Qt4ProFileNode *projectNode,
|
|
|
|
|
const QHash<Qt4Variable, QStringList> &oldValues,
|
|
|
|
|
const QHash<Qt4Variable, QStringList> &newValues);
|
|
|
|
|
|
2010-10-27 16:27:22 +02:00
|
|
|
void proFileUpdated(Qt4ProjectManager::Internal::Qt4ProFileNode *projectNode, bool success);
|
|
|
|
|
void proFileInvalidated(Qt4ProjectManager::Internal::Qt4ProFileNode *projectNode);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
// let them emit signals
|
|
|
|
|
friend class Qt4ProFileNode;
|
|
|
|
|
friend class Qt4PriFileNode;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Qt4ProjectManager
|
|
|
|
|
|
|
|
|
|
#endif // QT4NODES_H
|