-
Notifications
You must be signed in to change notification settings - Fork 1
/
grblconfigurationdialog.h
44 lines (31 loc) · 1002 Bytes
/
grblconfigurationdialog.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
#ifndef GRBLCONFIGURATIONDIALOG_H
#define GRBLCONFIGURATIONDIALOG_H
#include <QDialog>
#include <QTableWidgetItem>
#include "grblinstruction.h"
#include "grblconfiguration.h"
namespace Ui {
class GrblConfigurationDialog;
}
class GrblConfigurationDialog : public QDialog
{
Q_OBJECT
public:
explicit GrblConfigurationDialog(QWidget *parent = 0);
~GrblConfigurationDialog();
signals:
void sendToGrbl(const GrblInstruction &instruction);
public slots:
int exec();
void onParameterMapUpdated(QMap<int,GrblConfiguration> *parametersMap);
void onInstructionOk(const GrblInstruction &instruction);
void onInstructionError(const GrblInstruction &instruction, const QString &error);
private slots:
void onItemChanged(QTableWidgetItem* item);
private:
void sendGetParamsInstructions(void);
Ui::GrblConfigurationDialog *ui;
QList<GrblConfiguration> m_parametersList;
GrblInstruction m_lastSetParamInstruction;
};
#endif // GRBLCONFIGURATIONDIALOG_H