SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
MoveLayerCommand Class Reference

Records reordering a layer within the canvas stack. More...

#include <mapundostack.h>

Inheritance diagram for MoveLayerCommand:
Collaboration diagram for MoveLayerCommand:

Public Member Functions

 MoveLayerCommand (int oldIndex, int newIndex, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 
- Public Member Functions inherited from MapCommand
 MapCommand (const QString &text, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 Constructs a map command with a human-readable text.
 
MapCanvascanvas () const
 

Additional Inherited Members

- Protected Attributes inherited from MapCommand
MapCanvasm_canvas
 

Detailed Description

Records reordering a layer within the canvas stack.

Constructor & Destructor Documentation

◆ MoveLayerCommand()

MoveLayerCommand::MoveLayerCommand ( int  oldIndex,
int  newIndex,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ redo()

void MoveLayerCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void MoveLayerCommand::undo ( )
override
Here is the call graph for this function:

The documentation for this class was generated from the following files: