2010-01-07 11:21:11 +01:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2010-03-05 11:25:49 +01:00
|
|
|
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
2010-01-07 11:21:11 +01:00
|
|
|
** All rights reserved.
|
|
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
|
|
|
**
|
|
|
|
|
** This file is part of the Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** $QT_BEGIN_LICENSE:LGPL$
|
|
|
|
|
** No Commercial Usage
|
|
|
|
|
** This file contains pre-release code and may not be distributed.
|
|
|
|
|
** You may use this file in accordance with the terms and conditions
|
|
|
|
|
** contained in the Technology Preview License Agreement accompanying
|
|
|
|
|
** this package.
|
|
|
|
|
**
|
|
|
|
|
** 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.
|
|
|
|
|
**
|
|
|
|
|
** In addition, as a special exception, Nokia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
|
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
|
|
|
|
** If you have questions regarding the use of this file, please contact
|
|
|
|
|
** Nokia at qt-info@nokia.com.
|
|
|
|
|
**
|
|
|
|
|
** $QT_END_LICENSE$
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#include "maemorunconfigurationwidget.h"
|
|
|
|
|
|
2010-07-16 17:09:05 +02:00
|
|
|
#include "maemodeviceconfiglistmodel.h"
|
2010-07-28 09:36:30 +02:00
|
|
|
#include "maemodeviceenvreader.h"
|
2010-01-07 11:21:11 +01:00
|
|
|
#include "maemomanager.h"
|
2010-07-26 16:07:28 +02:00
|
|
|
#include "maemoremotemountsmodel.h"
|
2010-01-07 11:21:11 +01:00
|
|
|
#include "maemorunconfiguration.h"
|
|
|
|
|
#include "maemosettingspage.h"
|
|
|
|
|
|
|
|
|
|
#include <coreplugin/icore.h>
|
2010-07-27 17:57:16 +02:00
|
|
|
#include <projectexplorer/environmenteditmodel.h>
|
2010-01-07 11:21:11 +01:00
|
|
|
|
|
|
|
|
#include <QtGui/QComboBox>
|
2010-07-26 16:07:28 +02:00
|
|
|
#include <QtGui/QFileDialog>
|
2010-01-07 11:21:11 +01:00
|
|
|
#include <QtGui/QFormLayout>
|
2010-07-26 16:07:28 +02:00
|
|
|
#include <QtGui/QGroupBox>
|
2010-01-07 11:21:11 +01:00
|
|
|
#include <QtGui/QHBoxLayout>
|
2010-07-26 16:07:28 +02:00
|
|
|
#include <QtGui/QHeaderView>
|
2010-01-07 11:21:11 +01:00
|
|
|
#include <QtGui/QLabel>
|
|
|
|
|
#include <QtGui/QLineEdit>
|
2010-07-27 17:57:16 +02:00
|
|
|
#include <QtGui/QPushButton>
|
2010-07-26 16:07:28 +02:00
|
|
|
#include <QtGui/QTableView>
|
2010-01-07 11:21:11 +01:00
|
|
|
#include <QtGui/QToolButton>
|
|
|
|
|
|
|
|
|
|
namespace Qt4ProjectManager {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
MaemoRunConfigurationWidget::MaemoRunConfigurationWidget(
|
|
|
|
|
MaemoRunConfiguration *runConfiguration, QWidget *parent)
|
2010-07-27 17:57:16 +02:00
|
|
|
: QWidget(parent),
|
|
|
|
|
m_runConfiguration(runConfiguration),
|
2010-07-28 14:27:08 +02:00
|
|
|
m_ignoreChange(false),
|
2010-07-28 09:36:30 +02:00
|
|
|
m_deviceEnvReader(new MaemoDeviceEnvReader(this, runConfiguration))
|
2010-01-07 11:21:11 +01:00
|
|
|
{
|
2010-07-26 16:07:28 +02:00
|
|
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
2010-01-07 11:21:11 +01:00
|
|
|
setLayout(mainLayout);
|
|
|
|
|
|
2010-07-26 16:07:28 +02:00
|
|
|
QFormLayout *formLayout = new QFormLayout;
|
|
|
|
|
mainLayout->addLayout(formLayout);
|
|
|
|
|
formLayout->setFormAlignment(Qt::AlignLeft | Qt::AlignVCenter);
|
2010-01-07 18:17:24 +01:00
|
|
|
m_configNameLineEdit = new QLineEdit(m_runConfiguration->displayName());
|
2010-07-26 16:07:28 +02:00
|
|
|
formLayout->addRow(tr("Run configuration name:"), m_configNameLineEdit);
|
2010-03-31 18:28:04 +02:00
|
|
|
|
2010-01-07 11:21:11 +01:00
|
|
|
QWidget *devConfWidget = new QWidget;
|
|
|
|
|
QHBoxLayout *devConfLayout = new QHBoxLayout(devConfWidget);
|
|
|
|
|
m_devConfBox = new QComboBox;
|
|
|
|
|
m_devConfBox->setSizeAdjustPolicy(QComboBox::AdjustToContents);
|
2010-07-16 17:09:05 +02:00
|
|
|
m_devConfBox->setModel(runConfiguration->deviceConfigModel());
|
2010-02-03 15:20:12 +01:00
|
|
|
devConfLayout->setMargin(0);
|
2010-01-07 11:21:11 +01:00
|
|
|
devConfLayout->addWidget(m_devConfBox);
|
2010-03-31 18:28:04 +02:00
|
|
|
QLabel *addDevConfLabel= new QLabel(tr("<a href=\"%1\">Manage device configurations</a>")
|
|
|
|
|
.arg(QLatin1String("deviceconfig")));
|
2010-04-09 16:52:15 +02:00
|
|
|
addDevConfLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
2010-01-07 11:21:11 +01:00
|
|
|
devConfLayout->addWidget(addDevConfLabel);
|
2010-07-28 14:27:08 +02:00
|
|
|
|
2010-04-09 16:52:15 +02:00
|
|
|
QLabel *debuggerConfLabel = new QLabel(tr("<a href=\"%1\">Set Debugger</a>")
|
|
|
|
|
.arg(QLatin1String("debugger")));
|
|
|
|
|
debuggerConfLabel->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
|
|
|
|
|
devConfLayout->addWidget(debuggerConfLabel);
|
2010-03-31 18:28:04 +02:00
|
|
|
|
2010-07-26 16:07:28 +02:00
|
|
|
formLayout->addRow(new QLabel(tr("Device configuration:")), devConfWidget);
|
2010-07-14 17:26:51 +02:00
|
|
|
m_executableLabel = new QLabel(m_runConfiguration->localExecutableFilePath());
|
2010-07-26 16:07:28 +02:00
|
|
|
formLayout->addRow(tr("Executable:"), m_executableLabel);
|
2010-01-07 11:21:11 +01:00
|
|
|
m_argsLineEdit = new QLineEdit(m_runConfiguration->arguments().join(" "));
|
2010-07-26 16:07:28 +02:00
|
|
|
formLayout->addRow(tr("Arguments:"), m_argsLineEdit);
|
|
|
|
|
|
|
|
|
|
mainLayout->addSpacing(20);
|
|
|
|
|
QGroupBox *mountViewBox = new QGroupBox;
|
|
|
|
|
#ifndef Q_OS_WIN
|
|
|
|
|
mainLayout->addWidget(mountViewBox);
|
|
|
|
|
#endif
|
|
|
|
|
mountViewBox->setTitle(tr("Local Directories to mount from device"));
|
|
|
|
|
QVBoxLayout *mountViewLayout = new QVBoxLayout(mountViewBox);
|
|
|
|
|
QHBoxLayout *hostAddressLayout = new QHBoxLayout;
|
|
|
|
|
mountViewLayout->addLayout(hostAddressLayout);
|
|
|
|
|
QLabel *hostNameLabel
|
|
|
|
|
= new QLabel(tr("This host's address from the device:"));
|
|
|
|
|
m_hostAddressLineEdit = new QLineEdit;
|
|
|
|
|
m_hostAddressLineEdit->setText(m_runConfiguration->localHostAddressFromDevice());
|
|
|
|
|
connect(m_hostAddressLineEdit, SIGNAL(editingFinished()), this,
|
|
|
|
|
SLOT(handleHostAddressChanged()));
|
|
|
|
|
hostAddressLayout->addWidget(hostNameLabel);
|
|
|
|
|
hostAddressLayout->addWidget(m_hostAddressLineEdit);
|
|
|
|
|
hostAddressLayout->addStretch(1);
|
|
|
|
|
QHBoxLayout *tableLayout = new QHBoxLayout;
|
|
|
|
|
mountViewLayout->addLayout(tableLayout);
|
|
|
|
|
m_mountView = new QTableView;
|
|
|
|
|
m_mountView->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
|
|
|
|
|
m_mountView->setSelectionBehavior(QTableView::SelectRows);
|
|
|
|
|
m_mountView->setModel(m_runConfiguration->remoteMounts());
|
|
|
|
|
tableLayout->addWidget(m_mountView);
|
|
|
|
|
QVBoxLayout *mountViewButtonsLayout = new QVBoxLayout;
|
|
|
|
|
tableLayout->addLayout(mountViewButtonsLayout);
|
|
|
|
|
QToolButton *addMountButton = new QToolButton;
|
|
|
|
|
QIcon plusIcon;
|
|
|
|
|
plusIcon.addFile(QLatin1String(":/core/images/plus.png"));
|
|
|
|
|
addMountButton->setIcon(plusIcon);
|
|
|
|
|
mountViewButtonsLayout->addWidget(addMountButton);
|
|
|
|
|
m_removeMountButton = new QToolButton;
|
|
|
|
|
QIcon minusIcon;
|
|
|
|
|
minusIcon.addFile(QLatin1String(":/core/images/minus.png"));
|
|
|
|
|
m_removeMountButton->setIcon(minusIcon);
|
|
|
|
|
mountViewButtonsLayout->addWidget(m_removeMountButton);
|
|
|
|
|
mountViewButtonsLayout->addStretch(1);
|
2010-03-31 18:28:04 +02:00
|
|
|
|
2010-07-27 17:57:16 +02:00
|
|
|
QWidget *baseEnvironmentWidget = new QWidget;
|
|
|
|
|
QHBoxLayout *baseEnvironmentLayout = new QHBoxLayout(baseEnvironmentWidget);
|
|
|
|
|
baseEnvironmentLayout->setMargin(0);
|
|
|
|
|
QLabel *label = new QLabel(tr("Base environment for this runconfiguration:"), this);
|
|
|
|
|
baseEnvironmentLayout->addWidget(label);
|
2010-07-28 14:27:08 +02:00
|
|
|
m_baseEnvironmentComboBox = new QComboBox(this);
|
2010-07-27 17:57:16 +02:00
|
|
|
m_baseEnvironmentComboBox->addItems(QStringList() << tr("Clean Environment")
|
|
|
|
|
<< tr("System Environment"));
|
2010-07-28 14:27:08 +02:00
|
|
|
m_baseEnvironmentComboBox->setCurrentIndex(m_runConfiguration->baseEnvironmentBase());
|
2010-07-27 17:57:16 +02:00
|
|
|
baseEnvironmentLayout->addWidget(m_baseEnvironmentComboBox);
|
2010-07-28 14:27:08 +02:00
|
|
|
|
2010-07-27 17:57:16 +02:00
|
|
|
m_fetchEnv = new QPushButton(tr("Fetch Device Environment"));
|
|
|
|
|
baseEnvironmentLayout->addWidget(m_fetchEnv);
|
2010-07-28 14:27:08 +02:00
|
|
|
baseEnvironmentLayout->addStretch(10);
|
2010-07-27 17:57:16 +02:00
|
|
|
|
|
|
|
|
m_environmentWidget = new ProjectExplorer::EnvironmentWidget(this, baseEnvironmentWidget);
|
|
|
|
|
m_environmentWidget->setBaseEnvironment(m_deviceEnvReader->deviceEnvironment());
|
2010-07-28 14:27:08 +02:00
|
|
|
m_environmentWidget->setBaseEnvironmentText(m_runConfiguration->baseEnvironmentText());
|
|
|
|
|
m_environmentWidget->setUserChanges(m_runConfiguration->userEnvironmentChanges());
|
2010-07-27 17:57:16 +02:00
|
|
|
mainLayout->addWidget(m_environmentWidget);
|
|
|
|
|
|
2010-07-16 17:09:05 +02:00
|
|
|
handleCurrentDeviceConfigChanged();
|
2010-07-26 16:07:28 +02:00
|
|
|
enableOrDisableRemoveButton();
|
2010-07-27 17:57:16 +02:00
|
|
|
|
2010-01-07 11:21:11 +01:00
|
|
|
connect(m_configNameLineEdit, SIGNAL(textEdited(QString)), this,
|
|
|
|
|
SLOT(configNameEdited(QString)));
|
|
|
|
|
connect(m_argsLineEdit, SIGNAL(textEdited(QString)), this,
|
|
|
|
|
SLOT(argumentsEdited(QString)));
|
2010-07-16 17:09:05 +02:00
|
|
|
connect(m_devConfBox, SIGNAL(activated(int)), this,
|
|
|
|
|
SLOT(setCurrentDeviceConfig(int)));
|
|
|
|
|
connect(runConfiguration->deviceConfigModel(), SIGNAL(currentChanged()),
|
|
|
|
|
this, SLOT(handleCurrentDeviceConfigChanged()));
|
2010-01-07 11:21:11 +01:00
|
|
|
connect(m_runConfiguration, SIGNAL(targetInformationChanged()), this,
|
|
|
|
|
SLOT(updateTargetInformation()));
|
|
|
|
|
connect(addDevConfLabel, SIGNAL(linkActivated(QString)), this,
|
2010-03-31 18:28:04 +02:00
|
|
|
SLOT(showSettingsDialog(QString)));
|
|
|
|
|
connect(debuggerConfLabel, SIGNAL(linkActivated(QString)), this,
|
|
|
|
|
SLOT(showSettingsDialog(QString)));
|
2010-07-26 16:07:28 +02:00
|
|
|
connect(addMountButton, SIGNAL(clicked()), this, SLOT(addMount()));
|
|
|
|
|
connect(m_removeMountButton, SIGNAL(clicked()), this, SLOT(removeMount()));
|
|
|
|
|
connect(m_mountView, SIGNAL(doubleClicked(QModelIndex)), this,
|
|
|
|
|
SLOT(changeLocalMountDir(QModelIndex)));
|
|
|
|
|
connect(m_mountView->selectionModel(),
|
|
|
|
|
SIGNAL(selectionChanged(QItemSelection,QItemSelection)), this,
|
|
|
|
|
SLOT(enableOrDisableRemoveButton()));
|
2010-07-28 14:27:08 +02:00
|
|
|
|
|
|
|
|
connect(m_environmentWidget, SIGNAL(userChangesChanged()), this,
|
|
|
|
|
SLOT(userChangesEdited()));
|
|
|
|
|
connect(m_baseEnvironmentComboBox, SIGNAL(currentIndexChanged(int)),
|
|
|
|
|
this, SLOT(baseEnvironmentSelected(int)));
|
|
|
|
|
connect(m_runConfiguration, SIGNAL(baseEnvironmentChanged()),
|
|
|
|
|
this, SLOT(baseEnvironmentChanged()));
|
|
|
|
|
connect(m_runConfiguration, SIGNAL(systemEnvironmentChanged()),
|
|
|
|
|
this, SLOT(systemEnvironmentChanged()));
|
|
|
|
|
connect(m_runConfiguration,
|
|
|
|
|
SIGNAL(userEnvironmentChangesChanged(QList<ProjectExplorer::EnvironmentItem>)),
|
|
|
|
|
this, SLOT(userEnvironmentChangesChanged(QList<ProjectExplorer::EnvironmentItem>)));
|
|
|
|
|
connect(m_fetchEnv, SIGNAL(pressed()), this, SLOT(fetchEnvironment()));
|
|
|
|
|
connect(m_deviceEnvReader, SIGNAL(finished()), this, SLOT(fetchEnvironmentFinished()));
|
2010-01-07 11:21:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::configNameEdited(const QString &text)
|
|
|
|
|
{
|
2010-01-07 18:17:24 +01:00
|
|
|
m_runConfiguration->setDisplayName(text);
|
2010-01-07 11:21:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::argumentsEdited(const QString &text)
|
|
|
|
|
{
|
|
|
|
|
m_runConfiguration->setArguments(text.split(' ', QString::SkipEmptyParts));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::updateTargetInformation()
|
|
|
|
|
{
|
2010-07-14 17:26:51 +02:00
|
|
|
m_executableLabel->setText(m_runConfiguration->localExecutableFilePath());
|
2010-01-07 11:21:11 +01:00
|
|
|
}
|
|
|
|
|
|
2010-03-31 18:28:04 +02:00
|
|
|
void MaemoRunConfigurationWidget::showSettingsDialog(const QString &link)
|
2010-01-07 11:21:11 +01:00
|
|
|
{
|
2010-04-09 16:52:15 +02:00
|
|
|
if (link == QLatin1String("deviceconfig")) {
|
2010-03-31 18:28:04 +02:00
|
|
|
MaemoSettingsPage *page = MaemoManager::instance().settingsPage();
|
|
|
|
|
Core::ICore::instance()->showOptionsDialog(page->category(), page->id());
|
2010-04-09 16:52:15 +02:00
|
|
|
} else if (link == QLatin1String("debugger")) {
|
|
|
|
|
Core::ICore::instance()->showOptionsDialog(QLatin1String("O.Debugger"),
|
|
|
|
|
QLatin1String("M.Gdb"));
|
2010-03-31 18:28:04 +02:00
|
|
|
}
|
2010-01-07 11:21:11 +01:00
|
|
|
}
|
|
|
|
|
|
2010-07-16 17:09:05 +02:00
|
|
|
void MaemoRunConfigurationWidget::handleCurrentDeviceConfigChanged()
|
|
|
|
|
{
|
|
|
|
|
m_devConfBox->setCurrentIndex(m_runConfiguration->deviceConfigModel()
|
|
|
|
|
->currentIndex());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::setCurrentDeviceConfig(int index)
|
|
|
|
|
{
|
|
|
|
|
m_runConfiguration->deviceConfigModel()->setCurrentIndex(index);
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-26 16:07:28 +02:00
|
|
|
void MaemoRunConfigurationWidget::enableOrDisableRemoveButton()
|
|
|
|
|
{
|
|
|
|
|
const QModelIndexList selectedRows
|
|
|
|
|
= m_mountView->selectionModel()->selectedRows();
|
|
|
|
|
m_removeMountButton->setEnabled(!selectedRows.isEmpty());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::addMount()
|
|
|
|
|
{
|
|
|
|
|
const QString localDir = QFileDialog::getExistingDirectory(this,
|
|
|
|
|
tr("Choose directory to mount"));
|
|
|
|
|
if (!localDir.isEmpty()) {
|
|
|
|
|
MaemoRemoteMountsModel * const mountsModel
|
|
|
|
|
= m_runConfiguration->remoteMounts();
|
|
|
|
|
mountsModel->addMountSpecification(localDir);
|
|
|
|
|
m_mountView->edit(mountsModel->index(mountsModel->mountSpecificationCount() - 1,
|
|
|
|
|
mountsModel->RemoteMountPointRow));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::removeMount()
|
|
|
|
|
{
|
|
|
|
|
const QModelIndexList selectedRows
|
|
|
|
|
= m_mountView->selectionModel()->selectedRows();
|
|
|
|
|
if (!selectedRows.isEmpty()) {
|
|
|
|
|
m_runConfiguration->remoteMounts()
|
|
|
|
|
->removeMountSpecificationAt(selectedRows.first().row());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::changeLocalMountDir(const QModelIndex &index)
|
|
|
|
|
{
|
|
|
|
|
if (index.column() == MaemoRemoteMountsModel::LocalDirRow) {
|
|
|
|
|
MaemoRemoteMountsModel * const mountsModel
|
|
|
|
|
= m_runConfiguration->remoteMounts();
|
|
|
|
|
const QString oldDir
|
|
|
|
|
= mountsModel->mountSpecificationAt(index.row()).localDir;
|
|
|
|
|
const QString localDir = QFileDialog::getExistingDirectory(this,
|
|
|
|
|
tr("Choose directory to mount"), oldDir);
|
|
|
|
|
if (!localDir.isEmpty())
|
|
|
|
|
mountsModel->setLocalDir(index.row(), localDir);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::handleHostAddressChanged()
|
|
|
|
|
{
|
|
|
|
|
m_runConfiguration->setLocalHostAddressFromDevice(m_hostAddressLineEdit->text());
|
|
|
|
|
}
|
|
|
|
|
|
2010-07-27 17:57:16 +02:00
|
|
|
void MaemoRunConfigurationWidget::fetchEnvironment()
|
|
|
|
|
{
|
|
|
|
|
m_deviceEnvReader->start();
|
|
|
|
|
m_fetchEnv->setEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::fetchEnvironmentFinished()
|
|
|
|
|
{
|
|
|
|
|
m_fetchEnv->setEnabled(true);
|
2010-07-28 14:27:08 +02:00
|
|
|
m_runConfiguration->setSystemEnvironment(m_deviceEnvReader->deviceEnvironment());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::userChangesEdited()
|
|
|
|
|
{
|
|
|
|
|
m_ignoreChange = true;
|
|
|
|
|
m_runConfiguration->setUserEnvironmentChanges(m_environmentWidget->userChanges());
|
|
|
|
|
m_ignoreChange = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::baseEnvironmentSelected(int index)
|
|
|
|
|
{
|
|
|
|
|
m_ignoreChange = true;
|
|
|
|
|
m_runConfiguration->setBaseEnvironmentBase(MaemoRunConfiguration::BaseEnvironmentBase(index));
|
|
|
|
|
|
|
|
|
|
m_environmentWidget->setBaseEnvironment(m_runConfiguration->baseEnvironment());
|
|
|
|
|
m_environmentWidget->setBaseEnvironmentText(m_runConfiguration->baseEnvironmentText());
|
|
|
|
|
m_ignoreChange = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::baseEnvironmentChanged()
|
|
|
|
|
{
|
|
|
|
|
if (m_ignoreChange)
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
m_baseEnvironmentComboBox->setCurrentIndex(m_runConfiguration->baseEnvironmentBase());
|
|
|
|
|
m_environmentWidget->setBaseEnvironment(m_runConfiguration->baseEnvironment());
|
|
|
|
|
m_environmentWidget->setBaseEnvironmentText(m_runConfiguration->baseEnvironmentText());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::systemEnvironmentChanged()
|
|
|
|
|
{
|
|
|
|
|
m_environmentWidget->setBaseEnvironment(m_runConfiguration->systemEnvironment());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MaemoRunConfigurationWidget::userEnvironmentChangesChanged(const QList<ProjectExplorer::EnvironmentItem> &userChanges)
|
|
|
|
|
{
|
|
|
|
|
if (m_ignoreChange)
|
|
|
|
|
return;
|
|
|
|
|
m_environmentWidget->setUserChanges(userChanges);
|
2010-07-27 17:57:16 +02:00
|
|
|
}
|
|
|
|
|
|
2010-01-07 11:21:11 +01:00
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Qt4ProjectManager
|