2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2012-07-24 17:02:42 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
|
|
|
|
|
** Contact: http://www.qt-project.org/legal
|
2012-07-24 17:02:42 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2012-07-24 17:02:42 +02:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Digia. For licensing terms and
|
|
|
|
|
** conditions see http://qt.digia.com/licensing. For further information
|
|
|
|
|
** use the contact form at http://qt.digia.com/contact-us.
|
2012-07-24 17:02:42 +02:00
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
2012-10-02 09:12:39 +02:00
|
|
|
** 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, Digia gives you certain additional
|
|
|
|
|
** rights. These rights are described in the Digia Qt LGPL Exception
|
2012-07-24 17:02:42 +02:00
|
|
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2012-07-24 17:02:42 +02:00
|
|
|
|
|
|
|
|
#include "loadcoredialog.h"
|
|
|
|
|
|
|
|
|
|
#include "debuggerconstants.h"
|
|
|
|
|
#include "debuggercore.h"
|
|
|
|
|
#include "debuggerstartparameters.h"
|
2012-09-05 10:55:05 +02:00
|
|
|
#include "debuggerdialogs.h"
|
2012-07-24 17:02:42 +02:00
|
|
|
|
|
|
|
|
#include <coreplugin/icore.h>
|
|
|
|
|
#include <projectexplorer/abi.h>
|
2012-09-03 18:31:44 +02:00
|
|
|
#include <projectexplorer/kitchooser.h>
|
|
|
|
|
#include <projectexplorer/kitinformation.h>
|
2012-07-24 17:02:42 +02:00
|
|
|
#include <ssh/sshconnection.h>
|
|
|
|
|
#include <ssh/sshremoteprocessrunner.h>
|
|
|
|
|
#include <ssh/sftpdefs.h>
|
|
|
|
|
#include <ssh/sftpfilesystemmodel.h>
|
|
|
|
|
#include <utils/historycompleter.h>
|
|
|
|
|
#include <utils/pathchooser.h>
|
|
|
|
|
#include <utils/qtcassert.h>
|
|
|
|
|
|
|
|
|
|
#include <QCoreApplication>
|
|
|
|
|
#include <QDebug>
|
|
|
|
|
#include <QDir>
|
|
|
|
|
#include <QRegExp>
|
|
|
|
|
#include <QTemporaryFile>
|
|
|
|
|
|
|
|
|
|
#include <QButtonGroup>
|
|
|
|
|
#include <QComboBox>
|
|
|
|
|
#include <QDialogButtonBox>
|
|
|
|
|
#include <QFileDialog>
|
|
|
|
|
#include <QFormLayout>
|
|
|
|
|
#include <QGridLayout>
|
|
|
|
|
#include <QGroupBox>
|
|
|
|
|
#include <QHeaderView>
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
#include <QMessageBox>
|
|
|
|
|
#include <QPushButton>
|
|
|
|
|
#include <QRadioButton>
|
|
|
|
|
#include <QScrollArea>
|
|
|
|
|
#include <QSortFilterProxyModel>
|
|
|
|
|
#include <QStandardItemModel>
|
|
|
|
|
#include <QTableView>
|
|
|
|
|
#include <QTextBrowser>
|
|
|
|
|
#include <QTreeView>
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
|
|
using namespace Core;
|
|
|
|
|
using namespace ProjectExplorer;
|
|
|
|
|
using namespace QSsh;
|
|
|
|
|
using namespace Utils;
|
|
|
|
|
|
|
|
|
|
namespace Debugger {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// SelectRemoteFileDialog
|
|
|
|
|
//
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
class SelectRemoteFileDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit SelectRemoteFileDialog(QWidget *parent);
|
|
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
void attachToDevice(Kit *k);
|
2012-07-24 17:02:42 +02:00
|
|
|
QString localFile() const { return m_localFile; }
|
|
|
|
|
QString remoteFile() const { return m_remoteFile; }
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void handleSftpOperationFinished(QSsh::SftpJobId, const QString &error);
|
|
|
|
|
void handleSftpOperationFailed(const QString &errorMessage);
|
|
|
|
|
void handleConnectionError(const QString &errorMessage);
|
|
|
|
|
void handleRemoteError(const QString &errorMessage);
|
|
|
|
|
void selectFile();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
QSortFilterProxyModel m_model;
|
|
|
|
|
SftpFileSystemModel m_fileSystemModel;
|
|
|
|
|
QTreeView *m_fileSystemView;
|
|
|
|
|
QTextBrowser *m_textBrowser;
|
|
|
|
|
QDialogButtonBox *m_buttonBox;
|
|
|
|
|
QString m_localFile;
|
|
|
|
|
QString m_remoteFile;
|
|
|
|
|
SftpJobId m_sftpJobId;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
SelectRemoteFileDialog::SelectRemoteFileDialog(QWidget *parent)
|
|
|
|
|
: QDialog(parent)
|
|
|
|
|
{
|
|
|
|
|
m_model.setSourceModel(&m_fileSystemModel);
|
|
|
|
|
|
|
|
|
|
m_fileSystemView = new QTreeView(this);
|
|
|
|
|
m_fileSystemView->setModel(&m_model);
|
|
|
|
|
m_fileSystemView->setSortingEnabled(true);
|
2012-10-10 20:15:27 +02:00
|
|
|
m_fileSystemView->sortByColumn(1, Qt::AscendingOrder);
|
2012-07-24 17:02:42 +02:00
|
|
|
m_fileSystemView->setUniformRowHeights(true);
|
|
|
|
|
m_fileSystemView->setSelectionMode(QAbstractItemView::SingleSelection);
|
|
|
|
|
m_fileSystemView->setSelectionBehavior(QAbstractItemView::SelectRows);
|
|
|
|
|
m_fileSystemView->header()->setDefaultSectionSize(100);
|
|
|
|
|
m_fileSystemView->header()->setStretchLastSection(true);
|
|
|
|
|
|
|
|
|
|
m_textBrowser = new QTextBrowser(this);
|
|
|
|
|
m_textBrowser->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
m_buttonBox = new QDialogButtonBox(this);
|
|
|
|
|
m_buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
|
|
|
|
m_buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
|
|
|
|
m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
QVBoxLayout *layout = new QVBoxLayout(this);
|
|
|
|
|
layout->addWidget(m_fileSystemView);
|
|
|
|
|
layout->addWidget(m_textBrowser);
|
|
|
|
|
layout->addWidget(m_buttonBox);
|
|
|
|
|
|
|
|
|
|
QObject::connect(m_buttonBox, SIGNAL(rejected()), SLOT(reject()));
|
|
|
|
|
QObject::connect(m_buttonBox, SIGNAL(accepted()), SLOT(selectFile()));
|
|
|
|
|
|
|
|
|
|
connect(&m_fileSystemModel, SIGNAL(sftpOperationFailed(QString)),
|
|
|
|
|
SLOT(handleSftpOperationFailed(QString)));
|
|
|
|
|
connect(&m_fileSystemModel, SIGNAL(connectionError(QString)),
|
|
|
|
|
SLOT(handleConnectionError(QString)));
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
void SelectRemoteFileDialog::attachToDevice(Kit *k)
|
2012-07-24 17:02:42 +02:00
|
|
|
{
|
|
|
|
|
m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);
|
2012-09-03 18:31:44 +02:00
|
|
|
QTC_ASSERT(k, return);
|
|
|
|
|
IDevice::ConstPtr device = DeviceKitInformation::device(k);
|
2012-07-24 17:02:42 +02:00
|
|
|
QTC_ASSERT(device, return);
|
|
|
|
|
QSsh::SshConnectionParameters sshParams = device->sshParameters();
|
|
|
|
|
m_fileSystemModel.setSshConnection(sshParams);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SelectRemoteFileDialog::handleSftpOperationFailed(const QString &errorMessage)
|
|
|
|
|
{
|
|
|
|
|
m_textBrowser->append(errorMessage);
|
|
|
|
|
//reject();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SelectRemoteFileDialog::handleConnectionError(const QString &errorMessage)
|
|
|
|
|
{
|
|
|
|
|
m_textBrowser->append(errorMessage);
|
|
|
|
|
//reject();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SelectRemoteFileDialog::handleSftpOperationFinished(QSsh::SftpJobId, const QString &error)
|
|
|
|
|
{
|
|
|
|
|
if (error.isEmpty()) {
|
|
|
|
|
m_textBrowser->append(tr("Download of remote file succeeded."));
|
|
|
|
|
accept();
|
|
|
|
|
} else {
|
|
|
|
|
m_textBrowser->append(error);
|
|
|
|
|
//reject();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SelectRemoteFileDialog::handleRemoteError(const QString &errorMessage)
|
|
|
|
|
{
|
|
|
|
|
m_textBrowser->append(errorMessage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SelectRemoteFileDialog::selectFile()
|
|
|
|
|
{
|
2012-10-10 00:18:12 +02:00
|
|
|
QModelIndex idx = m_model.mapToSource(m_fileSystemView->currentIndex());
|
|
|
|
|
if (!idx.isValid())
|
2012-07-24 17:02:42 +02:00
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
|
|
|
|
m_fileSystemView->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
connect(&m_fileSystemModel, SIGNAL(sftpOperationFinished(QSsh::SftpJobId,QString)),
|
|
|
|
|
SLOT(handleSftpOperationFinished(QSsh::SftpJobId,QString)));
|
|
|
|
|
|
|
|
|
|
{
|
2012-08-22 11:58:33 +02:00
|
|
|
QTemporaryFile localFile(QDir::tempPath() + QLatin1String("/remotecore-XXXXXX"));
|
2012-07-24 17:02:42 +02:00
|
|
|
localFile.open();
|
|
|
|
|
m_localFile = localFile.fileName();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
idx = idx.sibling(idx.row(), 1);
|
|
|
|
|
m_remoteFile = m_fileSystemModel.data(idx, SftpFileSystemModel::PathRole).toString();
|
|
|
|
|
m_sftpJobId = m_fileSystemModel.downloadFile(idx, m_localFile);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// AttachCoreDialog
|
|
|
|
|
//
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
class AttachCoreDialogPrivate
|
|
|
|
|
{
|
|
|
|
|
public:
|
2012-09-03 18:31:44 +02:00
|
|
|
KitChooser *kitChooser;
|
2012-07-24 17:02:42 +02:00
|
|
|
|
|
|
|
|
QSettings *settings;
|
|
|
|
|
|
|
|
|
|
PathChooser *localExecFileName;
|
|
|
|
|
PathChooser *localCoreFileName;
|
|
|
|
|
QLineEdit *remoteCoreFileName;
|
|
|
|
|
QPushButton *selectRemoteCoreButton;
|
|
|
|
|
|
|
|
|
|
PathChooser *overrideStartScriptFileName;
|
|
|
|
|
|
|
|
|
|
QDialogButtonBox *buttonBox;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
AttachCoreDialog::AttachCoreDialog(QWidget *parent)
|
|
|
|
|
: QDialog(parent), d(new AttachCoreDialogPrivate)
|
|
|
|
|
{
|
|
|
|
|
setWindowTitle(tr("Load Core File"));
|
|
|
|
|
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
|
|
|
|
|
|
|
|
|
d->settings = ICore::settings();
|
|
|
|
|
|
2012-09-05 10:55:05 +02:00
|
|
|
d->kitChooser = new DebuggerKitChooser(DebuggerKitChooser::RemoteDebugging, this);
|
|
|
|
|
d->kitChooser->populate();
|
2012-07-24 17:02:42 +02:00
|
|
|
|
|
|
|
|
d->selectRemoteCoreButton = new QPushButton(tr("Browse..."), this);
|
|
|
|
|
d->remoteCoreFileName = new QLineEdit(this);
|
|
|
|
|
d->remoteCoreFileName->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
d->localCoreFileName = new PathChooser(this);
|
|
|
|
|
d->localCoreFileName->setExpectedKind(PathChooser::File);
|
|
|
|
|
d->localCoreFileName->setPromptDialogTitle(tr("Select Core File"));
|
|
|
|
|
|
|
|
|
|
d->localExecFileName = new PathChooser(this);
|
|
|
|
|
d->localExecFileName->setExpectedKind(PathChooser::File);
|
|
|
|
|
d->localExecFileName->setPromptDialogTitle(tr("Select Executable"));
|
|
|
|
|
|
|
|
|
|
d->overrideStartScriptFileName = new PathChooser(this);
|
|
|
|
|
d->overrideStartScriptFileName->setExpectedKind(PathChooser::File);
|
|
|
|
|
d->overrideStartScriptFileName->setPromptDialogTitle(tr("Select Startup Script"));
|
|
|
|
|
|
|
|
|
|
d->buttonBox = new QDialogButtonBox(this);
|
|
|
|
|
d->buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
|
|
|
|
d->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
|
|
|
|
d->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
|
|
|
|
|
|
|
|
|
QHBoxLayout *coreLayout = new QHBoxLayout;
|
|
|
|
|
coreLayout->addWidget(d->localCoreFileName);
|
|
|
|
|
coreLayout->addWidget(d->remoteCoreFileName);
|
|
|
|
|
coreLayout->addWidget(d->selectRemoteCoreButton);
|
|
|
|
|
|
|
|
|
|
QFormLayout *formLayout = new QFormLayout;
|
|
|
|
|
formLayout->setContentsMargins(0, 0, 0, 0);
|
|
|
|
|
formLayout->setHorizontalSpacing(6);
|
|
|
|
|
formLayout->setVerticalSpacing(6);
|
2012-09-03 18:31:44 +02:00
|
|
|
formLayout->addRow(tr("Kit:"), d->kitChooser);
|
2012-07-24 17:02:42 +02:00
|
|
|
formLayout->addRow(tr("&Executable:"), d->localExecFileName);
|
|
|
|
|
formLayout->addRow(tr("Core file:"), coreLayout);
|
|
|
|
|
formLayout->addRow(tr("Override &start script:"), d->overrideStartScriptFileName);
|
|
|
|
|
|
|
|
|
|
QFrame *line = new QFrame(this);
|
|
|
|
|
line->setFrameShape(QFrame::HLine);
|
|
|
|
|
line->setFrameShadow(QFrame::Sunken);
|
|
|
|
|
|
|
|
|
|
formLayout->addRow(d->buttonBox);
|
|
|
|
|
|
|
|
|
|
QVBoxLayout *vboxLayout = new QVBoxLayout(this);
|
|
|
|
|
vboxLayout->addLayout(formLayout);
|
2012-08-14 10:16:53 +02:00
|
|
|
vboxLayout->addStretch();
|
2012-07-24 17:02:42 +02:00
|
|
|
vboxLayout->addWidget(line);
|
|
|
|
|
vboxLayout->addWidget(d->buttonBox);
|
|
|
|
|
|
|
|
|
|
connect(d->selectRemoteCoreButton, SIGNAL(clicked()), SLOT(selectRemoteCoreFile()));
|
|
|
|
|
connect(d->remoteCoreFileName, SIGNAL(textChanged(QString)), SLOT(changed()));
|
2012-10-10 00:08:56 +02:00
|
|
|
connect(d->localCoreFileName, SIGNAL(changed(QString)), SLOT(changed()));
|
2012-09-03 18:31:44 +02:00
|
|
|
connect(d->kitChooser, SIGNAL(activated(int)), SLOT(changed()));
|
2012-07-24 17:02:42 +02:00
|
|
|
connect(d->buttonBox, SIGNAL(rejected()), SLOT(reject()));
|
|
|
|
|
connect(d->buttonBox, SIGNAL(accepted()), SLOT(accept()));
|
2012-10-10 00:08:56 +02:00
|
|
|
changed();
|
2012-07-24 17:02:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
AttachCoreDialog::~AttachCoreDialog()
|
|
|
|
|
{
|
|
|
|
|
delete d;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool AttachCoreDialog::isLocal() const
|
|
|
|
|
{
|
2012-09-03 18:31:44 +02:00
|
|
|
Kit *k = d->kitChooser->currentKit();
|
|
|
|
|
QTC_ASSERT(k, return false);
|
|
|
|
|
IDevice::ConstPtr device = DeviceKitInformation::device(k);
|
2012-07-24 17:02:42 +02:00
|
|
|
QTC_ASSERT(device, return false);
|
|
|
|
|
SshConnectionParameters sshParams = device->sshParameters();
|
|
|
|
|
d->settings->setValue(QLatin1String("LastProfile"),
|
2012-09-03 18:31:44 +02:00
|
|
|
d->kitChooser->currentKitId().toString());
|
2012-07-24 17:02:42 +02:00
|
|
|
return sshParams.host.isEmpty();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AttachCoreDialog::changed()
|
|
|
|
|
{
|
2012-10-10 08:36:59 +02:00
|
|
|
bool isValid = d->kitChooser->currentIndex() >= 0 && d->localExecFileName->isValid();
|
2012-07-24 17:02:42 +02:00
|
|
|
|
|
|
|
|
if (isLocal()) {
|
|
|
|
|
d->localCoreFileName->setVisible(true);
|
|
|
|
|
d->remoteCoreFileName->setVisible(false);
|
|
|
|
|
d->selectRemoteCoreButton->setVisible(false);
|
2012-10-10 08:36:59 +02:00
|
|
|
if (isValid)
|
|
|
|
|
isValid = d->localCoreFileName->isValid();
|
2012-07-24 17:02:42 +02:00
|
|
|
} else {
|
|
|
|
|
d->remoteCoreFileName->setVisible(true);
|
|
|
|
|
d->selectRemoteCoreButton->setVisible(true);
|
|
|
|
|
d->localCoreFileName->setVisible(false);
|
2012-10-10 08:36:59 +02:00
|
|
|
if (isValid)
|
|
|
|
|
isValid = !remoteCoreFile().isEmpty();
|
2012-07-24 17:02:42 +02:00
|
|
|
}
|
2012-10-10 00:08:56 +02:00
|
|
|
d->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(isValid);
|
2012-07-24 17:02:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AttachCoreDialog::selectRemoteCoreFile()
|
|
|
|
|
{
|
|
|
|
|
changed();
|
|
|
|
|
QTC_ASSERT(!isLocal(), return);
|
|
|
|
|
SelectRemoteFileDialog dlg(this);
|
|
|
|
|
dlg.setWindowTitle(tr("Select Remote Core File"));
|
2012-09-03 18:31:44 +02:00
|
|
|
dlg.attachToDevice(d->kitChooser->currentKit());
|
2012-07-24 17:02:42 +02:00
|
|
|
if (dlg.exec() == QDialog::Rejected)
|
|
|
|
|
return;
|
|
|
|
|
d->localCoreFileName->setPath(dlg.localFile());
|
|
|
|
|
d->remoteCoreFileName->setText(dlg.remoteFile());
|
|
|
|
|
changed();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString AttachCoreDialog::localCoreFile() const
|
|
|
|
|
{
|
|
|
|
|
return d->localCoreFileName->path();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString AttachCoreDialog::localExecutableFile() const
|
|
|
|
|
{
|
|
|
|
|
return d->localExecFileName->path();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AttachCoreDialog::setLocalExecutableFile(const QString &fileName)
|
|
|
|
|
{
|
|
|
|
|
d->localExecFileName->setPath(fileName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AttachCoreDialog::setLocalCoreFile(const QString &fileName)
|
|
|
|
|
{
|
|
|
|
|
d->localCoreFileName->setPath(fileName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AttachCoreDialog::setRemoteCoreFile(const QString &fileName)
|
|
|
|
|
{
|
|
|
|
|
d->remoteCoreFileName->setText(fileName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString AttachCoreDialog::remoteCoreFile() const
|
|
|
|
|
{
|
|
|
|
|
return d->remoteCoreFileName->text();
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
void AttachCoreDialog::setKitId(const Core::Id &id)
|
2012-07-24 17:02:42 +02:00
|
|
|
{
|
2012-09-03 18:31:44 +02:00
|
|
|
d->kitChooser->setCurrentKitId(id);
|
2012-07-24 17:02:42 +02:00
|
|
|
changed();
|
|
|
|
|
}
|
|
|
|
|
|
2012-09-03 18:31:44 +02:00
|
|
|
Kit *AttachCoreDialog::kit() const
|
2012-07-24 17:02:42 +02:00
|
|
|
{
|
2012-09-03 18:31:44 +02:00
|
|
|
return d->kitChooser->currentKit();
|
2012-07-24 17:02:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString AttachCoreDialog::overrideStartScript() const
|
|
|
|
|
{
|
|
|
|
|
return d->overrideStartScriptFileName->path();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void AttachCoreDialog::setOverrideStartScript(const QString &scriptName)
|
|
|
|
|
{
|
|
|
|
|
d->overrideStartScriptFileName->setPath(scriptName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
#include "loadcoredialog.moc"
|