|
DAWorkbench 0.0.1
DAWorkbench API
|
绘图编辑器 更多...
#include <DAAbstractPlotEditor.h>
Public 类型 | |
| enum | RTTI { RTTIRectRegionSelectEditor , RTTIEllipseRegionSelectEditor , RTTIPolygonRegionSelectEditor , RTTIUserDefine } |
Public 成员函数 | |
| DAAbstractPlotEditor (QwtPlot *parent) | |
| const QwtPlot * | plot () const |
| QwtPlot * | plot () |
| virtual void | setEnabled (bool on) |
| virtual bool | isEnabled () const |
| virtual int | rtti () const =0 |
| void | setUseSpaceKey (bool b) |
| 设置是否使用空格,如果这个editor使用了空格,需要设置为true,否则会被屏蔽空格的输入,默认为false | |
| bool | isUseSpaceKey () const |
| 设置是否可以使用空格 | |
Protected 成员函数 | |
| virtual bool | eventFilter (QObject *object, QEvent *event) |
| virtual bool | mousePressEvent (const QMouseEvent *e) |
| virtual bool | mouseMovedEvent (const QMouseEvent *e) |
| virtual bool | mouseReleasedEvent (const QMouseEvent *e) |
| virtual bool | keyPressEvent (const QKeyEvent *e) |
| virtual bool | keyReleaseEvent (const QKeyEvent *e) |
绘图编辑器
此编辑器会屏蔽长按空格的keyPressEvent和keyReleaseEvent
| bool DA::DAAbstractPlotEditor::isUseSpaceKey | ( | ) | const |
设置是否可以使用空格
|
protectedvirtual |
|
pure virtual |
| void DA::DAAbstractPlotEditor::setUseSpaceKey | ( | bool | b | ) |
设置是否使用空格,如果这个editor使用了空格,需要设置为true,否则会被屏蔽空格的输入,默认为false
| b |