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
MoveSublayerCommand Class Reference

Records reordering one sublayer inside an ISublayerHost layer's paint stack (Slice LTR-2026-09-19). Applies through MapCanvas::moveSublayer(host, from, to, pushUndo = false) so the canvas emits sublayerOrderChanged() on both redo and undo. More...

#include <mapundostack.h>

Inheritance diagram for MoveSublayerCommand:
Collaboration diagram for MoveSublayerCommand:

Public Member Functions

 MoveSublayerCommand (OpenSWMMVisLayer *host, int fromIndex, int toIndex, 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 one sublayer inside an ISublayerHost layer's paint stack (Slice LTR-2026-09-19). Applies through MapCanvas::moveSublayer(host, from, to, pushUndo = false) so the canvas emits sublayerOrderChanged() on both redo and undo.

Constructor & Destructor Documentation

◆ MoveSublayerCommand()

MoveSublayerCommand::MoveSublayerCommand ( OpenSWMMVisLayer host,
int  fromIndex,
int  toIndex,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ redo()

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

◆ undo()

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

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