1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-22 15:23:58 +00:00
openmw/apps/opencs/model/world/commandmacro.hpp

34 lines
679 B
C++
Raw Normal View History

2016-03-08 09:48:44 +00:00
#ifndef CSM_WOLRD_COMMANDMACRO_H
#define CSM_WOLRD_COMMANDMACRO_H
class QUndoStack;
class QUndoCommand;
#include <QString>
namespace CSMWorld
{
class CommandMacro
{
2022-09-22 18:26:05 +00:00
QUndoStack& mUndoStack;
QString mDescription;
bool mStarted;
2016-03-08 09:48:44 +00:00
2022-09-22 18:26:05 +00:00
/// not implemented
CommandMacro(const CommandMacro&);
2016-03-08 09:48:44 +00:00
2022-09-22 18:26:05 +00:00
/// not implemented
CommandMacro& operator=(const CommandMacro&);
2016-03-08 09:48:44 +00:00
2022-09-22 18:26:05 +00:00
public:
/// If \a description is empty, the description of the first command is used.
CommandMacro(QUndoStack& undoStack, const QString& description = "");
2016-03-08 09:48:44 +00:00
2022-09-22 18:26:05 +00:00
~CommandMacro();
2016-03-08 09:48:44 +00:00
2022-09-22 18:26:05 +00:00
void push(QUndoCommand* command);
2016-03-08 09:48:44 +00:00
};
}
#endif