#pragma once #include #include #include "iPlotBase_global.h" class ZxRenderItem; /// 命令: 移动一个图元 class I_PLOTBASE_EXPORT ZxMoveCommand : public QUndoCommand { public: ZxMoveCommand(ZxRenderItem* pItem, \ const QPointF& pt, QUndoCommand *parent = 0); virtual void redo(); virtual void undo(); private: ZxRenderItem* m_pItem; QPointF m_ptPos; };