mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 16:19:54 +00:00
34 lines
732 B
C++
34 lines
732 B
C++
#ifndef CSM_WOLRD_COMMANDMACRO_H
|
|
#define CSM_WOLRD_COMMANDMACRO_H
|
|
|
|
class QUndoStack;
|
|
class QUndoCommand;
|
|
|
|
#include <QString>
|
|
|
|
namespace CSMWorld
|
|
{
|
|
class CommandMacro
|
|
{
|
|
QUndoStack& mUndoStack;
|
|
QString mDescription;
|
|
bool mStarted;
|
|
|
|
/// not implemented
|
|
CommandMacro (const CommandMacro&);
|
|
|
|
/// not implemented
|
|
CommandMacro& operator= (const CommandMacro&);
|
|
|
|
public:
|
|
|
|
/// If \a description is empty, the description of the first command is used.
|
|
CommandMacro (QUndoStack& undoStack, const QString& description = "");
|
|
|
|
~CommandMacro();
|
|
|
|
void push (QUndoCommand *command);
|
|
};
|
|
}
|
|
|
|
#endif
|