#pragma once #include #include #include "iPlotBase_global.h" class ZxRenderItem; /// 命令: 更改图件尺寸(位置) class I_PLOTBASE_EXPORT ZxResizeCommand : public QUndoCommand { public: ZxResizeCommand(ZxRenderItem* pItem, \ const QRectF& rect, \ QUndoCommand *parent = 0); virtual void redo(); virtual void undo(); private: ZxRenderItem* m_pItem; QRectF m_rect; };