| 183 | void ThermalForm::on_leName_textChanged(const QString& arg1) { m_fileName = arg1; } |
| 184 | |
| 185 | void ThermalForm::createFile() |
| 186 | { |
| 187 | if (!tool.isValid()) { |
| 188 | tool.errorMessageBox(this); |
| 189 | return; |
| 190 | } |
| 191 | |
| 192 | Paths wPaths; |
| 193 | Pathss wBridgePaths; |
| 194 | |
| 195 | for (auto& item : m_sourcePreview) { |
| 196 | if (item->isValid()) { |
| 197 | wPaths.append(item->paths()); |
| 198 | wBridgePaths.push_back(item->bridge()); |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | GCode::GCodeParams gpc; |
| 203 | gpc.setConvent(true); |
| 204 | gpc.setSide(GCode::Outer); |
| 205 | gpc.tools.push_back(tool); |
| 206 | gpc.params[GCode::GCodeParams::Depth] = ui->dsbxDepth->value(); |
| 207 | gpc.params[GCode::GCodeParams::FileId] = static_cast<FileInterface*>(ui->cbxFile->currentData().value<void*>())->id(); |
| 208 | gpc.params[GCode::GCodeParams::IgnoreCopper] = ui->chbxIgnoreCopper->isChecked(); |
| 209 | m_tpc->setGcp(gpc); |
| 210 | m_tpc->addPaths(wPaths); |
| 211 | m_tpc->addSupportPaths(wBridgePaths); |
| 212 | fileCount = 1; |
| 213 | emit createToolpath(); |
| 214 | } |
| 215 | |
| 216 | void ThermalForm::updateName() |
| 217 | { |
nothing calls this directly
no test coverage detected