mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:49:56 +00:00
33 lines
No EOL
642 B
C++
33 lines
No EOL
642 B
C++
#ifndef CSM_WOLRD_COMMANDS_H
|
|
#define CSM_WOLRD_COMMANDS_H
|
|
|
|
#include "record.hpp"
|
|
|
|
#include <QVariant>
|
|
#include <QUndoCommand>
|
|
#include <QModelIndex>
|
|
|
|
class QModelIndex;
|
|
class QAbstractItemModel;
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class ModifyCommand : public QUndoCommand
|
|
{
|
|
QAbstractItemModel& mModel;
|
|
QModelIndex mIndex;
|
|
QVariant mNew;
|
|
QVariant mOld;
|
|
|
|
public:
|
|
|
|
ModifyCommand (QAbstractItemModel& model, const QModelIndex& index, const QVariant& new_,
|
|
QUndoCommand *parent = 0);
|
|
|
|
virtual void redo();
|
|
|
|
virtual void undo();
|
|
};
|
|
}
|
|
|
|
#endif |