-----------------------------------------------------------------------------
| 133 | |
| 134 | //----------------------------------------------------------------------------- |
| 135 | void pqPythonFileIO::PythonFile::start() |
| 136 | { |
| 137 | QObject::connect(this->Text, &QTextEdit::textChanged, |
| 138 | [this]() |
| 139 | { |
| 140 | if (this->Text) |
| 141 | { |
| 142 | const QString swapFilename = ::GetSwapFilename(this->Name); |
| 143 | if (!swapFilename.isEmpty()) |
| 144 | { |
| 145 | ::Write(swapFilename, vtkPVSession::CLIENT, this->Text->toPlainText()); |
| 146 | } |
| 147 | } |
| 148 | }); |
| 149 | } |
| 150 | |
| 151 | //----------------------------------------------------------------------------- |
| 152 | void pqPythonFileIO::PythonFile::removeSwap() const |