-
Notifications
You must be signed in to change notification settings - Fork 1
/
MapForm.h
53 lines (43 loc) · 1.09 KB
/
MapForm.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
#ifndef MAPFORM_H
#define MAPFORM_H
#include <QWidget>
#include <QDebug>
#include <QPainter>
#include <QMap>
#include <QSqlQuery>
#include <QMenu>
#include <QFile>
#include <QMouseEvent>
#include <QStyleOption>
#include "graphic/GraphicMap.h"
#include "MsgBoxEx.h"
namespace Ui {
class MapForm;
}
class MapForm : public QWidget
{
Q_OBJECT
public:
explicit MapForm(QWidget *parent = nullptr);
~MapForm();
private:
Ui::MapForm *ui;
GraphicMap *m_pMap;
protected:
void paintEvent(QPaintEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
void wheelEvent(QWheelEvent *event) override;
private slots:
void onUpdateMapMenuEvent();
void onBtnOkClicked();
void onBtnCancelClicked();
void onCursorChange();
public slots:
// 显示AGV
void onShowAgv(quint32 unNo, QString strType, quint32 unCurMark, bool bRun, bool bUnVol, bool bObs, bool bError);
// 隐藏AGV
void onHideAgv(quint32 unNo);
};
#endif // MAPFORM_H