forked from qt-creator/qt-creator
Rework Build Parser handling
* Rework IBuildParser:
* Remove name() method.
* Remove enterDirectory and leaveDirectory signals.
* Allow chaining of parsers.
* Rename IBuildParser to IOutputParser.
* Implement GnuMakeParser.
* Remove entering/leaving directory related code from all other parsers
* Move filename fixup heuristic based on entering/leaving directory
massages from gnumake here from AbstractMakeStep.
* Add outputParser method to ToolChain: This removes the need to map
toolchains to BuildParser names in the BuildSteps.
* Enhance AbstractProcessStep to accept a IOutputParser to parse its output.
* Remove AbstractMakeStep.
* Set the appropriate Parsers in all classes deriving from AbstractProcessStep
and append the ToolChain's parser to the parser chain.
* Remove BuildParserFactories: There is no more need for them.
* Remove constants used to identify the BuildParsers.
* Clean up some names:
* Replace stdOut with stdOutput.
* Replace addToTaskWindow with addTask and addToOutputWindow with
addOutput. Do this wherever it is not yet clear that this will end up
in the Task/Output window.
Reviewed-by: dt
This commit is contained in:
@@ -45,14 +45,13 @@
|
||||
#include "externaleditors.h"
|
||||
#include "gettingstartedwelcomepage.h"
|
||||
#include "gettingstartedwelcomepagewidget.h"
|
||||
#include "qmakeparser.h"
|
||||
|
||||
#ifdef QTCREATOR_WITH_S60
|
||||
#include "qt-s60/s60manager.h"
|
||||
# include "qt-s60/s60manager.h"
|
||||
#endif
|
||||
|
||||
#ifdef QTCREATOR_WITH_MAEMO
|
||||
#include "qt-maemo/maemomanager.h"
|
||||
# include "qt-maemo/maemomanager.h"
|
||||
#endif
|
||||
|
||||
#include <coreplugin/icore.h>
|
||||
@@ -68,14 +67,12 @@
|
||||
#include <coreplugin/actionmanager/actionmanager.h>
|
||||
#include <texteditor/texteditoractionhandler.h>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QtPlugin>
|
||||
#include <QtGui/QMenu>
|
||||
|
||||
#ifdef WITH_TESTS
|
||||
#include <QTest>
|
||||
# include <QTest>
|
||||
#endif
|
||||
|
||||
#include <QtCore/QtPlugin>
|
||||
|
||||
using namespace Qt4ProjectManager::Internal;
|
||||
using namespace Qt4ProjectManager;
|
||||
using ProjectExplorer::Project;
|
||||
@@ -92,17 +89,6 @@ Qt4ProjectManagerPlugin::~Qt4ProjectManagerPlugin()
|
||||
removeObject(m_welcomePage);
|
||||
delete m_welcomePage;
|
||||
}
|
||||
/*
|
||||
static Core::Command *createSeparator(Core::ActionManager *am,
|
||||
QObject *parent,
|
||||
const QString &name,
|
||||
const QList<int> &context)
|
||||
{
|
||||
QAction *tmpaction = new QAction(parent);
|
||||
tmpaction->setSeparator(true);
|
||||
return am->registerAction(tmpaction, name, context);
|
||||
}
|
||||
*/
|
||||
|
||||
bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
{
|
||||
@@ -150,7 +136,6 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
|
||||
|
||||
addAutoReleasedObject(new QMakeStepFactory);
|
||||
addAutoReleasedObject(new MakeStepFactory);
|
||||
addAutoReleasedObject(new QMakeParserFactory);
|
||||
|
||||
addAutoReleasedObject(new Qt4RunConfigurationFactory);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user