#pragma once #include #include #include "IxPtyPano.h" #include "iProperty_global.h" class QVariant; // 命令: 更改属性命令 // 内部使用类 class I_PROPERTY_EXPORT ZxPtyCommand : public QUndoCommand { public: ZxPtyCommand(int nSessionId, \ const QList& callbacks, \ const QString& skey, \ const QVariant& varNew, \ QUndoCommand* parent = 0); virtual void redo(); virtual void undo(); virtual int id() const; virtual bool mergeWith(const QUndoCommand* command); private: int m_nSessionId; QList m_callbacks; QString m_sKey; QVariant m_varNew; };