Header cleanup in ProjectExplorer.

Change-Id: I19f100003427ba43aaae5ba0dc7078088017cb09
Reviewed-on: http://codereview.qt.nokia.com/3178
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint
2011-08-18 13:46:52 +02:00
parent e434969446
commit cc632c1597
45 changed files with 125 additions and 93 deletions

View File

@@ -38,6 +38,7 @@
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <projectexplorer/buildsteplist.h> #include <projectexplorer/buildsteplist.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>

View File

@@ -44,6 +44,8 @@
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <projectexplorer/abi.h>
#include <texteditor/fontsettings.h> #include <texteditor/fontsettings.h>
#include <QtGui/QVBoxLayout> #include <QtGui/QVBoxLayout>

View File

@@ -46,6 +46,8 @@
#include <utils/detailswidget.h> #include <utils/detailswidget.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/debuggerlanguagechooser.h> #include <utils/debuggerlanguagechooser.h>
#include <utils/qtcprocess.h>
#include <utils/stringutils.h>
#include <QtGui/QFormLayout> #include <QtGui/QFormLayout>
#include <QtGui/QLineEdit> #include <QtGui/QLineEdit>

View File

@@ -92,6 +92,7 @@
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <projectexplorer/session.h> #include <projectexplorer/session.h>
#include <projectexplorer/target.h> #include <projectexplorer/target.h>
#include <projectexplorer/abi.h> #include <projectexplorer/abi.h>

View File

@@ -33,6 +33,8 @@
#include "debuggertoolchaincombobox.h" #include "debuggertoolchaincombobox.h"
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <projectexplorer/abi.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QtCore/QFileInfo> #include <QtCore/QFileInfo>

View File

@@ -36,6 +36,7 @@
#include "genericprojectconstants.h" #include "genericprojectconstants.h"
#include "generictarget.h" #include "generictarget.h"
#include <projectexplorer/abi.h>
#include <projectexplorer/buildenvironmentwidget.h> #include <projectexplorer/buildenvironmentwidget.h>
#include <projectexplorer/headerpath.h> #include <projectexplorer/headerpath.h>
#include <projectexplorer/customexecutablerunconfiguration.h> #include <projectexplorer/customexecutablerunconfiguration.h>

View File

@@ -31,6 +31,7 @@
**************************************************************************/ **************************************************************************/
#include "abiwidget.h" #include "abiwidget.h"
#include "abi.h"
#include <QtGui/QComboBox> #include <QtGui/QComboBox>
#include <QtGui/QHBoxLayout> #include <QtGui/QHBoxLayout>

View File

