-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrsection.h
More file actions
executable file
·38 lines (27 loc) · 767 Bytes
/
rsection.h
File metadata and controls
executable file
·38 lines (27 loc) · 767 Bytes
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
#ifndef RSECTION_H
#define RSECTION_H
#include "rmapobject.h"
#include "rsectionmodel.h"
class QPaintEvent;
class RTable;
class RSection : public RMapObject {
Q_OBJECT
public:
explicit RSection(QWidget *parent = 0);
virtual ~RSection();
virtual RSection *clone() const;
virtual RSectionModel *model() const;
void setMovePolicy(RMapObjectMovePolicy *policy);
const QPolygon &movePolygon() const;
protected:
virtual void paintEvent(QPaintEvent *event);
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);
void selectChild(const QRect &r);
private:
QPolygon gripTriangle;
QPoint mouseDownPoint;
QPoint mouseMovePoint;
};
#endif // RSECTION_H