20#ifndef LIBREPCB_EDITOR_CMDLISTELEMENTSSWAP_H
21#define LIBREPCB_EDITOR_CMDLISTELEMENTSSWAP_H
26#include "../undocommand.h"
45template <
typename T,
typename P,
typename... OnEditedArgs>
52 int i,
int j) noexcept
void swap(int i, int j) noexcept
Definition: serializableobjectlist.h:325
The CmdListElementsSwap class.
Definition: cmdlistelementsswap.h:46
void performRedo() override
Redo the command.
Definition: cmdlistelementsswap.h:70
CmdListElementsSwap & operator=(const CmdListElementsSwap &rhs)=delete
int mJ
Definition: cmdlistelementsswap.h:75
CmdListElementsSwap()=delete
int mI
Definition: cmdlistelementsswap.h:74
CmdListElementsSwap(SerializableObjectList< T, P, OnEditedArgs... > &list, int i, int j) noexcept
Definition: cmdlistelementsswap.h:51
CmdListElementsSwap(const CmdListElementsSwap &other)=delete
void performUndo() override
Undo the command.
Definition: cmdlistelementsswap.h:67
SerializableObjectList< T, P, OnEditedArgs... > & mList
Definition: cmdlistelementsswap.h:73
bool performExecute() override
Execute the command the first time.
Definition: cmdlistelementsswap.h:61
~CmdListElementsSwap() noexcept
Definition: cmdlistelementsswap.h:54
The UndoCommand class represents a command which you can undo/redo.
Definition: undocommand.h:46
Definition: occmodel.cpp:77