You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
692 B
C++
40 lines
692 B
C++
#pragma once
|
|
|
|
#include <QPointF>
|
|
#include <QUndoCommand>
|
|
#include "iPlotCurveT_global.h"
|
|
|
|
class ZxObjBase;
|
|
class ZxRenderItem;
|
|
|
|
// 命令: 删除一个图元
|
|
class I_PLOTCURVE_T_EXPORT ZxCommandDel : public QUndoCommand
|
|
{
|
|
public:
|
|
|
|
ZxCommandDel(QVector<ZxObjBase*>* pVecAllObjs,
|
|
ZxObjBase* pObj,
|
|
bool bNeedLayout = true,
|
|
QUndoCommand* parent = 0);
|
|
~ZxCommandDel();
|
|
|
|
virtual void redo();
|
|
virtual void undo();
|
|
|
|
private:
|
|
|
|
QVector<ZxObjBase*>* m_pVecAllObjs;
|
|
ZxObjBase* m_pObj;
|
|
|
|
int m_nIndex;
|
|
bool m_bNeedLayout;
|
|
bool m_bShowSubObjs;
|
|
|
|
ZxRenderItem* m_pParent;
|
|
QVector<bool> m_vecSubObjVisibles;
|
|
};
|
|
|
|
|
|
|
|
|