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

Method writeToFile

Qt/Python/pqPythonFileIO.cxx:75–86  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

73
74//-----------------------------------------------------------------------------
75bool pqPythonFileIO::PythonFile::writeToFile() const
76{
77 if (this->Name.isEmpty())
78 {
79 QMessageBox::warning(pqCoreUtilities::mainWidget(),
80 QCoreApplication::translate("pqPythonFileIO", "Error"),
81 QCoreApplication::translate("pqPythonFileIO", "No Filename Given!"));
82 return false;
83 }
84
85 return ::Write(this->Name, this->Location, this->Text->toPlainText());
86}
87
88//-----------------------------------------------------------------------------
89bool pqPythonFileIO::PythonFile::readFromFile(QString& str) const

Callers 1

saveBufferMethod · 0.80

Calls 4

mainWidgetFunction · 0.85
translateFunction · 0.85
WriteFunction · 0.85
isEmptyMethod · 0.45

Tested by

no test coverage detected