-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgcodesimplerwidget.h
More file actions
50 lines (39 loc) · 1 KB
/
Copy pathgcodesimplerwidget.h
File metadata and controls
50 lines (39 loc) · 1 KB
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
#ifndef GCODESIMPLERWIDGET_H
#define GCODESIMPLERWIDGET_H
#include <QWidget>
#include <QLabel>
#include <QDragEnterEvent>
#include <QDragMoveEvent>
#include <QDragLeaveEvent>
#include <QDropEvent>
#include <QPushButton>
#include <QThread>
#include "gcodesimpler.h"
class GCodeSimplerWidget : public QWidget
{
Q_OBJECT
public:
GCodeSimplerWidget(QWidget *parent = 0);
~GCodeSimplerWidget();
signals:
void filesAccepted(const QStringList & filelist);
public slots:
void ready();
void busy(const QString & filepath);
void finished(bool status, const QString & message);
void error(QString message);
protected:
void dragEnterEvent(QDragEnterEvent *e);
void dragMoveEvent(QDragMoveEvent *e);
void dragLeaveEvent(QDragLeaveEvent *e);
void dropEvent(QDropEvent *e);
private:
QLabel statusLabel;
QLabel infoLabel;
QPushButton aboutButton;
QThread worker;
GCodeSimpler gCodeSimpler;
private slots:
void showAbout();
};
#endif // GCODESIMPLERWIDGET_H