-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainMenu.h
56 lines (41 loc) · 1.06 KB
/
MainMenu.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
#ifndef MAINMENU_H
#define MAINMENU_H
#include <QMainWindow>
#include <QGraphicsScene>
#include <QGraphicsView>
#include <QGraphicsItem>
#include <QMouseEvent>
#include <QGraphicsSceneMouseEvent>
#include <QWidget>
#include <QSpinBox>
namespace Ui {
class IEEE80211g;
}
class QSpinBox;
class QGraphicsView;
class QGraphicsScene;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void onMouseEvent(const QString &eventName, const QPoint &pos);
void setMap(QPointF &pos);
private slots:
void on_commandLinkButton_clicked();
void on_antena_clicked();
void on_receiver_clicked();
protected:
void mouseMoveEvent(QMouseEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
private:
void configureSpinBox(QSpinBox *spinBox, int min, int max) const;
Ui::IEEE80211g *ui;
QGraphicsScene *scene;
QGraphicsEllipseItem *ellipse;
QGraphicsRectItem *rectangle;
QGraphicsTextItem *text;
};
#endif // MAINMENU_H