@@ -35,11 +35,10 @@
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include "abi.h"
#include <QtGui/QWidget> #include <QtGui/QWidget>
namespace ProjectExplorer { namespace ProjectExplorer {
class Abi;
namespace Internal { namespace Internal {
class AbiWidgetPrivate; class AbiWidgetPrivate;

View File

@@ -36,6 +36,7 @@
#include "ioutputparser.h" #include "ioutputparser.h"
#include "project.h" #include "project.h"
#include "target.h" #include "target.h"
#include "task.h"
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/qtcprocess.h> #include <utils/qtcprocess.h>

View File

@@ -36,17 +36,17 @@
#include "buildstep.h" #include "buildstep.h"
#include "processparameters.h" #include "processparameters.h"
#include <utils/environment.h>
#include <utils/qtcprocess.h>
#include <QtCore/QString> #include <QtCore/QString>
#include <QtCore/QProcess>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QEventLoop; class QEventLoop;
class QTimer; class QTimer;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace Utils {
class QtcProcess;
}
namespace ProjectExplorer { namespace ProjectExplorer {
class IOutputParser; class IOutputParser;

View File

@@ -36,8 +36,6 @@
#include "runconfiguration.h" #include "runconfiguration.h"
#include "applicationlauncher.h" #include "applicationlauncher.h"
#include "abi.h"
namespace Utils { namespace Utils {
class AbstractMacroExpander; class AbstractMacroExpander;
class Environment; class Environment;

View File

@@ -32,6 +32,7 @@
#include "buildconfiguration.h" #include "buildconfiguration.h"
#include "toolchain.h"
#include "buildmanager.h" #include "buildmanager.h"
#include "buildsteplist.h" #include "buildsteplist.h"
#include "projectexplorer.h" #include "projectexplorer.h"
@@ -42,25 +43,47 @@
#include <coreplugin/variablemanager.h> #include <coreplugin/variablemanager.h>
#include <utils/stringutils.h>
#include <QtCore/QProcess> #include <QtCore/QProcess>
using namespace ProjectExplorer; static const char BUILD_STEP_LIST_COUNT[] = "ProjectExplorer.BuildConfiguration.BuildStepListCount";
static const char BUILD_STEP_LIST_PREFIX[] = "ProjectExplorer.BuildConfiguration.BuildStepList.";
static const char CLEAR_SYSTEM_ENVIRONMENT_KEY[] = "ProjectExplorer.BuildConfiguration.ClearSystemEnvironment";
static const char USER_ENVIRONMENT_CHANGES_KEY[] = "ProjectExplorer.BuildConfiguration.UserEnvironmentChanges";
static const char TOOLCHAIN_KEY[] = "ProjectExplorer.BuildCOnfiguration.ToolChain";
namespace { namespace ProjectExplorer {
namespace Internal {
const char * const BUILD_STEP_LIST_COUNT("ProjectExplorer.BuildConfiguration.BuildStepListCount"); class BuildConfigMacroExpander : public Utils::AbstractQtcMacroExpander {
const char * const BUILD_STEP_LIST_PREFIX("ProjectExplorer.BuildConfiguration.BuildStepList."); public:
const char * const CLEAR_SYSTEM_ENVIRONMENT_KEY("ProjectExplorer.BuildConfiguration.ClearSystemEnvironment"); explicit BuildConfigMacroExpander(const BuildConfiguration *bc) : m_bc(bc) {}
const char * const USER_ENVIRONMENT_CHANGES_KEY("ProjectExplorer.BuildConfiguration.UserEnvironmentChanges"); virtual bool resolveMacro(const QString &name, QString *ret);
const char * const TOOLCHAIN_KEY("ProjectExplorer.BuildCOnfiguration.ToolChain"); private:
const BuildConfiguration *m_bc;
};
} // namespace bool BuildConfigMacroExpander::resolveMacro(const QString &name, QString *ret)
{
if (name == QLatin1String("sourceDir")) {
*ret = QDir::toNativeSeparators(m_bc->target()->project()->projectDirectory());
return true;
}
if (name == QLatin1String("buildDir")) {
*ret = QDir::toNativeSeparators(m_bc->buildDirectory());
return true;
}
*ret = Core::VariableManager::instance()->value(name);
return !ret->isEmpty();
}
} // namespace Internal
BuildConfiguration::BuildConfiguration(Target *target, const QString &id) : BuildConfiguration::BuildConfiguration(Target *target, const QString &id) :
ProjectConfiguration(target, id), ProjectConfiguration(target, id),
m_clearSystemEnvironment(false), m_clearSystemEnvironment(false),
m_macroExpander(this), m_toolChain(0),
m_toolChain(0) m_macroExpander(0)
{ {
Q_ASSERT(target); Q_ASSERT(target);
BuildStepList *bsl = new BuildStepList(this, QLatin1String(Constants::BUILDSTEPS_BUILD)); BuildStepList *bsl = new BuildStepList(this, QLatin1String(Constants::BUILDSTEPS_BUILD));
@@ -84,8 +107,8 @@ BuildConfiguration::BuildConfiguration(Target *target, BuildConfiguration *sourc
ProjectConfiguration(target, source), ProjectConfiguration(target, source),
m_clearSystemEnvironment(source->m_clearSystemEnvironment), m_clearSystemEnvironment(source->m_clearSystemEnvironment),
m_userEnvironmentChanges(source->m_userEnvironmentChanges), m_userEnvironmentChanges(source->m_userEnvironmentChanges),
m_macroExpander(this), m_toolChain(source->m_toolChain),
m_toolChain(source->m_toolChain) m_macroExpander(0)
{ {
Q_ASSERT(target); Q_ASSERT(target);
// Do not clone stepLists here, do that in the derived constructor instead // Do not clone stepLists here, do that in the derived constructor instead
@@ -101,7 +124,16 @@ BuildConfiguration::BuildConfiguration(Target *target, BuildConfiguration *sourc
} }
BuildConfiguration::~BuildConfiguration() BuildConfiguration::~BuildConfiguration()
{ } {
delete m_macroExpander;
}
Utils::AbstractMacroExpander *BuildConfiguration::macroExpander()
{
if (!m_macroExpander)
m_macroExpander = new Internal::BuildConfigMacroExpander(this);
return m_macroExpander;
}
QStringList BuildConfiguration::knownStepLists() const QStringList BuildConfiguration::knownStepLists() const
{ {
@@ -284,20 +316,6 @@ QString BuildConfiguration::disabledReason() const
return QString(); return QString();
} }
bool BuildConfigMacroExpander::resolveMacro(const QString &name, QString *ret)
{
if (name == QLatin1String("sourceDir")) {
*ret = QDir::toNativeSeparators(m_bc->target()->project()->projectDirectory());
return true;
}
if (name == QLatin1String("buildDir")) {
*ret = QDir::toNativeSeparators(m_bc->buildDirectory());
return true;
}
*ret = Core::VariableManager::instance()->value(name);
return !ret->isEmpty();
}
/// ///
// IBuildConfigurationFactory // IBuildConfigurationFactory
/// ///
@@ -308,3 +326,5 @@ IBuildConfigurationFactory::IBuildConfigurationFactory(QObject *parent) :
IBuildConfigurationFactory::~IBuildConfigurationFactory() IBuildConfigurationFactory::~IBuildConfigurationFactory()
{ } { }
} // namespace ProjectExplorer

View File

@@ -36,12 +36,14 @@
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include "projectconfiguration.h" #include "projectconfiguration.h"
#include <utils/stringutils.h>
#include <utils/environment.h> #include <utils/environment.h>
#include <QtCore/QString>
#include <QtCore/QStringList> #include <QtCore/QStringList>
namespace Utils {
class AbstractMacroExpander;
}
namespace ProjectExplorer { namespace ProjectExplorer {
class BuildConfiguration; class BuildConfiguration;
@@ -50,14 +52,6 @@ class Target;
class ToolChain; class ToolChain;
class IOutputParser; class IOutputParser;
class BuildConfigMacroExpander : public Utils::AbstractQtcMacroExpander {
public:
BuildConfigMacroExpander(BuildConfiguration *bc) : m_bc(bc) {}
virtual bool resolveMacro(const QString &name, QString *ret);
private:
BuildConfiguration *m_bc;
};
class PROJECTEXPLORER_EXPORT BuildConfiguration : public ProjectConfiguration class PROJECTEXPLORER_EXPORT BuildConfiguration : public ProjectConfiguration
{ {
Q_OBJECT Q_OBJECT
@@ -94,7 +88,7 @@ public:
virtual bool isEnabled() const; virtual bool isEnabled() const;
virtual QString disabledReason() const; virtual QString disabledReason() const;
Utils::AbstractMacroExpander *macroExpander() { return &m_macroExpander; } Utils::AbstractMacroExpander *macroExpander();
virtual ProjectExplorer::ToolChain *toolChain() const; virtual ProjectExplorer::ToolChain *toolChain() const;
virtual void setToolChain(ProjectExplorer::ToolChain *tc); virtual void setToolChain(ProjectExplorer::ToolChain *tc);
@@ -129,8 +123,8 @@ private:
bool m_clearSystemEnvironment; bool m_clearSystemEnvironment;
QList<Utils::EnvironmentItem> m_userEnvironmentChanges; QList<Utils::EnvironmentItem> m_userEnvironmentChanges;
QList<BuildStepList *> m_stepLists; QList<BuildStepList *> m_stepLists;
BuildConfigMacroExpander m_macroExpander;
ToolChain *m_toolChain; ToolChain *m_toolChain;
Utils::AbstractMacroExpander *m_macroExpander;
}; };
class PROJECTEXPLORER_EXPORT IBuildConfigurationFactory : class PROJECTEXPLORER_EXPORT IBuildConfigurationFactory :

View File

@@ -35,13 +35,12 @@
#include "projectconfiguration.h" #include "projectconfiguration.h"
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include "task.h"
#include <QtCore/QFutureInterface> #include <QtCore/QFutureInterface>
#include <QtGui/QWidget> #include <QtGui/QWidget>
namespace ProjectExplorer { namespace ProjectExplorer {
class Task;
class BuildConfiguration; class BuildConfiguration;
class BuildStepList; class BuildStepList;
class DeployConfiguration; class DeployConfiguration;

View File

@@ -34,6 +34,7 @@
#define CLANGPARSER_H #define CLANGPARSER_H
#include "ioutputparser.h" #include "ioutputparser.h"
#include "task.h"
#include <QtCore/QRegExp> #include <QtCore/QRegExp>

View File

@@ -37,10 +37,12 @@
#include "debugginghelper.h" #include "debugginghelper.h"
#include "projectexplorerconstants.h" #include "projectexplorerconstants.h"
#include "target.h" #include "target.h"
#include "abi.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <utils/qtcprocess.h> #include <utils/qtcprocess.h>
#include <utils/stringutils.h>
#include <QtGui/QDialog> #include <QtGui/QDialog>
#include <QtGui/QDialogButtonBox> #include <QtGui/QDialogButtonBox>

View File

@@ -32,16 +32,14 @@
#include "gccparser.h" #include "gccparser.h"
#include "ldparser.h" #include "ldparser.h"
#include "taskwindow.h" #include "task.h"
#include "projectexplorerconstants.h" #include "projectexplorerconstants.h"
using namespace ProjectExplorer; using namespace ProjectExplorer;
namespace { // opt. drive letter + filename: (2 brackets)
// opt. drive letter + filename: (2 brackets) static const char FILE_PATTERN[] = "(<command[ -]line>|([A-Za-z]:)?[^:]+\\.[^:]+):";
const char * const FILE_PATTERN = "(<command[ -]line>|([A-Za-z]:)?[^:]+\\.[^:]+):"; static const char COMMAND_PATTERN[] = "^(.*[\\\\/])?([a-z0-9]+-[a-z0-9]+-[a-z0-9]+-)?(gcc|g\\+\\+)(-[0-9\\.]+)?(\\.exe)?: ";
const char * const COMMAND_PATTERN = "^(.*[\\\\/])?([a-z0-9]+-[a-z0-9]+-[a-z0-9]+-)?(gcc|g\\+\\+)(-[0-9\\.]+)?(\\.exe)?: ";
}
GccParser::GccParser() GccParser::GccParser()
{ {

View File

@@ -33,7 +33,7 @@
#include "gnumakeparser.h" #include "gnumakeparser.h"
#include "projectexplorerconstants.h" #include "projectexplorerconstants.h"
#include "taskwindow.h" #include "task.h"
#include <QtCore/QDir> #include <QtCore/QDir>
#include <QtCore/QFile> #include <QtCore/QFile>

View File

@@ -32,7 +32,7 @@
#include "ldparser.h" #include "ldparser.h"
#include "projectexplorerconstants.h" #include "projectexplorerconstants.h"
#include "taskwindow.h" #include "task.h"
using namespace ProjectExplorer; using namespace ProjectExplorer;

View File

@@ -34,6 +34,7 @@
#define LINUXICCPARSER_H #define LINUXICCPARSER_H
#include "ioutputparser.h" #include "ioutputparser.h"
#include "task.h"
#include <QtCore/QRegExp> #include <QtCore/QRegExp>

View File

@@ -39,6 +39,7 @@
#include <utils/environment.h> #include <utils/environment.h>
#include <QtGui/QLabel> #include <QtGui/QLabel>
#include <QtGui/QIcon>
#include <QtCore/QDir> #include <QtCore/QDir>
namespace ProjectExplorer { namespace ProjectExplorer {

View File

@@ -35,7 +35,6 @@
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include <QtCore/QString>
#include <QtCore/QStringList> #include <QtCore/QStringList>
namespace ProjectExplorer { namespace ProjectExplorer {

View File

@@ -31,6 +31,7 @@
**************************************************************************/ **************************************************************************/
#include "outputparser_test.h" #include "outputparser_test.h"
#include "task.h"
#if defined(WITH_TESTS) #if defined(WITH_TESTS)

View File

@@ -33,11 +33,10 @@
#ifndef PROJECTEXPLORER_H #ifndef PROJECTEXPLORER_H
#define PROJECTEXPLORER_H #define PROJECTEXPLORER_H
#include <QtCore/QPair>
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include <extensionsystem/iplugin.h> #include <extensionsystem/iplugin.h>
#include <QtCore/QPair> #include <QtCore/QPair>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
@@ -50,10 +49,6 @@ namespace Core {
class IMode; class IMode;
} }
namespace Utils {
class ParameterAction;
}
namespace ProjectExplorer { namespace ProjectExplorer {
class BuildManager; class BuildManager;
class RunControl; class RunControl;
@@ -66,7 +61,6 @@ class BuildConfiguration;
class ProjectNode; class ProjectNode;
namespace Internal { namespace Internal {
class ProjectFileFactory;
struct ProjectExplorerSettings; struct ProjectExplorerSettings;
} }

View File

@@ -33,24 +33,23 @@
#ifndef PROJECTNODES_H #ifndef PROJECTNODES_H
#define PROJECTNODES_H #define PROJECTNODES_H
#include <QtCore/QObject>
#include <QtCore/QStringList>
#include <QtGui/QIcon>
#include "runconfiguration.h"
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include <QtGui/QIcon>
#include <QtCore/QObject>
#include <QtCore/QStringList>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QFileInfo; class QFileInfo;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace Core { namespace Core {
class MimeDatabase; class MimeDatabase;
} }
namespace ProjectExplorer { namespace ProjectExplorer {
class RunConfiguration;
enum NodeType { enum NodeType {
FileNodeType = 1, FileNodeType = 1,

View File

@@ -35,11 +35,13 @@
#include "project.h" #include "project.h"
#include "target.h" #include "target.h"
#include "toolchain.h" #include "toolchain.h"
#include "abi.h"
#include "buildconfiguration.h" #include "buildconfiguration.h"
#include "projectexplorerconstants.h" #include "projectexplorerconstants.h"
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <utils/outputformatter.h>
#include <utils/checkablemessagebox.h> #include <utils/checkablemessagebox.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>

View File

@@ -33,19 +33,23 @@
#ifndef RUNCONFIGURATION_H #ifndef RUNCONFIGURATION_H
#define RUNCONFIGURATION_H #define RUNCONFIGURATION_H
#include "abi.h"
#include "projectconfiguration.h" #include "projectconfiguration.h"
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include <utils/outputformatter.h> #include <utils/outputformat.h>
#include <QtCore/QMetaType> #include <QtCore/QMetaType>
#include <QtCore/QWeakPointer> #include <QtCore/QWeakPointer>
#include <QtGui/QWidget> #include <QtGui/QWidget>
#include <QtGui/QIcon>
QT_FORWARD_DECLARE_CLASS(QIcon)
namespace Utils {
class OutputFormatter;
}
namespace ProjectExplorer { namespace ProjectExplorer {
class Abi;
class BuildConfiguration; class BuildConfiguration;
class IRunConfigurationAspect; class IRunConfigurationAspect;
class RunControl; class RunControl;

View File

@@ -32,6 +32,7 @@
#include "target.h" #include "target.h"
#include "toolchain.h"
#include "buildconfiguration.h" #include "buildconfiguration.h"
#include "deployconfiguration.h" #include "deployconfiguration.h"
#include "project.h" #include "project.h"

View File

@@ -51,7 +51,6 @@ class ToolChainPrivate;
} }
class Abi; class Abi;
class HeaderPath;
class IOutputParser; class IOutputParser;
class ToolChainConfigWidget; class ToolChainConfigWidget;
class ToolChainFactory; class ToolChainFactory;

View File

@@ -31,7 +31,7 @@
**************************************************************************/ **************************************************************************/
#include "toolchainmanager.h" #include "toolchainmanager.h"
#include "abi.h"
#include "toolchain.h" #include "toolchain.h"
#include <coreplugin/icore.h> #include <coreplugin/icore.h>

View File

@@ -35,9 +35,6 @@
#include "projectexplorer_export.h" #include "projectexplorer_export.h"
#include "abi.h"
#include "toolchain.h"
#include <QtCore/QList> #include <QtCore/QList>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <QtCore/QString> #include <QtCore/QString>
@@ -46,6 +43,7 @@ namespace ProjectExplorer {
class ProjectExplorerPlugin; class ProjectExplorerPlugin;
class ToolChain; class ToolChain;
class ToolChainFactory; class ToolChainFactory;
class Abi;
namespace Internal { namespace Internal {
class ToolChainManagerPrivate; class ToolChainManagerPrivate;

View File

@@ -31,7 +31,8 @@
**************************************************************************/ **************************************************************************/
#include "toolchainoptionspage.h" #include "toolchainoptionspage.h"
#include "toolchain.h"
#include "abi.h"
#include "projectexplorerconstants.h" #include "projectexplorerconstants.h"
#include "toolchainconfigwidget.h" #include "toolchainconfigwidget.h"
#include "toolchainmanager.h" #include "toolchainmanager.h"

View File

@@ -33,7 +33,7 @@
#include "qmakeparser.h" #include "qmakeparser.h"
#include "qt4projectmanagerconstants.h" #include "qt4projectmanagerconstants.h"
#include <projectexplorer/taskwindow.h> #include <projectexplorer/task.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
@@ -41,11 +41,9 @@ using namespace Qt4ProjectManager;
using namespace Qt4ProjectManager::Internal; using namespace Qt4ProjectManager::Internal;
using ProjectExplorer::Task; using ProjectExplorer::Task;
QMakeParser::QMakeParser() QMakeParser::QMakeParser() : m_error(QLatin1String("^(.+):(\\d+):\\s(.+)$"))
{ {
setObjectName(QLatin1String("QMakeParser")); setObjectName(QLatin1String("QMakeParser"));
m_error.setPattern("^(.+):(\\d+):\\s(.+)$");
m_error.setMinimal(true); m_error.setMinimal(true);
} }

View File

@@ -54,6 +54,7 @@
#include <utils/qtcprocess.h> #include <utils/qtcprocess.h>
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
#include <utils/detailswidget.h> #include <utils/detailswidget.h>
#include <utils/stringutils.h>
#include <utils/debuggerlanguagechooser.h> #include <utils/debuggerlanguagechooser.h>
#include <qtsupport/qtoutputformatter.h> #include <qtsupport/qtoutputformatter.h>
#include <qtsupport/baseqtversion.h> #include <qtsupport/baseqtversion.h>

View File

@@ -33,7 +33,7 @@
#include "abldparser.h" #include "abldparser.h"
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/taskwindow.h> #include <projectexplorer/task.h>
using namespace Qt4ProjectManager; using namespace Qt4ProjectManager;
using namespace ProjectExplorer; using namespace ProjectExplorer;

View File

@@ -41,6 +41,7 @@
#include <projectexplorer/customexecutablerunconfiguration.h> #include <projectexplorer/customexecutablerunconfiguration.h>
#include <projectexplorer/project.h> #include <projectexplorer/project.h>
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <symbianutils/symbiandevicemanager.h> #include <symbianutils/symbiandevicemanager.h>
#include <extensionsystem/pluginmanager.h> #include <extensionsystem/pluginmanager.h>
#include <QtGui/QPainter> #include <QtGui/QPainter>

View File

@@ -32,7 +32,7 @@
#include "rvctparser.h" #include "rvctparser.h"
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/taskwindow.h> #include <projectexplorer/task.h>
using namespace ProjectExplorer; using namespace ProjectExplorer;
using namespace ProjectExplorer::Constants; using namespace ProjectExplorer::Constants;

View File

@@ -33,7 +33,7 @@
#include "s60createpackageparser.h" #include "s60createpackageparser.h"
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/taskwindow.h> #include <projectexplorer/task.h>
using namespace Qt4ProjectManager::Internal; using namespace Qt4ProjectManager::Internal;

View File

@@ -33,6 +33,7 @@
#include "winscwparser.h" #include "winscwparser.h"
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/task.h>
using namespace Qt4ProjectManager; using namespace Qt4ProjectManager;
using namespace ProjectExplorer; using namespace ProjectExplorer;

View File

@@ -45,6 +45,8 @@
#include <coreplugin/icore.h> #include <coreplugin/icore.h>
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <projectexplorer/task.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/buildconfiguration.h> #include <projectexplorer/buildconfiguration.h>
#include <qtsupport/qtversionfactory.h> #include <qtsupport/qtversionfactory.h>

View File

@@ -46,12 +46,14 @@
#include <projectexplorer/runconfiguration.h> #include <projectexplorer/runconfiguration.h>
#include <projectexplorer/customexecutablerunconfiguration.h> #include <projectexplorer/customexecutablerunconfiguration.h>
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/task.h> #include <projectexplorer/task.h>
#include <qtsupport/qtversionfactory.h> #include <qtsupport/qtversionfactory.h>
#include <qtsupport/baseqtversion.h> #include <qtsupport/baseqtversion.h>
#include <utils/pathchooser.h> #include <utils/pathchooser.h>
#include <utils/detailswidget.h> #include <utils/detailswidget.h>
#include <utils/qtcprocess.h>
#include <QtCore/QCoreApplication> #include <QtCore/QCoreApplication>
#include <QtGui/QPushButton> #include <QtGui/QPushButton>

View File

@@ -38,6 +38,7 @@
#include "qtversionmanager.h" #include "qtversionmanager.h"
#include "profilereader.h" #include "profilereader.h"
#include <projectexplorer/toolchainmanager.h> #include <projectexplorer/toolchainmanager.h>
#include <projectexplorer/toolchain.h>
#include <projectexplorer/debugginghelper.h> #include <projectexplorer/debugginghelper.h>
#include <projectexplorer/gnumakeparser.h> #include <projectexplorer/gnumakeparser.h>
#include <projectexplorer/projectexplorer.h> #include <projectexplorer/projectexplorer.h>

View File

@@ -32,20 +32,21 @@
#include "qtparser.h" #include "qtparser.h"
#include <projectexplorer/taskwindow.h> #include <projectexplorer/task.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
using namespace QtSupport; using namespace QtSupport;
using ProjectExplorer::Task; using ProjectExplorer::Task;
// opt. drive letter + filename: (2 brackets) // opt. drive letter + filename: (2 brackets)
static const char FILE_PATTERN[] = "^(([A-Za-z]:)?[^:]+\\.[^:]+)"; #define FILE_PATTERN "^(([A-Za-z]:)?[^:]+\\.[^:]+)"
QtParser::QtParser() QtParser::QtParser() :
m_mocRegExp(QLatin1String(FILE_PATTERN"[:\\(](\\d+)\\)?:\\s(Warning|Error):\\s(.+)$"))
{ {
setObjectName(QLatin1String("QtParser")); setObjectName(QLatin1String("QtParser"));
m_mocRegExp.setPattern(QString::fromLatin1(FILE_PATTERN) + "[:\\(](\\d+)\\)?:\\s(Warning|Error):\\s(.+)$");
m_mocRegExp.setMinimal(true); m_mocRegExp.setMinimal(true);
} }

View File

@@ -37,6 +37,7 @@
#include <projectexplorer/buildconfiguration.h> #include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/target.h> #include <projectexplorer/target.h>
#include <projectexplorer/task.h>
#include <utils/fileutils.h> #include <utils/fileutils.h>
#include <QtCore/QDateTime> #include <QtCore/QDateTime>

View File

@@ -37,9 +37,11 @@
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QtCore/QString> #include <QtGui/QIcon>
#include <QtGui/QMessageBox> #include <QtGui/QMessageBox>
#include <QtCore/QString>
using namespace ProjectExplorer; using namespace ProjectExplorer;
namespace RemoteLinux { namespace RemoteLinux {