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.
28 lines
435 B
C++
28 lines
435 B
C++
#pragma once
|
|
|
|
#include <QPointF>
|
|
#include <QUndoCommand>
|
|
#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;
|
|
};
|
|
|
|
|
|
|
|
|