| 93 | } |
| 94 | |
| 95 | LaunchOptions LaunchPage::launchOptions() const |
| 96 | { |
| 97 | LaunchOptions opt; |
| 98 | |
| 99 | QStringList l; |
| 100 | l.push_back(ui->progEdit->text()); |
| 101 | l.append(notEmptyString(m_argsModel->stringList())); |
| 102 | opt.setLaunchArguments(l); |
| 103 | opt.setProbeABI(ui->probeBox->itemData(ui->probeBox->currentIndex()).value<ProbeABI>()); |
| 104 | |
| 105 | opt.setWorkingDirectory(ui->workDirEdit->text()); |
| 106 | |
| 107 | switch (ui->accessMode->currentIndex()) { |
| 108 | case 0: // local, out-of-process |
| 109 | opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), true); |
| 110 | opt.setProbeSetting(QStringLiteral("ServerAddress"), GAMMARAY_DEFAULT_LOCAL_TCP_URL); |
| 111 | opt.setUiMode(LaunchOptions::OutOfProcessUi); |
| 112 | break; |
| 113 | case 1: // remote, out-of-process |
| 114 | opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), true); |
| 115 | opt.setProbeSetting(QStringLiteral("ServerAddress"), GAMMARAY_DEFAULT_ANY_TCP_URL); |
| 116 | opt.setUiMode(LaunchOptions::OutOfProcessUi); |
| 117 | break; |
| 118 | case 2: // in-process |
| 119 | opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), false); |
| 120 | opt.setUiMode(LaunchOptions::InProcessUi); |
| 121 | break; |
| 122 | } |
| 123 | |
| 124 | return opt; |
| 125 | } |
| 126 | |
| 127 | void LaunchPage::showFileDialog() |
| 128 | { |
no test coverage detected