MCPcopy Create free account
hub / github.com/Kitware/ParaView / saveBuffer

Method saveBuffer

Qt/Python/pqPythonFileIO.cxx:338–363  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

336
337//-----------------------------------------------------------------------------
338bool pqPythonFileIO::saveBuffer(const QString& filename, vtkTypeUInt32 location)
339{
340 if (filename.isEmpty())
341 {
342 return false;
343 }
344
345 const PythonFile file(filename, location, &this->TextEdit);
346 if (file.writeToFile())
347 {
348 if (file != this->File)
349 {
350 this->File.removeSwap();
351 this->File = file;
352 this->File.start();
353 this->bufferErased();
354 }
355
356 this->setModified(false);
357 this->fileSaved(file.Name);
358
359 return true;
360 }
361
362 return false;
363}

Callers 4

saveMethod · 0.95
saveAsMethod · 0.95
saveAsMacroMethod · 0.95
saveAsScriptMethod · 0.95

Calls 5

setModifiedMethod · 0.95
writeToFileMethod · 0.80
removeSwapMethod · 0.80
isEmptyMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected