-
Notifications
You must be signed in to change notification settings - Fork 0
/
milehighwidget.h
44 lines (37 loc) · 887 Bytes
/
milehighwidget.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 MILEHIGHWIDGET_H
#define MILEHIGHWIDGET_H
#include <QWidget>
#include <QTextEdit>
#include <QTableWidget>
class MileHigh;
class QGraphicsView;
class QTreeWidgetItem;
class MileHighWidget : public QWidget
{
Q_OBJECT
public:
explicit MileHighWidget(QWidget *parent = 0);
void setTableWidget(QTableWidget* widget){
_tableWidget = widget;
}
QTableWidget* tableWidget(){
return _tableWidget;
}
public slots:
void sceneUpdated();
protected:
void resizeEvent(QResizeEvent *event);
void update();
private slots:
void boundaryUpdate();
void buttonPushed();
private:
QTextEdit* _textWidget;
QGraphicsView* _view;
MileHigh* _app;
QTableWidget* _tableWidget;
QTreeWidgetItem* _planesItem;
QTreeWidgetItem* _boundariesItem;
QMap<int, QTreeWidgetItem*> _planeWidgets;
};
#endif // MILEHIGHWIDGET_H