forked from qt-creator/qt-creator
Header cleanup in ProjectExplorer and Qt4ProjectManager
This commit is contained in:
119
src/plugins/projectexplorer/buildconfigdialog.cpp
Normal file
119
src/plugins/projectexplorer/buildconfigdialog.cpp
Normal file
@@ -0,0 +1,119 @@
|
|||||||
|
/**************************************************************************
|
||||||
|
**
|
||||||
|
** This file is part of Qt Creator
|
||||||
|
**
|
||||||
|
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||||
|
**
|
||||||
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||||
|
**
|
||||||
|
** Commercial Usage
|
||||||
|
**
|
||||||
|
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||||
|
** accordance with the Qt Commercial License Agreement provided with the
|
||||||
|
** Software or, alternatively, in accordance with the terms contained in
|
||||||
|
** a written agreement between you and Nokia.
|
||||||
|
**
|
||||||
|
** GNU Lesser General Public License Usage
|
||||||
|
**
|
||||||
|
** Alternatively, 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.
|
||||||
|
**
|
||||||
|
** If you are unsure which license is appropriate for your use, please
|
||||||
|
** contact the sales department at http://qt.nokia.com/contact.
|
||||||
|
**
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
#include "buildconfigdialog.h"
|
||||||
|
#include "project.h"
|
||||||
|
#include "runconfiguration.h"
|
||||||
|
#include "buildconfiguration.h"
|
||||||
|
|
||||||
|
#include <QtGui/QVBoxLayout>
|
||||||
|
#include <QtGui/QPushButton>
|
||||||
|
#include <QtGui/QDialogButtonBox>
|
||||||
|
#include <QtGui/QLabel>
|
||||||
|
#include <QtGui/QComboBox>
|
||||||
|
#include <QtGui/QFormLayout>
|
||||||
|
|
||||||
|
namespace ProjectExplorer {
|
||||||
|
namespace Internal {
|
||||||
|
|
||||||
|
BuildConfigDialog::BuildConfigDialog(Project *project, QWidget *parent)
|
||||||
|
: QDialog(parent),
|
||||||
|
m_project(project)
|
||||||
|
{
|
||||||
|
QVBoxLayout *vlayout = new QVBoxLayout;
|
||||||
|
setLayout(vlayout);
|
||||||
|
QDialogButtonBox *buttonBox = new QDialogButtonBox;
|
||||||
|
m_changeBuildConfiguration = buttonBox->addButton(tr("Change build configuration && continue"),
|
||||||
|
QDialogButtonBox::ActionRole);
|
||||||
|
m_cancel = buttonBox->addButton(tr("Cancel"),
|
||||||
|
QDialogButtonBox::RejectRole);
|
||||||
|
m_justContinue = buttonBox->addButton(tr("Continue anyway"),
|
||||||
|
QDialogButtonBox::AcceptRole);
|
||||||
|
connect(m_changeBuildConfiguration, SIGNAL(clicked()), this, SLOT(buttonClicked()));
|
||||||
|
connect(m_cancel, SIGNAL(clicked()), this, SLOT(buttonClicked()));
|
||||||
|
connect(m_justContinue, SIGNAL(clicked()), this, SLOT(buttonClicked()));
|
||||||
|
setWindowTitle(tr("Run configuration does not match build configuration"));
|
||||||
|
QLabel *shortText = new QLabel(tr(
|
||||||
|
"The active build configuration builds a target "
|
||||||
|
"that cannot be used by the active run configuration."
|
||||||
|
));
|
||||||
|
vlayout->addWidget(shortText);
|
||||||
|
QLabel *descriptiveText = new QLabel(tr(
|
||||||
|
"This can happen if the active build configuration "
|
||||||
|
"uses the wrong Qt version and/or tool chain for the active run configuration "
|
||||||
|
"(for example, running in Symbian emulator requires building with the WINSCW tool chain)."
|
||||||
|
));
|
||||||
|
descriptiveText->setWordWrap(true);
|
||||||
|
vlayout->addWidget(descriptiveText);
|
||||||
|
m_configCombo = new QComboBox;
|
||||||
|
|
||||||
|
RunConfiguration *activeRun = m_project->activeTarget()->activeRunConfiguration();
|
||||||
|
foreach (BuildConfiguration *config, m_project->activeTarget()->buildConfigurations()) {
|
||||||
|
if (activeRun->isEnabled(config)) {
|
||||||
|
m_configCombo->addItem(config->displayName(), QVariant::fromValue(config));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (m_configCombo->count() == 0) {
|
||||||
|
m_configCombo->addItem(tr("No valid build configuration found."));
|
||||||
|
m_configCombo->setEnabled(false);
|
||||||
|
m_changeBuildConfiguration->setEnabled(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
QFormLayout *formlayout = new QFormLayout;
|
||||||
|
formlayout->addRow(tr("Active run configuration"),
|
||||||
|
// ^ avoiding a new translatable string for active run configuration
|
||||||
|
new QLabel(activeRun->displayName()));
|
||||||
|
formlayout->addRow(tr("Choose build configuration:"), m_configCombo);
|
||||||
|
vlayout->addLayout(formlayout);
|
||||||
|
vlayout->addWidget(buttonBox);
|
||||||
|
m_cancel->setDefault(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
BuildConfiguration *BuildConfigDialog::selectedBuildConfiguration() const
|
||||||
|
{
|
||||||
|
int index = m_configCombo->currentIndex();
|
||||||
|
if (index < 0)
|
||||||
|
return 0;
|
||||||
|
return m_configCombo->itemData(index, Qt::UserRole).value<BuildConfiguration*>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void BuildConfigDialog::buttonClicked()
|
||||||
|
{
|
||||||
|
QPushButton *button = qobject_cast<QPushButton *>(sender());
|
||||||
|
if (button == m_changeBuildConfiguration) {
|
||||||
|
done(ChangeBuild);
|
||||||
|
} else if (button == m_cancel) {
|
||||||
|
done(Cancel);
|
||||||
|
} else if (button == m_justContinue) {
|
||||||
|
done(Continue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace Internal
|
||||||
|
} // namespace ProjectExplorer
|
||||||
73
src/plugins/projectexplorer/buildconfigdialog.h
Normal file
73
src/plugins/projectexplorer/buildconfigdialog.h
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
/**************************************************************************
|
||||||
|
**
|
||||||
|
** This file is part of Qt Creator
|
||||||
|
**
|
||||||
|
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||||
|
**
|
||||||
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||||
|
**
|
||||||
|
** Commercial Usage
|
||||||
|
**
|
||||||
|
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||||
|
** accordance with the Qt Commercial License Agreement provided with the
|
||||||
|
** Software or, alternatively, in accordance with the terms contained in
|
||||||
|
** a written agreement between you and Nokia.
|
||||||
|
**
|
||||||
|
** GNU Lesser General Public License Usage
|
||||||
|
**
|
||||||
|
** Alternatively, 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.
|
||||||
|
**
|
||||||
|
** If you are unsure which license is appropriate for your use, please
|
||||||
|
** contact the sales department at http://qt.nokia.com/contact.
|
||||||
|
**
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
#ifndef BUILDCONFIGDIALOG_H
|
||||||
|
#define BUILDCONFIGDIALOG_H
|
||||||
|
|
||||||
|
#include <QtGui/QDialog>
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QAction;
|
||||||
|
class QComboBox;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
namespace ProjectExplorer {
|
||||||
|
class Project;
|
||||||
|
class BuildConfiguration;
|
||||||
|
|
||||||
|
namespace Internal {
|
||||||
|
|
||||||
|
class BuildConfigDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
enum DialogResult {
|
||||||
|
ChangeBuild = 10,
|
||||||
|
Cancel = 11,
|
||||||
|
Continue = 12
|
||||||
|
};
|
||||||
|
explicit BuildConfigDialog(Project *project, QWidget *parent = 0);
|
||||||
|
|
||||||
|
BuildConfiguration *selectedBuildConfiguration() const;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void buttonClicked();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Project *m_project;
|
||||||
|
QPushButton *m_changeBuildConfiguration;
|
||||||
|
QPushButton *m_cancel;
|
||||||
|
QPushButton *m_justContinue;
|
||||||
|
QComboBox *m_configCombo;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Internal
|
||||||
|
} // namespace ProjectExplorer
|
||||||
|
|
||||||
|
#endif // BUILDCONFIGDIALOG_H
|
||||||
@@ -67,6 +67,7 @@
|
|||||||
#include "projectwelcomepagewidget.h"
|
#include "projectwelcomepagewidget.h"
|
||||||
#include "corelistenercheckingforrunningbuild.h"
|
#include "corelistenercheckingforrunningbuild.h"
|
||||||
#include "buildconfiguration.h"
|
#include "buildconfiguration.h"
|
||||||
|
#include "buildconfigdialog.h"
|
||||||
#include "miniprojecttargetselector.h"
|
#include "miniprojecttargetselector.h"
|
||||||
|
|
||||||
#include <coreplugin/basemode.h>
|
#include <coreplugin/basemode.h>
|
||||||
@@ -102,7 +103,6 @@
|
|||||||
#include <QtGui/QFileDialog>
|
#include <QtGui/QFileDialog>
|
||||||
#include <QtGui/QMenu>
|
#include <QtGui/QMenu>
|
||||||
#include <QtGui/QMessageBox>
|
#include <QtGui/QMessageBox>
|
||||||
#include <QtGui/QVBoxLayout>
|
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(Core::IEditorFactory*);
|
Q_DECLARE_METATYPE(Core::IEditorFactory*);
|
||||||
Q_DECLARE_METATYPE(Core::IExternalEditor*);
|
Q_DECLARE_METATYPE(Core::IExternalEditor*);
|
||||||
@@ -2198,77 +2198,4 @@ Internal::ProjectExplorerSettings ProjectExplorerPlugin::projectExplorerSettings
|
|||||||
return d->m_projectExplorerSettings;
|
return d->m_projectExplorerSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
BuildConfigDialog::BuildConfigDialog(Project *project, QWidget *parent)
|
|
||||||
: QDialog(parent),
|
|
||||||
m_project(project)
|
|
||||||
{
|
|
||||||
QVBoxLayout *vlayout = new QVBoxLayout;
|
|
||||||
setLayout(vlayout);
|
|
||||||
QDialogButtonBox *buttonBox = new QDialogButtonBox;
|
|
||||||
m_changeBuildConfiguration = buttonBox->addButton(tr("Change build configuration && continue"),
|
|
||||||
QDialogButtonBox::ActionRole);
|
|
||||||
m_cancel = buttonBox->addButton(tr("Cancel"),
|
|
||||||
QDialogButtonBox::RejectRole);
|
|
||||||
m_justContinue = buttonBox->addButton(tr("Continue anyway"),
|
|
||||||
QDialogButtonBox::AcceptRole);
|
|
||||||
connect(m_changeBuildConfiguration, SIGNAL(clicked()), this, SLOT(buttonClicked()));
|
|
||||||
connect(m_cancel, SIGNAL(clicked()), this, SLOT(buttonClicked()));
|
|
||||||
connect(m_justContinue, SIGNAL(clicked()), this, SLOT(buttonClicked()));
|
|
||||||
setWindowTitle(tr("Run configuration does not match build configuration"));
|
|
||||||
QLabel *shortText = new QLabel(tr(
|
|
||||||
"The active build configuration builds a target "
|
|
||||||
"that cannot be used by the active run configuration."
|
|
||||||
));
|
|
||||||
vlayout->addWidget(shortText);
|
|
||||||
QLabel *descriptiveText = new QLabel(tr(
|
|
||||||
"This can happen if the active build configuration "
|
|
||||||
"uses the wrong Qt version and/or tool chain for the active run configuration "
|
|
||||||
"(for example, running in Symbian emulator requires building with the WINSCW tool chain)."
|
|
||||||
));
|
|
||||||
descriptiveText->setWordWrap(true);
|
|
||||||
vlayout->addWidget(descriptiveText);
|
|
||||||
m_configCombo = new QComboBox;
|
|
||||||
|
|
||||||
RunConfiguration *activeRun = m_project->activeTarget()->activeRunConfiguration();
|
|
||||||
foreach (BuildConfiguration *config, m_project->activeTarget()->buildConfigurations()) {
|
|
||||||
if (activeRun->isEnabled(config)) {
|
|
||||||
m_configCombo->addItem(config->displayName(), QVariant::fromValue(config));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (m_configCombo->count() == 0) {
|
|
||||||
m_configCombo->addItem(tr("No valid build configuration found."));
|
|
||||||
m_configCombo->setEnabled(false);
|
|
||||||
m_changeBuildConfiguration->setEnabled(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
QFormLayout *formlayout = new QFormLayout;
|
|
||||||
formlayout->addRow(tr("Active run configuration"),
|
|
||||||
// ^ avoiding a new translatable string for active run configuration
|
|
||||||
new QLabel(activeRun->displayName()));
|
|
||||||
formlayout->addRow(tr("Choose build configuration:"), m_configCombo);
|
|
||||||
vlayout->addLayout(formlayout);
|
|
||||||
vlayout->addWidget(buttonBox);
|
|
||||||
m_cancel->setDefault(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
BuildConfiguration *BuildConfigDialog::selectedBuildConfiguration() const
|
|
||||||
{
|
|
||||||
int index = m_configCombo->currentIndex();
|
|
||||||
if (index < 0)
|
|
||||||
return 0;
|
|
||||||
return m_configCombo->itemData(index, Qt::UserRole).value<BuildConfiguration*>();
|
|
||||||
}
|
|
||||||
|
|
||||||
void BuildConfigDialog::buttonClicked()
|
|
||||||
{
|
|
||||||
QPushButton *button = qobject_cast<QPushButton *>(sender());
|
|
||||||
if (button == m_changeBuildConfiguration) {
|
|
||||||
done(ChangeBuild);
|
|
||||||
} else if (button == m_cancel) {
|
|
||||||
done(Cancel);
|
|
||||||
} else if (button == m_justContinue) {
|
|
||||||
done(Continue);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Q_EXPORT_PLUGIN(ProjectExplorerPlugin)
|
Q_EXPORT_PLUGIN(ProjectExplorerPlugin)
|
||||||
|
|||||||
@@ -34,14 +34,10 @@
|
|||||||
|
|
||||||
#include <extensionsystem/iplugin.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
|
|
||||||
#include <QtCore/QSharedPointer>
|
|
||||||
#include <QtGui/QDialog>
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QPoint;
|
class QPoint;
|
||||||
class QAction;
|
|
||||||
class QComboBox;
|
|
||||||
class QMenu;
|
class QMenu;
|
||||||
|
class QAction;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
@@ -65,32 +61,7 @@ class BuildConfiguration;
|
|||||||
namespace Internal {
|
namespace Internal {
|
||||||
class ProjectFileFactory;
|
class ProjectFileFactory;
|
||||||
struct ProjectExplorerSettings;
|
struct ProjectExplorerSettings;
|
||||||
|
}
|
||||||
class BuildConfigDialog : public QDialog
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
enum DialogResult {
|
|
||||||
ChangeBuild = 10,
|
|
||||||
Cancel = 11,
|
|
||||||
Continue = 12
|
|
||||||
};
|
|
||||||
BuildConfigDialog(Project *project, QWidget *parent = 0);
|
|
||||||
|
|
||||||
BuildConfiguration *selectedBuildConfiguration() const;
|
|
||||||
|
|
||||||
private slots:
|
|
||||||
void buttonClicked();
|
|
||||||
|
|
||||||
private:
|
|
||||||
Project *m_project;
|
|
||||||
QPushButton *m_changeBuildConfiguration;
|
|
||||||
QPushButton *m_cancel;
|
|
||||||
QPushButton *m_justContinue;
|
|
||||||
QComboBox *m_configCombo;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
|
|
||||||
struct ProjectExplorerPluginPrivate;
|
struct ProjectExplorerPluginPrivate;
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,8 @@ HEADERS += projectexplorer.h \
|
|||||||
targetsettingswidget.h \
|
targetsettingswidget.h \
|
||||||
doubletabwidget.h \
|
doubletabwidget.h \
|
||||||
addtargetdialog.h \
|
addtargetdialog.h \
|
||||||
buildenvironmentwidget.h
|
buildenvironmentwidget.h \
|
||||||
|
buildconfigdialog.h
|
||||||
SOURCES += projectexplorer.cpp \
|
SOURCES += projectexplorer.cpp \
|
||||||
projectwindow.cpp \
|
projectwindow.cpp \
|
||||||
buildmanager.cpp \
|
buildmanager.cpp \
|
||||||
@@ -139,7 +140,8 @@ SOURCES += projectexplorer.cpp \
|
|||||||
targetsettingswidget.cpp \
|
targetsettingswidget.cpp \
|
||||||
doubletabwidget.cpp \
|
doubletabwidget.cpp \
|
||||||
addtargetdialog.cpp \
|
addtargetdialog.cpp \
|
||||||
buildenvironmentwidget.cpp
|
buildenvironmentwidget.cpp \
|
||||||
|
buildconfigdialog.cpp
|
||||||
FORMS += processstep.ui \
|
FORMS += processstep.ui \
|
||||||
editorsettingspropertiespage.ui \
|
editorsettingspropertiespage.ui \
|
||||||
runsettingspropertiespage.ui \
|
runsettingspropertiespage.ui \
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
#include "makestep.h"
|
#include "makestep.h"
|
||||||
|
#include "ui_makestep.h"
|
||||||
|
|
||||||
#include "qt4project.h"
|
#include "qt4project.h"
|
||||||
#include "qt4target.h"
|
#include "qt4target.h"
|
||||||
@@ -35,6 +36,8 @@
|
|||||||
#include "qt4projectmanagerconstants.h"
|
#include "qt4projectmanagerconstants.h"
|
||||||
|
|
||||||
#include <projectexplorer/gnumakeparser.h>
|
#include <projectexplorer/gnumakeparser.h>
|
||||||
|
#include <projectexplorer/projectexplorer.h>
|
||||||
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
@@ -206,12 +209,12 @@ void MakeStep::setUserArguments(const QStringList &arguments)
|
|||||||
}
|
}
|
||||||
|
|
||||||
MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep)
|
MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep)
|
||||||
: BuildStepConfigWidget(), m_makeStep(makeStep), m_ignoreChange(false)
|
: BuildStepConfigWidget(), m_ui(new Ui::MakeStep), m_makeStep(makeStep), m_ignoreChange(false)
|
||||||
{
|
{
|
||||||
m_ui.setupUi(this);
|
m_ui->setupUi(this);
|
||||||
connect(m_ui.makeLineEdit, SIGNAL(textEdited(QString)),
|
connect(m_ui->makeLineEdit, SIGNAL(textEdited(QString)),
|
||||||
this, SLOT(makeEdited()));
|
this, SLOT(makeEdited()));
|
||||||
connect(m_ui.makeArgumentsLineEdit, SIGNAL(textEdited(QString)),
|
connect(m_ui->makeArgumentsLineEdit, SIGNAL(textEdited(QString)),
|
||||||
this, SLOT(makeArgumentsLineEdited()));
|
this, SLOT(makeArgumentsLineEdited()));
|
||||||
|
|
||||||
connect(makeStep, SIGNAL(userArgumentsChanged()),
|
connect(makeStep, SIGNAL(userArgumentsChanged()),
|
||||||
@@ -225,10 +228,15 @@ MakeStepConfigWidget::MakeStepConfigWidget(MakeStep *makeStep)
|
|||||||
this, SLOT(updateDetails()));
|
this, SLOT(updateDetails()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MakeStepConfigWidget::~MakeStepConfigWidget()
|
||||||
|
{
|
||||||
|
delete m_ui;
|
||||||
|
}
|
||||||
|
|
||||||
void MakeStepConfigWidget::updateMakeOverrideLabel()
|
void MakeStepConfigWidget::updateMakeOverrideLabel()
|
||||||
{
|
{
|
||||||
Qt4BuildConfiguration *qt4bc = m_makeStep->qt4BuildConfiguration();
|
Qt4BuildConfiguration *qt4bc = m_makeStep->qt4BuildConfiguration();
|
||||||
m_ui.makeLabel->setText(tr("Override %1:").arg(qt4bc->makeCommand()));
|
m_ui->makeLabel->setText(tr("Override %1:").arg(qt4bc->makeCommand()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MakeStepConfigWidget::updateDetails()
|
void MakeStepConfigWidget::updateDetails()
|
||||||
@@ -284,7 +292,7 @@ void MakeStepConfigWidget::userArgumentsChanged()
|
|||||||
if (m_ignoreChange)
|
if (m_ignoreChange)
|
||||||
return;
|
return;
|
||||||
const QStringList &makeArguments = m_makeStep->userArguments();
|
const QStringList &makeArguments = m_makeStep->userArguments();
|
||||||
m_ui.makeArgumentsLineEdit->setText(ProjectExplorer::Environment::joinArgumentList(makeArguments));
|
m_ui->makeArgumentsLineEdit->setText(ProjectExplorer::Environment::joinArgumentList(makeArguments));
|
||||||
updateDetails();
|
updateDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -293,16 +301,16 @@ void MakeStepConfigWidget::init()
|
|||||||
updateMakeOverrideLabel();
|
updateMakeOverrideLabel();
|
||||||
|
|
||||||
const QString &makeCmd = m_makeStep->m_makeCmd;
|
const QString &makeCmd = m_makeStep->m_makeCmd;
|
||||||
m_ui.makeLineEdit->setText(makeCmd);
|
m_ui->makeLineEdit->setText(makeCmd);
|
||||||
|
|
||||||
const QStringList &makeArguments = m_makeStep->userArguments();
|
const QStringList &makeArguments = m_makeStep->userArguments();
|
||||||
m_ui.makeArgumentsLineEdit->setText(ProjectExplorer::Environment::joinArgumentList(makeArguments));
|
m_ui->makeArgumentsLineEdit->setText(ProjectExplorer::Environment::joinArgumentList(makeArguments));
|
||||||
updateDetails();
|
updateDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MakeStepConfigWidget::makeEdited()
|
void MakeStepConfigWidget::makeEdited()
|
||||||
{
|
{
|
||||||
m_makeStep->m_makeCmd = m_ui.makeLineEdit->text();
|
m_makeStep->m_makeCmd = m_ui->makeLineEdit->text();
|
||||||
updateDetails();
|
updateDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -310,7 +318,7 @@ void MakeStepConfigWidget::makeArgumentsLineEdited()
|
|||||||
{
|
{
|
||||||
m_ignoreChange = true;
|
m_ignoreChange = true;
|
||||||
m_makeStep->setUserArguments(
|
m_makeStep->setUserArguments(
|
||||||
ProjectExplorer::Environment::parseCombinedArgString(m_ui.makeArgumentsLineEdit->text()));
|
ProjectExplorer::Environment::parseCombinedArgString(m_ui->makeArgumentsLineEdit->text()));
|
||||||
m_ignoreChange = false;
|
m_ignoreChange = false;
|
||||||
updateDetails();
|
updateDetails();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,11 +30,14 @@
|
|||||||
#ifndef MAKESTEP_H
|
#ifndef MAKESTEP_H
|
||||||
#define MAKESTEP_H
|
#define MAKESTEP_H
|
||||||
|
|
||||||
#include "ui_makestep.h"
|
|
||||||
#include "qtversionmanager.h"
|
|
||||||
|
|
||||||
#include <projectexplorer/abstractprocessstep.h>
|
#include <projectexplorer/abstractprocessstep.h>
|
||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/buildstep.h>
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
namespace Ui {
|
||||||
|
class MakeStep;
|
||||||
|
}
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
namespace ProjectExplorer {
|
namespace ProjectExplorer {
|
||||||
class BuildStep;
|
class BuildStep;
|
||||||
@@ -110,7 +113,9 @@ class MakeStepConfigWidget : public ProjectExplorer::BuildStepConfigWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
MakeStepConfigWidget(MakeStep *makeStep);
|
explicit MakeStepConfigWidget(MakeStep *makeStep);
|
||||||
|
virtual ~MakeStepConfigWidget();
|
||||||
|
|
||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
void init();
|
void init();
|
||||||
QString summaryText() const;
|
QString summaryText() const;
|
||||||
@@ -123,7 +128,7 @@ private slots:
|
|||||||
void updateDetails();
|
void updateDetails();
|
||||||
void userArgumentsChanged();
|
void userArgumentsChanged();
|
||||||
private:
|
private:
|
||||||
Ui::MakeStep m_ui;
|
Ui::MakeStep *m_ui;
|
||||||
MakeStep *m_makeStep;
|
MakeStep *m_makeStep;
|
||||||
QString m_summaryText;
|
QString m_summaryText;
|
||||||
bool m_ignoreChange;
|
bool m_ignoreChange;
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
#include <projectexplorer/runconfiguration.h>
|
#include <projectexplorer/runconfiguration.h>
|
||||||
|
|
||||||
#include <QtCore/QDateTime>
|
#include <QtCore/QDateTime>
|
||||||
|
#include <QtCore/QStringList>
|
||||||
|
|
||||||
QT_FORWARD_DECLARE_CLASS(QProcess)
|
QT_FORWARD_DECLARE_CLASS(QProcess)
|
||||||
QT_FORWARD_DECLARE_CLASS(QWidget)
|
QT_FORWARD_DECLARE_CLASS(QWidget)
|
||||||
|
|||||||
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
#include <QtGui/QMessageBox>
|
#include <QtGui/QMessageBox>
|
||||||
#include <QtGui/QMainWindow>
|
#include <QtGui/QMainWindow>
|
||||||
|
#include <QtCore/QCoreApplication>
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Qt4ProjectManager;
|
using namespace Qt4ProjectManager;
|
||||||
|
|||||||
@@ -47,7 +47,9 @@
|
|||||||
#include <projectexplorer/persistentsettings.h>
|
#include <projectexplorer/persistentsettings.h>
|
||||||
|
|
||||||
#include <QtGui/QLabel>
|
#include <QtGui/QLabel>
|
||||||
|
#include <QtGui/QVBoxLayout>
|
||||||
#include <QtGui/QLineEdit>
|
#include <QtGui/QLineEdit>
|
||||||
|
#include <QtGui/QFormLayout>
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
using namespace Qt4ProjectManager;
|
using namespace Qt4ProjectManager;
|
||||||
|
|||||||
@@ -32,6 +32,9 @@
|
|||||||
#include "qt4project.h"
|
#include "qt4project.h"
|
||||||
#include "qt4target.h"
|
#include "qt4target.h"
|
||||||
#include "qt4projectmanagerconstants.h"
|
#include "qt4projectmanagerconstants.h"
|
||||||
|
#include "qt4nodes.h"
|
||||||
|
#include "qmakestep.h"
|
||||||
|
#include "makestep.h"
|
||||||
|
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,6 @@
|
|||||||
|
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
#include <projectexplorer/buildconfiguration.h>
|
||||||
#include <projectexplorer/toolchain.h>
|
#include <projectexplorer/toolchain.h>
|
||||||
#include "qt4nodes.h"
|
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
|
|
||||||
@@ -42,7 +41,7 @@ class QMakeStep;
|
|||||||
class MakeStep;
|
class MakeStep;
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
class Qt4ProFileNode;
|
||||||
class Qt4BuildConfigurationFactory;
|
class Qt4BuildConfigurationFactory;
|
||||||
class Qt4Target;
|
class Qt4Target;
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@
|
|||||||
#include <QtCore/QDir>
|
#include <QtCore/QDir>
|
||||||
#include <QtCore/QFile>
|
#include <QtCore/QFile>
|
||||||
#include <QtCore/QFileInfo>
|
#include <QtCore/QFileInfo>
|
||||||
|
#include <QtCore/QCoreApplication>
|
||||||
|
|
||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
#include <QtGui/QMainWindow>
|
#include <QtGui/QMainWindow>
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include <coreplugin/coreconstants.h>
|
#include <coreplugin/coreconstants.h>
|
||||||
#include <coreplugin/progressmanager/progressmanager.h>
|
#include <coreplugin/progressmanager/progressmanager.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
#include <cpptools/cppmodelmanagerinterface.h>
|
||||||
#include <projectexplorer/buildenvironmentwidget.h>
|
#include <projectexplorer/buildenvironmentwidget.h>
|
||||||
#include <projectexplorer/customexecutablerunconfiguration.h>
|
#include <projectexplorer/customexecutablerunconfiguration.h>
|
||||||
#include <projectexplorer/nodesvisitor.h>
|
#include <projectexplorer/nodesvisitor.h>
|
||||||
|
|||||||
@@ -30,28 +30,18 @@
|
|||||||
#ifndef QT4PROJECT_H
|
#ifndef QT4PROJECT_H
|
||||||
#define QT4PROJECT_H
|
#define QT4PROJECT_H
|
||||||
|
|
||||||
#include "profileevaluator.h"
|
|
||||||
#include "qt4nodes.h"
|
#include "qt4nodes.h"
|
||||||
#include "qt4target.h"
|
#include "qt4target.h"
|
||||||
#include "qmakestep.h"
|
|
||||||
#include "makestep.h"
|
|
||||||
#include "qtversionmanager.h"
|
|
||||||
|
|
||||||
#include <coreplugin/ifile.h>
|
#include <projectexplorer/project.h>
|
||||||
#include <projectexplorer/applicationrunconfiguration.h>
|
|
||||||
#include <projectexplorer/projectnodes.h>
|
#include <projectexplorer/projectnodes.h>
|
||||||
#include <projectexplorer/toolchain.h>
|
#include <coreplugin/ifile.h>
|
||||||
#include <projectexplorer/buildconfiguration.h>
|
|
||||||
#include <cpptools/cppmodelmanagerinterface.h>
|
|
||||||
|
|
||||||
#include <QtCore/QObject>
|
|
||||||
#include <QtCore/QList>
|
|
||||||
#include <QtCore/QStringList>
|
#include <QtCore/QStringList>
|
||||||
#include <QtCore/QPointer>
|
|
||||||
#include <QtCore/QMap>
|
#include <QtCore/QMap>
|
||||||
#include <QtGui/QDirModel>
|
|
||||||
#include <QtCore/QFutureInterface>
|
#include <QtCore/QFutureInterface>
|
||||||
#include <QtCore/QTimer>
|
#include <QtCore/QTimer>
|
||||||
|
#include <QtCore/QFuture>
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
struct ProFileOption;
|
struct ProFileOption;
|
||||||
@@ -64,11 +54,13 @@ namespace Internal {
|
|||||||
class DeployHelperRunStep;
|
class DeployHelperRunStep;
|
||||||
class FileItem;
|
class FileItem;
|
||||||
class Qt4ProFileNode;
|
class Qt4ProFileNode;
|
||||||
|
class Qt4PriFileNode;
|
||||||
class Qt4RunConfiguration;
|
class Qt4RunConfiguration;
|
||||||
class GCCPreprocessor;
|
class GCCPreprocessor;
|
||||||
struct Qt4ProjectFiles;
|
struct Qt4ProjectFiles;
|
||||||
class Qt4ProjectConfigWidget;
|
class Qt4ProjectConfigWidget;
|
||||||
class Qt4Target;
|
|
||||||
|
class Qt4NodesWatcher;
|
||||||
|
|
||||||
class CodeModelInfo
|
class CodeModelInfo
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -45,6 +45,8 @@
|
|||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
|
||||||
#include <QtGui/QFileDialog>
|
#include <QtGui/QFileDialog>
|
||||||
|
#include <QtGui/QPushButton>
|
||||||
|
#include <utils/detailswidget.h>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
bool debug = false;
|
bool debug = false;
|
||||||
|
|||||||
@@ -31,8 +31,14 @@
|
|||||||
#define QT4PROJECTCONFIGWIDGET_H
|
#define QT4PROJECTCONFIGWIDGET_H
|
||||||
|
|
||||||
#include <projectexplorer/buildstep.h>
|
#include <projectexplorer/buildstep.h>
|
||||||
#include <QtGui/QPushButton>
|
|
||||||
#include <utils/detailswidget.h>
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QAbstractButton;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
namespace Utils {
|
||||||
|
class DetailsWidget;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
|
|
||||||
@@ -49,7 +55,7 @@ class Qt4ProjectConfigWidget : public ProjectExplorer::BuildConfigWidget
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Qt4ProjectConfigWidget(Qt4Project *project);
|
explicit Qt4ProjectConfigWidget(Qt4Project *project);
|
||||||
~Qt4ProjectConfigWidget();
|
~Qt4ProjectConfigWidget();
|
||||||
|
|
||||||
QString displayName() const;
|
QString displayName() const;
|
||||||
|
|||||||
@@ -43,6 +43,7 @@
|
|||||||
#include <coreplugin/messagemanager.h>
|
#include <coreplugin/messagemanager.h>
|
||||||
#include <coreplugin/uniqueidmanager.h>
|
#include <coreplugin/uniqueidmanager.h>
|
||||||
#include <coreplugin/editormanager/editormanager.h>
|
#include <coreplugin/editormanager/editormanager.h>
|
||||||
|
#include <projectexplorer/projectexplorer.h>
|
||||||
#include <projectexplorer/buildmanager.h>
|
#include <projectexplorer/buildmanager.h>
|
||||||
#include <projectexplorer/session.h>
|
#include <projectexplorer/session.h>
|
||||||
#include <projectexplorer/project.h>
|
#include <projectexplorer/project.h>
|
||||||
|
|||||||
@@ -30,6 +30,8 @@
|
|||||||
#include "qt4projectmanagerplugin.h"
|
#include "qt4projectmanagerplugin.h"
|
||||||
|
|
||||||
#include "qt4projectmanager.h"
|
#include "qt4projectmanager.h"
|
||||||
|
#include "qmakestep.h"
|
||||||
|
#include "makestep.h"
|
||||||
#include "wizards/consoleappwizard.h"
|
#include "wizards/consoleappwizard.h"
|
||||||
#include "wizards/guiappwizard.h"
|
#include "wizards/guiappwizard.h"
|
||||||
#include "wizards/librarywizard.h"
|
#include "wizards/librarywizard.h"
|
||||||
|
|||||||
@@ -30,9 +30,17 @@
|
|||||||
#ifndef QT4PROJECTMANAGERPLUGIN_H
|
#ifndef QT4PROJECTMANAGERPLUGIN_H
|
||||||
#define QT4PROJECTMANAGERPLUGIN_H
|
#define QT4PROJECTMANAGERPLUGIN_H
|
||||||
|
|
||||||
#include <projectexplorer/project.h>
|
#include <extensionsystem/iplugin.h>
|
||||||
#include <projectexplorer/projectexplorer.h>
|
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
class QAction;
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
namespace ProjectExplorer {
|
||||||
|
class Project;
|
||||||
|
class Node;
|
||||||
|
class ProjectExplorerPlugin;
|
||||||
|
}
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
|
|
||||||
class Qt4Manager;
|
class Qt4Manager;
|
||||||
|
|||||||
@@ -45,6 +45,8 @@
|
|||||||
#include <projectexplorer/environmenteditmodel.h>
|
#include <projectexplorer/environmenteditmodel.h>
|
||||||
#include <projectexplorer/persistentsettings.h>
|
#include <projectexplorer/persistentsettings.h>
|
||||||
#include <utils/qtcassert.h>
|
#include <utils/qtcassert.h>
|
||||||
|
#include <utils/pathchooser.h>
|
||||||
|
#include <utils/detailswidget.h>
|
||||||
|
|
||||||
#include <QtGui/QFormLayout>
|
#include <QtGui/QFormLayout>
|
||||||
#include <QtGui/QInputDialog>
|
#include <QtGui/QInputDialog>
|
||||||
|
|||||||
@@ -30,17 +30,11 @@
|
|||||||
#ifndef QT4RUNCONFIGURATION_H
|
#ifndef QT4RUNCONFIGURATION_H
|
||||||
#define QT4RUNCONFIGURATION_H
|
#define QT4RUNCONFIGURATION_H
|
||||||
|
|
||||||
#include <utils/pathchooser.h>
|
|
||||||
#include <utils/detailswidget.h>
|
|
||||||
#include <projectexplorer/applicationrunconfiguration.h>
|
#include <projectexplorer/applicationrunconfiguration.h>
|
||||||
#include <projectexplorer/environment.h>
|
|
||||||
#include <projectexplorer/environmenteditmodel.h>
|
|
||||||
#include <QtCore/QStringList>
|
#include <QtCore/QStringList>
|
||||||
#include <QtGui/QWidget>
|
#include <QtGui/QWidget>
|
||||||
#include <QtGui/QToolButton>
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
class QWidget;
|
|
||||||
class QCheckBox;
|
class QCheckBox;
|
||||||
class QLabel;
|
class QLabel;
|
||||||
class QLineEdit;
|
class QLineEdit;
|
||||||
@@ -48,6 +42,15 @@ class QRadioButton;
|
|||||||
class QComboBox;
|
class QComboBox;
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
namespace Utils {
|
||||||
|
class PathChooser;
|
||||||
|
class DetailsWidget;
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace ProjectExplorer {
|
||||||
|
class EnvironmentWidget;
|
||||||
|
}
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
|
|
||||||
class Qt4Project;
|
class Qt4Project;
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
#include "makestep.h"
|
#include "makestep.h"
|
||||||
#include "profilereader.h"
|
#include "profilereader.h"
|
||||||
#include "qmakestep.h"
|
#include "qmakestep.h"
|
||||||
#include "qt4buildconfiguration.h"
|
|
||||||
#include "qt4project.h"
|
#include "qt4project.h"
|
||||||
#include "qt4runconfiguration.h"
|
#include "qt4runconfiguration.h"
|
||||||
#include "qt4projectmanagerconstants.h"
|
#include "qt4projectmanagerconstants.h"
|
||||||
|
|||||||
@@ -30,10 +30,7 @@
|
|||||||
#ifndef QT4TARGET_H
|
#ifndef QT4TARGET_H
|
||||||
#define QT4TARGET_H
|
#define QT4TARGET_H
|
||||||
|
|
||||||
#include "qtversionmanager.h"
|
|
||||||
|
|
||||||
#include "qt4buildconfiguration.h"
|
#include "qt4buildconfiguration.h"
|
||||||
|
|
||||||
#include <projectexplorer/target.h>
|
#include <projectexplorer/target.h>
|
||||||
|
|
||||||
#include <QtGui/QPixmap>
|
#include <QtGui/QPixmap>
|
||||||
@@ -43,10 +40,10 @@ namespace Qt4ProjectManager {
|
|||||||
class Qt4Project;
|
class Qt4Project;
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class ProFileReader;
|
class ProFileReader;
|
||||||
class Qt4ProFileNode;
|
class Qt4ProFileNode;
|
||||||
class Qt4TargetFactory;
|
class Qt4TargetFactory;
|
||||||
|
class Qt4BuildConfigurationFactory;
|
||||||
|
|
||||||
class Qt4Target : public ProjectExplorer::Target
|
class Qt4Target : public ProjectExplorer::Target
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,6 +33,8 @@
|
|||||||
#include "qt4project.h"
|
#include "qt4project.h"
|
||||||
#include "qt4target.h"
|
#include "qt4target.h"
|
||||||
|
|
||||||
|
#include <QtCore/QProcess>
|
||||||
|
|
||||||
using namespace Qt4ProjectManager;
|
using namespace Qt4ProjectManager;
|
||||||
using namespace Internal;
|
using namespace Internal;
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
#ifndef QTVERSIONMANAGER_H
|
#ifndef QTVERSIONMANAGER_H
|
||||||
#define QTVERSIONMANAGER_H
|
#define QTVERSIONMANAGER_H
|
||||||
|
|
||||||
#include <projectexplorer/environment.h>
|
|
||||||
#include <projectexplorer/toolchain.h>
|
#include <projectexplorer/toolchain.h>
|
||||||
#include <QSharedPointer>
|
#include <QSharedPointer>
|
||||||
|
|
||||||
@@ -38,10 +37,6 @@
|
|||||||
#include <QtCore/QSet>
|
#include <QtCore/QSet>
|
||||||
#include <QtCore/QSharedPointer>
|
#include <QtCore/QSharedPointer>
|
||||||
|
|
||||||
namespace ProjectExplorer {
|
|
||||||
class ToolChain;
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace Qt4ProjectManager {
|
namespace Qt4ProjectManager {
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <cpptools/cpptoolsconstants.h>
|
#include <cpptools/cpptoolsconstants.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
|
#include <projectexplorer/projectexplorer.h>
|
||||||
#include <QtCore/QCoreApplication>
|
#include <QtCore/QCoreApplication>
|
||||||
#include <QtCore/QVariant>
|
#include <QtCore/QVariant>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user