MCPcopy Create free account
hub / github.com/baldurk/renderdoc / OnCaptureClosed

Method OnCaptureClosed

qrenderdoc/Windows/MainWindow.cpp:2293–2330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2291}
2292
2293void MainWindow::OnCaptureClosed()
2294{
2295 ui->action_Save_Capture_Inplace->setEnabled(false);
2296 ui->action_Save_Capture_As->setEnabled(false);
2297 ui->action_Close_Capture->setEnabled(false);
2298 ui->menu_Export_As->setEnabled(false);
2299
2300 ui->action_Start_Replay_Loop->setEnabled(false);
2301 ui->action_Open_RGP_Profile->setEnabled(false);
2302 ui->action_Create_RGP_Profile->setEnabled(false);
2303
2304 contextChooser->setEnabled(true);
2305
2306 statusText->setText(QString());
2307 statusIcon->setPixmap(QPixmap());
2308 statusProgress->setVisible(false);
2309
2310 ui->action_Resolve_Symbols->setEnabled(false);
2311 ui->action_Resolve_Symbols->setText(tr("Resolve Symbols"));
2312
2313 ui->action_Recompress_Capture->setEnabled(false);
2314 ui->action_EmbedExternalFiles->setEnabled(false);
2315 ui->action_RemoveExternalFiles->setEnabled(false);
2316
2317 SetTitle();
2318
2319 // if the remote sever disconnected during capture replay, resort back to a 'disconnected' state
2320 if(m_Ctx.Replay().CurrentRemote().IsValid() && !m_Ctx.Replay().CurrentRemote().IsServerRunning())
2321 {
2322 statusText->setText(
2323 tr("Remote server disconnected. To attempt to reconnect please select it again."));
2324 contextChooser->setText(tr("Replay Context: %1").arg(tr("Local")));
2325 m_Ctx.Replay().DisconnectFromRemoteServer();
2326
2327 if(m_Ctx.HasCaptureDialog())
2328 m_Ctx.GetCaptureDialog()->UpdateRemoteHost();
2329 }
2330}
2331
2332void MainWindow::OnEventChanged(uint32_t eventId)
2333{

Callers 1

CloseCaptureMethod · 0.45

Calls 12

CurrentRemoteMethod · 0.80
UpdateRemoteHostMethod · 0.80
QStringFunction · 0.50
QPixmapClass · 0.50
trFunction · 0.50
setTextMethod · 0.45
IsValidMethod · 0.45
IsServerRunningMethod · 0.45
argMethod · 0.45
HasCaptureDialogMethod · 0.45
GetCaptureDialogMethod · 0.45

Tested by

no test coverage detected