| 108 | } |
| 109 | |
| 110 | bool CodeEditor::saveAsFile() |
| 111 | { |
| 112 | QString fileName=MainWindow::getSaveFileName(this, tr("Save as..."), |
| 113 | QString(),tr("RapCAD Files (*.rcad);;All Files (*)"),"rcad"); |
| 114 | if(fileName.isEmpty()) |
| 115 | return false; |
| 116 | setFileName(fileName); |
| 117 | return saveFile(); |
| 118 | } |
| 119 | |
| 120 | bool CodeEditor::loadFile(const QString& f) |
| 121 | { |