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.
39 lines
765 B
C++
39 lines
765 B
C++
#pragma once
|
|
|
|
#include <QVector>
|
|
#include <QUndoCommand>
|
|
#include "IxPtyPano.h"
|
|
#include "iProperty_global.h"
|
|
|
|
class QVariant;
|
|
|
|
// 命令: 更改属性命令
|
|
// 内部使用类
|
|
class I_PROPERTY_EXPORT ZxPtyCommand : public QUndoCommand
|
|
{
|
|
public:
|
|
|
|
ZxPtyCommand(int nSessionId, \
|
|
const QList<ZX_PROPERTY_CHANGED_CALLBACK_EX>& 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;
|
|
QString m_sKey;
|
|
QVariant m_varNew;
|
|
QList<ZX_PROPERTY_CHANGED_CALLBACK_EX> m_callbacks;
|
|
};
|
|
|
|
|
|
|
|
|