-----------------------------------------------------------------------------
| 73 | |
| 74 | //----------------------------------------------------------------------------- |
| 75 | bool 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 | //----------------------------------------------------------------------------- |
| 89 | bool pqPythonFileIO::PythonFile::readFromFile(QString& str) const |
no test coverage detected