Skip to content

Commit 4c7f122

Browse files
committed
Merge branch 'master' of https://github.com/Corna/pcb2gcodeGUI
2 parents bbc291a + 99bdb55 commit 4c7f122

File tree

3 files changed

+57
-28
lines changed

3 files changed

+57
-28
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
A simple GUI for pcb2gcode.
33
The minimum required Qt's version is 5.0.2.
44
After building it, download and install pcb2gcode
5-
from https://github.com/patkan/pcb2gcode
5+
from http://sourceforge.net/projects/pcb2gcode/ (use the
6+
git version)
67

78
## Build
89
### Build on Debian Jessie/Sid, Ubuntu Trusty/Utopic/Vivid
@@ -27,3 +28,10 @@ and do an apt-update
2728
sudo apt-get update
2829

2930
then follow the instructions for Debian Jessie
31+
32+
### Build on Windows
33+
The easiest way to build pcb2gcodeGUI on windows is by downloading
34+
the Qt SDK from here http://www.qt.io/download-open-source/ and
35+
building it within Qt Creator. After that, download a pcb2gcode
36+
Windows build and put it in a pcb2gcode/ subfolder of the pcb2gcodeGUI
37+
binary

mainwindow.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ MainWindow::MainWindow(QWidget *parent) :
6969
args[ COMMONARGS ].insert("optimise", ui->optimiseCheckBox);
7070
args[ COMMONARGS ].insert("zero-start", ui->zerostartCheckBox);
7171
args[ COMMONARGS ].insert("mirror-absolute", ui->mirrorabsoluteCheckBox);
72-
args[ COMMONARGS ].insert("svg", ui->svgCheckBox);
72+
args[ COMMONARGS ].insert("svg", ui->svgLineEdit);
7373
args[ COMMONARGS ].insert("dpi", ui->dpiSpinBox);
7474

7575
args[ MILLARGS ].insert("zwork", ui->zworkDoubleSpinBox);
@@ -127,6 +127,7 @@ MainWindow::MainWindow(QWidget *parent) :
127127

128128
connect(ui->g64CheckBox, SIGNAL(toggled(bool)), ui->g64DoubleSpinBox, SLOT(setEnabled(bool)));
129129
connect(ui->filloutlineCheckBox, SIGNAL(toggled(bool)), ui->outlinewidthDoubleSpinBox, SLOT(setEnabled(bool)));
130+
connect(ui->svgCheckBox, SIGNAL(toggled(bool)), ui->svgLineEdit, SLOT(setEnabled(bool)));
130131
connect(ui->startPushButton, SIGNAL(clicked()), this, SLOT(startPcb2gcode()));
131132
connect(ui->inputMetricRadioButton, SIGNAL(toggled(bool)), this, SLOT(changeMetricInputUnits(bool)));
132133

@@ -533,6 +534,7 @@ bool MainWindow::loadConfFile(const QString filename)
533534
}
534535

535536
ui->g64CheckBox->setChecked(ui->g64DoubleSpinBox->isEnabled()); //Sync checkBox checked state with doubleSpinBox enabled state
537+
ui->svgCheckBox->setChecked(ui->svgLineEdit->isEnabled()); //Sync checkBox checked state with lineEdit enabled state
536538

537539
changeMetricImperialValues = true;
538540
return true;

mainwindow.ui

