| 58 | } |
| 59 | |
| 60 | void FormsUtil::fileHandler(GCode::File* file) |
| 61 | { |
| 62 | if (--fileCount == 0) |
| 63 | cancel(); |
| 64 | |
| 65 | if (file == nullptr) { |
| 66 | QMessageBox::information(this, tr("Warning"), tr("The tool doesn`t fit in the Working items!")); |
| 67 | return; |
| 68 | } |
| 69 | |
| 70 | file->setFileName(m_fileName + "_" + file->name()); |
| 71 | file->setSide(boardSide); |
| 72 | if (fileId > -1) { |
| 73 | exit(-123456); |
| 74 | // App::project()->reload(fileId, file); |
| 75 | // m_editMode = false; |
| 76 | // fileId = -1; |
| 77 | } else { |
| 78 | App::project()->addFile(file); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | void FormsUtil::timerEvent(QTimerEvent* event) |
| 83 | { |
nothing calls this directly
no test coverage detected