forked from apsystems/GrblHoming
-
Notifications
You must be signed in to change notification settings - Fork 190
/
grbldialog.h
63 lines (49 loc) · 1.15 KB
/
grbldialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/****************************************************************
* grbldialog.h
* GrblHoming - zapmaker fork on github
*
* 15 Nov 2012
* GPL License (see LICENSE file)
* Software is provided AS-IS
****************************************************************/
#ifndef GRBLDIALOG_H
#define GRBLDIALOG_H
#include <QDialog>
#include <QFont>
#include <QTableWidgetItem>
#include <QMessageBox>
#include <QBoxLayout>
#include "definitions.h"
#include "mainwindow.h"
#include "gcode.h"
namespace Ui {
class GrblDialog;
}
#define GDLG_CMD_ID_GET 1
#define GDLG_CMD_ID_SET 2
class GrblDialog : public QDialog
{
Q_OBJECT
public:
explicit GrblDialog(QWidget *parent, GCode *gcode);
~GrblDialog();
//variables
GCode *gcode;
//methods
void getSettings();
signals:
void sendGcodeAndGetResult(int id, QString cmd);
public slots:
//buttons
void Ok();
void Cancel();
//Column Widget
void changeValues(int row, int col);
void gcodeResult(int id, QString result);
private:
Ui::GrblDialog *ui;
QStringList originalValues;
QList<bool> changeFlags;
int tableRowCount;
};
#endif // GRBLDIALOG_H