Lines changed: 45 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<x>0</x>
88
<y>0</y>
99
<width>795</width>
10-
<height>467</height>
10+
<height>504</height>
1111
</rect>
1212
</property>
1313
<property name="sizePolicy">
@@ -29,7 +29,7 @@
2929
<x>440</x>
3030
<y>10</y>
3131
<width>341</width>
32-
<height>391</height>
32+
<height>431</height>
3333
</rect>
3434
</property>
3535
<property name="toolTip">
@@ -57,7 +57,7 @@
5757
<x>10</x>
5858
<y>10</y>
5959
<width>317</width>
60-
<height>341</height>
60+
<height>375</height>
6161
</rect>
6262
</property>
6363
<layout class="QGridLayout" name="commonGridLayout">
@@ -119,7 +119,7 @@
119119
</property>
120120
</widget>
121121
</item>
122-
<item row="10" column="1">
122+
<item row="11" column="1">
123123
<widget class="QSpinBox" name="dpiSpinBox">
124124
<property name="toolTip">
125125
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Resolution used internally&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
@@ -148,7 +148,7 @@
148148
</property>
149149
</widget>
150150
</item>
151-
<item row="10" column="0">
151+
<item row="11" column="0">
152152
<widget class="QLabel" name="dpiLabel">
153153
<property name="toolTip">
154154
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Resolution used internally&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
@@ -216,6 +216,16 @@
216216
</property>
217217
</widget>
218218
</item>
219+
<item row="0" column="0">
220+
<widget class="QLabel" name="inputValuesLabel">
221+
<property name="toolTip">
222+
<string/>
223+
</property>
224+
<property name="text">
225+
<string>Input values</string>
226+
</property>
227+
</widget>
228+
</item>
219229
<item row="2" column="0">
220230
<widget class="QLabel" name="zsafeLabel">
221231
<property name="toolTip">
@@ -226,6 +236,23 @@
226236
</property>
227237
</widget>
228238
</item>
239+
<item row="10" column="0">
240+
<widget class="QLabel" name="svgLabel">
241+
<property name="text">
242+
<string>svg output file</string>
243+
</property>
244+
</widget>
245+
</item>
246+
<item row="1" column="0">
247+
<widget class="QLabel" name="outputValuesLabel">
248+
<property name="toolTip">
249+
<string/>
250+
</property>
251+
<property name="text">
252+
<string>Output values</string>
253+
</property>
254+
</widget>
255+
</item>
229256
<item row="3" column="1">
230257
<widget class="QDoubleSpinBox" name="zchangeDoubleSpinBox">
231258
<property name="toolTip">
@@ -248,16 +275,6 @@
248275
</property>
249276
</widget>
250277
</item>
251-
<item row="0" column="0">
252-
<widget class="QLabel" name="inputValuesLabel">
253-
<property name="toolTip">
254-
<string/>
255-
</property>
256-
<property name="text">
257-
<string>Input values</string>
258-
</property>
259-
</widget>
260-
</item>
261278
<item row="0" column="1">
262279
<layout class="QHBoxLayout" name="inputSystemOfMeasurementHorizontalLayout">
263280
<item>
@@ -294,16 +311,6 @@
294311
</item>
295312
</layout>
296313
</item>
297-
<item row="1" column="0">
298-
<widget class="QLabel" name="outputValuesLabel">
299-
<property name="toolTip">
300-
<string/>
301-
</property>
302-
<property name="text">
303-
<string>Output values</string>
304-
</property>
305-
</widget>
306-
</item>
307314
<item row="1" column="1">
308315
<layout class="QHBoxLayout" name="outputSystemOfMeasurementHorizontalLayout">
309316
<item>
@@ -337,6 +344,13 @@
337344
</item>
338345
</layout>
339346
</item>
347+
<item row="10" column="1">
348+
<widget class="QLineEdit" name="svgLineEdit">
349+
<property name="enabled">
350+
<bool>false</bool>
351+
</property>
352+
</widget>
353+
</item>
340354
</layout>
341355
</widget>
342356
</widget>
@@ -1127,6 +1141,11 @@
11271141
<string>Mach3</string>
11281142
</property>
11291143
</item>
1144+
<item>
1145+
<property name="text">
1146+
<string>Mach4</string>
1147+
</property>
1148+
</item>
11301149
<item>
11311150
<property name="text">
11321151
<string>TurboCNC</string>
@@ -1477,7 +1496,7 @@
14771496
<property name="geometry">
14781497
<rect>
14791498
<x>340</x>
1480-
<y>410</y>
1499+
<y>450</y>
14811500
<width>131</width>
14821501
<height>23</height>
14831502
</rect>

0 commit comments

Comments
 (0)