| 2314 | } |
| 2315 | |
| 2316 | ICaptureDialog *CaptureContext::GetCaptureDialog() |
| 2317 | { |
| 2318 | if(m_CaptureDialog) |
| 2319 | return m_CaptureDialog; |
| 2320 | |
| 2321 | m_CaptureDialog = new CaptureDialog( |
| 2322 | *this, |
| 2323 | [this](const QString &exe, const QString &workingDir, const QString &cmdLine, |
| 2324 | const rdcarray<EnvironmentModification> &env, CaptureOptions opts, |
| 2325 | std::function<void(LiveCapture *)> callback) { |
| 2326 | return m_MainWindow->OnCaptureTrigger(exe, workingDir, cmdLine, env, opts, callback); |
| 2327 | }, |
| 2328 | [this](uint32_t PID, const rdcarray<EnvironmentModification> &env, const QString &name, |
| 2329 | CaptureOptions opts, std::function<void(LiveCapture *)> callback) { |
| 2330 | return m_MainWindow->OnInjectTrigger(PID, env, name, opts, callback); |
| 2331 | }, |
| 2332 | m_MainWindow, m_MainWindow); |
| 2333 | m_CaptureDialog->setObjectName(lit("capDialog")); |
| 2334 | m_CaptureDialog->setWindowIcon(*m_Icon); |
| 2335 | |
| 2336 | return m_CaptureDialog; |
| 2337 | } |
| 2338 | |
| 2339 | IDebugMessageView *CaptureContext::GetDebugMessageView() |
| 2340 | { |
nothing calls this directly
no test coverage detected