MCPcopy Create free account
hub / github.com/KDAB/GammaRay / launchOptions

Method launchOptions

launcher/ui/launchpage.cpp:95–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95LaunchOptions 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
127void LaunchPage::showFileDialog()
128{

Callers 2

launcherWindowAcceptedFunction · 0.45
mainFunction · 0.45

Calls 8

textMethod · 0.80
appendMethod · 0.80
setLaunchArgumentsMethod · 0.80
setProbeABIMethod · 0.80
setProbeSettingMethod · 0.80
setUiModeMethod · 0.80
itemDataMethod · 0.45
setWorkingDirectoryMethod · 0.45

Tested by

no test coverage detected