DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DAAbstractGraphicsViewAction.h
1#ifndef DAABSTRACTGRAPHICSVIEWACTION_H
2#define DAABSTRACTGRAPHICSVIEWACTION_H
3#include "DAGraphicsViewGlobal.h"
4class QPaintEvent;
5class QKeyEvent;
6class QMouseEvent;
7class QPainter;
8namespace DA
9{
10class DAGraphicsView;
11
16class DAGRAPHICSVIEW_API DAAbstractGraphicsViewAction
17{
18 friend class DAGraphicsView;
19
20public:
27 DAGraphicsView* view() const;
28
34 void destroy();
35
36protected:
40 virtual void beginActive();
41
45 virtual void endAction();
46
52 virtual bool keyPressEvent(QKeyEvent* event);
53 virtual bool keyReleaseEvent(QKeyEvent* event);
54 virtual bool mouseDoubleClickEvent(QMouseEvent* event);
55 virtual bool mouseMoveEvent(QMouseEvent* event);
56 virtual bool mousePressEvent(QMouseEvent* event);
57 virtual bool mouseReleaseEvent(QMouseEvent* event);
58
59protected:
60 DAGraphicsView* mView { nullptr };
61};
62} // end ns DA
63#endif
针对DAGraphicsView的action.
Definition DAAbstractGraphicsViewAction.h:17
支持缩放和拖动的GraphicsView
Definition DAGraphicsView.h:22
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44