Skip to content

Commit c45a53e

Browse files
committed
Added command line option nog81
1 parent ef90857 commit c45a53e

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

mainwindow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,15 @@ MainWindow::MainWindow(QWidget *parent) :
7979
args[ MILLARGS ].insert("mill-feed", ui->millfeedSpinBox);
8080
args[ MILLARGS ].insert("mill-speed", ui->millspeedSpinBox);
8181
args[ MILLARGS ].insert("offset", ui->offsetDoubleSpinBox);
82-
args[ MILLARGS ].insert("extra-passes", ui->extraassesSpinBox);
82+
args[ MILLARGS ].insert("extra-passes", ui->extrapassesSpinBox);
8383

8484
args[ DRILLARGS ].insert("zdrill", ui->zdrillDoubleSpinBox);
8585
args[ DRILLARGS ].insert("drill-feed", ui->drillfeedSpinBox);
8686
args[ DRILLARGS ].insert("drill-speed", ui->drillspeedSpinBox);
8787
args[ DRILLARGS ].insert("milldrill", ui->milldrillCheckBox);
8888
args[ DRILLARGS ].insert("drill-front", ui->drillfrontCheckBox);
8989
args[ DRILLARGS ].insert("onedrill", ui->onedrillCheckBox);
90+
args[ DRILLARGS ].insert("nog81", ui->nog81CheckBox);
9091

9192
args[ OUTLINEARGS ].insert("cutter-diameter", ui->cutterdiameterDoubleSpinBox);
9293
args[ OUTLINEARGS ].insert("zcut", ui->zcutDoubleSpinBox);

mainwindow.ui

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
</widget>
501501
</item>
502502
<item row="4" column="1">
503-
<widget class="QSpinBox" name="extraassesSpinBox">
503+
<widget class="QSpinBox" name="extrapassesSpinBox">
504504
<property name="toolTip">
505505
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Number of additional isolation passes For each extra pass, engraving is repeated with the offset width increased by half its original value, creating wider isolation areas&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
506506
</property>
@@ -538,7 +538,7 @@
538538
<x>10</x>
539539
<y>10</y>
540540
<width>311</width>
541-
<height>185</height>
541+
<height>211</height>
542542
</rect>
543543
</property>
544544
<layout class="QGridLayout" name="drillGridLayout">
@@ -683,6 +683,16 @@
683683
</property>
684684
</widget>
685685
</item>
686+
<item row="6" column="0">
687+
<widget class="QCheckBox" name="nog81CheckBox">
688+
<property name="toolTip">
689+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;replace G81 with G0+G1. This option makes the gcode compatible with low-end cnc controllers (like grbl), but also makes it bigger and less clean&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
690+
</property>
691+
<property name="text">
692+
<string>nog81</string>
693+
</property>
694+
</widget>
695+
</item>
686696
</layout>
687697
</widget>
688698
</widget>
@@ -1521,7 +1531,7 @@
15211531
<x>0</x>
15221532
<y>0</y>
15231533
<width>795</width>
1524-
<height>24</height>
1534+
<height>21</height>
15251535
</rect>
15261536
</property>
15271537
<widget class="QMenu" name="menuFile">

0 commit comments

Comments
 (0)