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

Method exportCapture

qrenderdoc/Windows/MainWindow.cpp:1067–1084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1065}
1066
1067void MainWindow::exportCapture(const CaptureFileFormat &fmt)
1068{
1069 if(!m_Ctx.IsCaptureLocal())
1070 {
1071 RDDialog::information(
1072 this, tr("Save changes to capture?"),
1073 tr("The capture is on a remote host, it must be saved locally before it can be exported."));
1074 PromptSaveCaptureAs();
1075 return;
1076 }
1077
1078 QString saveFilename =
1079 GetSavePath(tr("Export Capture As"),
1080 tr("%1 Files (*.%2)").arg(QString(fmt.name)).arg(QString(fmt.extension)));
1081
1082 if(!saveFilename.isEmpty())
1083 m_Ctx.ExportCapture(fmt, saveFilename);
1084}
1085
1086bool MainWindow::PromptCloseCapture()
1087{

Callers

nothing calls this directly

Calls 6

trFunction · 0.50
QStringFunction · 0.50
IsCaptureLocalMethod · 0.45
argMethod · 0.45
isEmptyMethod · 0.45
ExportCaptureMethod · 0.45

Tested by

no test coverage detected