Remote Debugging Dialog: Make it possible to choose the debugger.

Reviewed-by: hjk
This commit is contained in:
ck
2009-12-11 11:49:32 +01:00
parent 1bf3418314
commit b5abd7b9a6
4 changed files with 58 additions and 31 deletions

View File

@@ -224,7 +224,6 @@ static QList<ProcData> processList()
return unixProcessList();
#endif
}
///////////////////////////////////////////////////////////////////////
//
// AttachExternalDialog
@@ -385,8 +384,11 @@ StartRemoteDialog::StartRemoteDialog(QWidget *parent)
{
m_ui->setupUi(this);
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
m_ui->debuggerPathChooser->setExpectedKind(Utils::PathChooser::File);
m_ui->debuggerPathChooser->setPromptDialogTitle(tr("Select Debugger"));
m_ui->executablePathChooser->setExpectedKind(Utils::PathChooser::File);
m_ui->executablePathChooser->setPromptDialogTitle(tr("Select Executable"));
m_ui->sysrootPathChooser->setPromptDialogTitle(tr("Select Sysroot"));
m_ui->serverStartScript->setExpectedKind(Utils::PathChooser::File);
m_ui->serverStartScript->setPromptDialogTitle(tr("Select Start Script"));
@@ -424,6 +426,16 @@ QString StartRemoteDialog::localExecutable() const
return m_ui->executablePathChooser->path();
}
void StartRemoteDialog::setDebugger(const QString &debugger)
{
m_ui->debuggerPathChooser->setPath(debugger);
}
QString StartRemoteDialog::debugger() const
{
return m_ui->debuggerPathChooser->path();
}
void StartRemoteDialog::setRemoteArchitectures(const QStringList &list)
{
m_ui->architectureComboBox->clear();