#include <tiletemplatechangecommand.h>
|
| void | undo () override |
| |
| void | redo () override |
| |
| int | id () const override |
| |
| bool | mergeWith (const QUndoCommand *other) |
| |
|
| static TileTemplateChangeCommand * | make (TileMap *tileMap, QRegion changedPoints, TileTemplate *newTileTemplate, const QString &text="Changed templates for tiles.", QUndoCommand *parent=nullptr, int id=-1, bool canMerge=false) |
| | make Creates the TileTemplateChangeCommand. This will automatically crop the given region so that it is within the bounds of the TileMap. More...
|
| |
| template<typename QPointIterable > |
| static TileTemplateChangeCommand * | make (TileMap *tileMap, QPointIterable changedPoints, TileTemplate *newTileTemplate, const QString &text="Changed templates for tiles.", QUndoCommand *parent=nullptr) |
| | make Creates the TileTemplateChangeCommand. This will automatically crop the given region so that it is within the bounds of the TileMap. More...
|
| |
◆ id()
| int TileTemplateChangeCommand::id |
( |
| ) |
const |
|
inlineoverride |
◆ make() [1/2]
| TileTemplateChangeCommand * TileTemplateChangeCommand::make |
( |
TileMap * |
tileMap, |
|
|
QRegion |
changedPoints, |
|
|
TileTemplate * |
newTileTemplate, |
|
|
const QString & |
text = "Changed templates for tiles.", |
|
|
QUndoCommand * |
parent = nullptr, |
|
|
int |
id = -1, |
|
|
bool |
canMerge = false |
|
) |
| |
|
static |
make Creates the TileTemplateChangeCommand. This will automatically crop the given region so that it is within the bounds of the TileMap.
- Parameters
-
| tileMap | The tile map on which to change tiles. |
| changedPoints | The positions of the tiles that should be changed. |
| newTileTemplate | The new tile template for those tiles. |
| text | Short description for the command. |
| parent | The parent command. |
- Returns
- The command that was performed. Calling undo() will undo it.
◆ make() [2/2]
template<typename QPointIterable >
| static TileTemplateChangeCommand* TileTemplateChangeCommand::make |
( |
TileMap * |
tileMap, |
|
|
QPointIterable |
changedPoints, |
|
|
TileTemplate * |
newTileTemplate, |
|
|
const QString & |
text = "Changed templates for tiles.", |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
|
inlinestatic |
make Creates the TileTemplateChangeCommand. This will automatically crop the given region so that it is within the bounds of the TileMap.
- Parameters
-
| tileMap | The tile map on which to change tiles. |
| changedPoints | The positions of the tiles that should be changed. |
| newTileTemplate | The new tile template for those tiles. |
| text | Short description for the command. |
| parent | The parent command. |
- Returns
- The command that was performed. Calling undo() will undo it.
◆ mergeWith()
| bool TileTemplateChangeCommand::mergeWith |
( |
const QUndoCommand * |
other | ) |
|
◆ redo()
| void TileTemplateChangeCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
| void TileTemplateChangeCommand::undo |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: