@@ -77,7 +77,6 @@ MainWindow::MainWindow(QWidget *parent) :
77
77
args[ COMMONARGS ].insert (" zsafe" , ui->zsafeDoubleSpinBox );
78
78
args[ COMMONARGS ].insert (" zchange" , ui->zchangeDoubleSpinBox );
79
79
args[ COMMONARGS ].insert (" zchange-absolute" , ui->zchangeAbsoluteCheckBox );
80
- // args[ COMMONARGS ].insert("vectorial", ui->vectorialCheckBox);
81
80
args[ COMMONARGS ].insert (" nog64" , ui->nog64CheckBox );
82
81
args[ COMMONARGS ].insert (" tolerance" , ui->toleranceDoubleSpinBox );
83
82
args[ COMMONARGS ].insert (" optimise" , ui->optimiseDoubleSpinBox );
@@ -148,9 +147,6 @@ MainWindow::MainWindow(QWidget *parent) :
148
147
connect (ui->postamblePushButton , SIGNAL (clicked ()), this , SLOT (getPostambleFile ()));
149
148
connect (ui->outputDirPushButton , SIGNAL (clicked ()), this , SLOT (getOutputDirectory ()));
150
149
151
- // connect(ui->vectorialCheckBox, SIGNAL(toggled(bool)), this, SLOT(vectorialEnable(bool)));
152
- // connect(ui->vectorialCheckBox, SIGNAL(toggled(bool)), this, SLOT(bridgesAvailable()));
153
- // connect(ui->vectorialCheckBox, SIGNAL(toggled(bool)), ui->voronoiCheckBox, SLOT(setEnabled(bool)));
154
150
connect (ui->voronoiCheckBox , SIGNAL (toggled (bool )), this , SLOT (voronoiEnable (bool )));
155
151
connect (ui->milldrillCheckBox , SIGNAL (toggled (bool )), ui->milldrilldiameterDoubleSpinBox , SLOT (setEnabled (bool )));
156
152
connect (ui->softwareComboBox , SIGNAL (currentTextChanged (QString)), this , SLOT (updateAlCustomEnableState (QString)));
@@ -236,19 +232,6 @@ void MainWindow::checkPcb2gcodeVersion()
236
232
}
237
233
}
238
234
239
- // void MainWindow::vectorialEnable(bool enable)
240
- // {
241
- // if (enable)
242
- // {
243
- // if (ui->voronoiCheckBox->isChecked())
244
- // ui->extrapassesSpinBox->setEnabled(false);
245
- // }
246
- // else
247
- // {
248
- // ui->extrapassesSpinBox->setEnabled(true);
249
- // }
250
- // }
251
-
252
235
void MainWindow::voronoiEnable (bool enable)
253
236
{
254
237
ui->extrapassesSpinBox ->setEnabled (!enable);
@@ -345,7 +328,6 @@ void MainWindow::generateImages()
345
328
ui->loadingLabel ->show ();
346
329
347
330
currentImagesFolder = imagesFolder;
348
- // vectorial = ui->vectorialCheckBox->isChecked();
349
331
fillOutline = ui->filloutlineCheckBox ->isChecked ();
350
332
pcb2gcodeImageProcess.start (PCB2GCODE_EXECUTABLE, arguments, QProcess::ReadOnly);
351
333
}
@@ -372,11 +354,6 @@ void MainWindow::imagesGenerated(int exitCode, QProcess::ExitStatus exitStatus)
372
354
{
373
355
QDir dir (currentImagesFolder);
374
356
375
- // if (vectorial)
376
- // dir.setNameFilters(QStringList() << "*.svg");
377
- // else
378
- // dir.setNameFilters(QStringList() << "*.png");
379
-
380
357
dir.setFilter (QDir::Files);
381
358
382
359
imagesFilename.clear ();
@@ -392,7 +369,6 @@ void MainWindow::imagesGenerated(int exitCode, QProcess::ExitStatus exitStatus)
392
369
addImageFile (dir, tr (" Input front" ), " original_front" );
393
370
addImageFile (dir, tr (" Input back" ), " original_back" );
394
371
addImageFile (dir, tr (" Input drill" ), " original_drill" );
395
- // addImageFile(dir, tr("Input outline"), (fillOutline && !vectorial) ? "outline_filled" : "original_outline");
396
372
addImageFile (dir, tr (" Input outline" ), (fillOutline) ? " outline_filled" : " original_outline" );
397
373
addImageFile (dir, tr (" Input outline" ), " original_outline" );
398
374
}
@@ -605,7 +581,6 @@ void MainWindow::startPcb2gcode()
605
581
outputTextEdit = pcb2gcodeOutputWindow->getOutputPlainTextEdit ();
606
582
607
583
currentImagesFolder = ui->outputDirLineEdit ->text ();
608
- // vectorial = ui->vectorialCheckBox->isChecked();
609
584
fillOutline = ui->filloutlineCheckBox ->isChecked ();
610
585
pcb2gcodeProcess.start (PCB2GCODE_EXECUTABLE, arguments, QProcess::ReadOnly);
611
586
}
0 commit comments