BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Command to add a layer to a sample.
Definition at line 44 of file SampleEditorCommands.h.
Public Member Functions | |
CommandAddLayer (SampleEditorController *ec, int atIndex, QUndoCommand *parent=nullptr) | |
void | redo () override |
void | undo () override |
Private Attributes | |
int | m_atIndex |
SampleEditorController * | m_ec |
CommandAddLayer::CommandAddLayer | ( | SampleEditorController * | ec, |
int | atIndex, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 55 of file SampleEditorCommands.cpp.
|
override |
Definition at line 62 of file SampleEditorCommands.cpp.
References SampleEditorController::addLayerFromUndo(), m_atIndex, and m_ec.
|
override |
Definition at line 67 of file SampleEditorCommands.cpp.
References m_atIndex, m_ec, and SampleEditorController::removeLayerFromUndo().
|
private |
Definition at line 53 of file SampleEditorCommands.h.
|
private |
Definition at line 52 of file SampleEditorCommands.h.